-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 [#1795] Show selected documents to be uploaded (#833)
* 🎨 [#1795] Added skeleton for selected case-documents to be uploaded * ✨ #1795 - feat: implement drag-and-drop enabled file input. * 🎨 [#1795] Removed tag and made some file-upload styles conforming to design * [#1795] Fixed linting * [#1795] Added enabled button styles, remove unused upload-document JS * 🎨 [#1795] Added skeleton for selected case-documents to be uploaded * ✨ #1795 - feat: implement drag-and-drop enabled file input. * 🎨 [#1795] Removed tag and made some file-upload styles conforming to design * [#1795] Removed unused upload-document JS * 💄 #1795 - fix: fix inconsistencies between upstream file component and file component rendered by file input. * 🚸 #1795 - feat: improve drag and drop ux. * 👕 #1795 - prettier. * 👌 #1795 - refactor: refactor try/except block to use else instead of AttributeError. * 🎨 #1795 - style: remove whitespace. * 🐛 #1795 - fix: multiple is not ready yet. * 💚 #1795 - fix: re-add AttributeError due to failing tests. * 💄 [#1795] Changed secondary to primary --------- Co-authored-by: Sven van de Scheur <[email protected]>
- Loading branch information
1 parent
df90e8c
commit 4740bcf
Showing
24 changed files
with
445 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 14 additions & 16 deletions
30
src/open_inwoner/components/templates/components/Form/FileInput.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
{% load i18n form_tags icon_tags %} | ||
{% load i18n button_tags card_tags form_tags icon_tags %} | ||
|
||
<div class="form__control {{ extra_classes|default:"upload" }}"> | ||
<div class="inputfile-group"> | ||
<label class="label"> | ||
<span class="input-file"> | ||
{{ field|addclass:"inputfile" }} | ||
|
||
<span class="label__label" for="{{ field.auto_id }}"> | ||
{% icon icon="cloud_upload" icon_position="before" outlined=True %} | ||
{{ text }} | ||
<div class="form__control file-input"> | ||
{% render_card direction="vertical" %} | ||
{% icon icon="upload" icon_position="before" outlined=True %} | ||
<input class="file-input__input" id="{{ field.auto_id }}" name="file" type="file"{% if field.field.required %} required{% endif %}> | ||
<label class="button button--primary" aria-label="_('Sleep of selecteer bestand')" for="id_file"> | ||
{% trans 'Sleep of selecteer bestand' %} | ||
</label> | ||
{% endrender_card %} | ||
|
||
</span>{% if field.field.required %}<span class="label__label--required"> * </span>{% endif %} | ||
</span> | ||
{% if field.help_text %}<p class="p p--muted p--small">{{ field.help_text }}</p>{% endif %} | ||
{% if field.errors %}{% errors errors=field.errors %}{% endif %} | ||
|
||
{% if field.errors %} | ||
{% errors errors=field.errors %} | ||
{% endif %} | ||
</label> | ||
<div class="file-list" aria-live="polite"> | ||
<h4 class="h4">{% trans 'Geselecteerd bestand'%}</h4> | ||
<ul class="file-list__list" aria-live="polite" data-label-delete="{% trans 'Verwijderen' %}"></ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.