diff --git a/messages/uniworx/de.msg b/messages/uniworx/de.msg index 7d51240f3..8ccff193a 100644 --- a/messages/uniworx/de.msg +++ b/messages/uniworx/de.msg @@ -288,7 +288,10 @@ Settings: Individuelle Benutzereinstellungen SettingsUpdate: Einstellungen wurden gespeichert. Never: Nie +PreviouslyUploadedInfo: Bereits hochgeladene Dateien: +PreviouslyUploadedDeletionInfo: (Nicht ausgewählte Dateien werden gelöscht) MultiFileUploadInfo: (Mehrere Dateien mit Shift oder Strg auswählen) +AddMoreFiles: Weitere Dateien hinzufügen: NrColumn: Nr SelectColumn: Auswahl @@ -723,4 +726,4 @@ DBTIRowsMissing n@Int: #{pluralDE n "Eine Zeile ist" "Einige Zeile sind"} aus de MassInputAddDimension: Hinzufügen MassInputDeleteCell: Entfernen -NavigationFavourites: Favoriten \ No newline at end of file +NavigationFavourites: Favoriten diff --git a/static/css/utils/inputs.scss b/static/css/utils/inputs.scss index f2b479979..08cc8fe63 100644 --- a/static/css/utils/inputs.scss +++ b/static/css/utils/inputs.scss @@ -210,15 +210,31 @@ option { border-radius: 3px; } -.file-input__multi-info { +.file-input__info { font-size: .9rem; font-style: italic; - margin-top: 10px; + margin: 10px 0; color: var(--color-fontsec); } .file-input__list { - margin-left: 15px; + margin-left: 40px; margin-top: 10px; font-weight: 600; } + +/* PREVIOUSLY UPLOADED FILES */ + +.file-uploads-label { + margin-bottom: 10px; +} + +.file-container { + display: flex; + align-items: center; + margin-bottom: 10px; +} + +.file-container__label + .checkbox { + margin-left: 12px; +} diff --git a/static/js/utils/inputs.js b/static/js/utils/inputs.js index b544e2272..5e9d73fff 100644 --- a/static/js/utils/inputs.js +++ b/static/js/utils/inputs.js @@ -174,34 +174,6 @@ }); } - // to remove previously uploaded files - - var FILE_UPLOAD_CONTAINER_CLASS = 'file-container'; - var FILE_UPLOAD_CONTAINER_CHECKED_CLASS = 'file-container--checked'; - - window.utils.fileCheckbox = function(input) { - // adds eventlistener(s) - function addListener(container) { - input.addEventListener('change', function(event) { - container.classList.toggle(FILE_UPLOAD_CONTAINER_CHECKED_CLASS, this.checked); - }); - } - - // initial setup - function init() { - var cont = input.parentNode; - while (cont !== document.body) { - if (cont.matches('.' + FILE_UPLOAD_CONTAINER_CLASS)) { - break; - } - cont = cont.parentNode; - } - addListener(cont); - } - - return init(); - } - // turns native checkboxes into custom ones window.utils.checkbox = function(input) { diff --git a/templates/multiFileField.hamlet b/templates/multiFileField.hamlet index 0ac0dc594..7e91e00b2 100644 --- a/templates/multiFileField.hamlet +++ b/templates/multiFileField.hamlet @@ -1,15 +1,22 @@ $newline never -$forall FileUploadInfo{..} <- fileInfos -
-