diff --git a/frontend/src/app.sass b/frontend/src/app.sass index 885b7fa49..ae859585b 100644 --- a/frontend/src/app.sass +++ b/frontend/src/app.sass @@ -332,6 +332,10 @@ input[type="button"].btn-info:not(.btn-link):hover, margin: 21px 0 width: 100% +.table--narrow + width: unset + + .table:first-child margin-top: 0 diff --git a/frontend/src/utils/inputs/checkbox.sass b/frontend/src/utils/inputs/checkbox.sass index 3842e1bb9..a869a430b 100644 --- a/frontend/src/utils/inputs/checkbox.sass +++ b/frontend/src/utils/inputs/checkbox.sass @@ -99,3 +99,9 @@ th .checkbox margin-right: 7px vertical-align: bottom + +th .checkbox:only-child + margin: 0 + +.checkbox-only + width: 36px diff --git a/frontend/src/utils/inputs/inputs.sass b/frontend/src/utils/inputs/inputs.sass index 6746e5094..374d37189 100644 --- a/frontend/src/utils/inputs/inputs.sass +++ b/frontend/src/utils/inputs/inputs.sass @@ -229,6 +229,14 @@ option margin-left: 40px margin-top: 10px font-weight: 600 + max-width: 25vw + + tr:last-child td + padding-bottom: 0 + + .file-input__list-item + font-family: monospace + font-size: 15px // PREVIOUSLY UPLOADED FILES diff --git a/frontend/src/utils/tooltips/tooltips.sass b/frontend/src/utils/tooltips/tooltips.sass index 360f96ecd..5b119991e 100644 --- a/frontend/src/utils/tooltips/tooltips.sass +++ b/frontend/src/utils/tooltips/tooltips.sass @@ -138,3 +138,12 @@ box-shadow: unset padding: 2px 15px 2px 2px background-color: rgba(0,0,0,0.05) + +td.tooltip-only, th.tooltip-only + .table--condensed & + width: 22px + padding: 4px + + .tooltip__handle + margin: 0 + diff --git a/messages/uniworx/de-de-formal.msg b/messages/uniworx/de-de-formal.msg index 93c47f059..e54dde4cd 100644 --- a/messages/uniworx/de-de-formal.msg +++ b/messages/uniworx/de-de-formal.msg @@ -586,9 +586,9 @@ SettingsUpdate: Einstellungen erfolgreich gespeichert NotificationSettingsUpdate: Benachrichtigungs-Einstellungen erfolgreich gespeichert Never: Nie -PreviouslyUploadedInfo: Bereits hochgeladene Dateien: -PreviouslyUploadedDeletionInfo: (Nicht ausgewählte Dateien werden gelöscht) -MultiFileUploadInfo: (Mehrere Dateien mit Shift oder Strg auswählen) +PreviouslyUploadedInfo: Bereits hochgeladene Dateien +PreviouslyUploadedDeletionInfo: Nur ausgewählte und unten hinzugefügte Dateien werden erneut hochgeladen +MultiFileUploadInfo: Mehrere Dateien mit Shift oder Strg auswählen AddMoreFiles: Weitere Dateien hinzufügen: NrColumn: Nr @@ -838,7 +838,7 @@ UploadModeExtensionRestrictionMultipleTip: Einschränkung von Dateiendungen erfo GenericFileFieldFileTooLarge file@FilePath: „#{file}“ ist zu groß GenericFileFieldInvalidExtension file@FilePath: „#{file}” hat keine zulässige Dateiendung -FileUploadOnlySessionTip: Sie haben diese Datei in der aktuellen Session bereits hochgeladen, sie ist allerdings noch nicht gespeichert. Sie müssen zunächst noch das Formular „Senden“, damit die Datei ordnungsgemäß gespeichert wird. +FileUploadOnlySessionTip: Sie haben diese Datei in der aktuellen Session bereits hochgeladen, sie ist allerdings womöglich noch nicht gespeichert, z.B. wenn beim Auswerten des Formulars ein Fehler auftrat. Stellen Sie sicher, dass alle Dateien, die Sie hochladen wollten auch ordnungsgemäß im System hinterlegt sind! FileUploadMaxSize maxSize@Text: Datei darf maximal #{maxSize} groß sein FileUploadMaxSizeMultiple maxSize@Text: Dateien dürfen jeweils maximal #{maxSize} groß sein diff --git a/messages/uniworx/en-eu.msg b/messages/uniworx/en-eu.msg index e7cf339ce..30a50e075 100644 --- a/messages/uniworx/en-eu.msg +++ b/messages/uniworx/en-eu.msg @@ -584,9 +584,9 @@ SettingsUpdate: Successfully updated settings NotificationSettingsUpdate: Successfully updated notification settings Never: Never -PreviouslyUploadedInfo: Files already uploaded: -PreviouslyUploadedDeletionInfo: (Files not checked will be deleted) -MultiFileUploadInfo: (Choose multiple files using Shift or Ctrl) +PreviouslyUploadedInfo: Previously uploaded files +PreviouslyUploadedDeletionInfo: Only checked files and files added below will be uploaded again +MultiFileUploadInfo: Choose multiple files using Shift or Ctrl AddMoreFiles: Additional files: NrColumn: # @@ -835,7 +835,7 @@ UploadModeExtensionRestrictionMultipleTip: Checks for valid file extension are p GenericFileFieldFileTooLarge file: “#{file}” is too large GenericFileFieldInvalidExtension file: “#{file}” does not have an acceptable file extension -FileUploadOnlySessionTip: You have uploaded this file during your current session. It has not yet been saved permanently. The file will be saved permanently if you “Send” as part of this Form. +FileUploadOnlySessionTip: You have already uploaded this file during your current session. It may not yet have been saved permanently, e.g. when an error occurred during processing of the form. Please ensure that all files you intended to upload are properly stored within Uni2work! FileUploadMaxSize maxSize: File may be up to #{maxSize} in size FileUploadMaxSizeMultiple maxSize: Files may each be up to #{maxSize} in size diff --git a/src/Handler/Utils/Form.hs b/src/Handler/Utils/Form.hs index 25f2e70f4..0711da57e 100644 --- a/src/Handler/Utils/Form.hs +++ b/src/Handler/Utils/Form.hs @@ -875,8 +875,7 @@ genericFileField mkOpts = Field{..} $logDebugS "genericFileField.getIdent" pos return $ hash (cRoute, pos) & toStrict . Binary.encode - & decodeUtf8 . Base64.encode - & Text.dropWhileEnd (== '=') + & decodeUtf8 . Base64.encodeUnpadded $logDebugS "genericFileField.getIdent" $ tshow ident return ident diff --git a/templates/widgets/genericFileField.hamlet b/templates/widgets/genericFileField.hamlet index cb9601e77..adf0643bc 100644 --- a/templates/widgets/genericFileField.hamlet +++ b/templates/widgets/genericFileField.hamlet @@ -4,16 +4,27 @@ $maybe ident <- identSecret $if not (null fileInfos) -
_{MsgPreviouslyUploadedInfo} -