Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file uploads #1715

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/conventions/cadastre.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h4>Agrément de gestionnaire ou agrément d'intermédiation</h4>
{% include "common/form/input_upload.html" with single_file=False form_input=form.reference_cadastrale form_input_files=form.reference_cadastrale_files object_name='programme' object_uuid=convention.programme.uuid image_only=True file_list=convention.programme.reference_cadastrale|get_files_from_textfiles object_field="programme__reference_cadastrale__"|add:form.uuid.value %}
</div>
<div id='download_upload_block' {% if not editable %}hidden{% endif %}>
{% include "common/form/download_upload_form.html" with file_type='cadastre' upform=upform what="références cadastrales"%}
{% include "common/form/download_upload_form.html" with file_type='cadastre' upform=upform what="références cadastrales" file_field_label='cadastre' %}
<hr class="fr-col-12 fr-my-3w">
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/conventions/common/form_annexes.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h4>Annexes associées aux logements exclues du calcul de la surface utile et po
<p class="fr-mb-1w">Attention, les annexes concernées sont ici les jardins, les cours et les surfaces de terrasse au-delà de 9 m² (ex : Pour une terrasse d’une surface totale de 10 m², renseignez ici uniquement 1 m², les 9m² sont intégrés dans le calcul de la surface utile)</p>
</div>
<div id='download_upload_block' {% if not editable %}hidden{% endif %}>
{% include "common/form/download_upload_form.html" with file_type='annexes' upform=upform what='annexes'%}
{% include "common/form/download_upload_form.html" with file_type='annexes' upform=upform what='annexes' file_field_label='annexe'%}
<hr class="fr-col-12 fr-my-3w">
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/conventions/common/form_collectif.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="fr-col-md-12">
<h4>Surfaces à usage collectif</h4>
<div id='download_upload_block' {% if not editable %}hidden{% endif %}>
{% include "common/form/download_upload_form.html" with file_type='locaux_collectifs' upform=upform what='surfaces à usage collectif'%}
{% include "common/form/download_upload_form.html" with file_type='locaux_collectifs' upform=upform what='surfaces à usage collectif' file_field_label='locaux' %}
<hr class="fr-col-12 fr-my-3w">
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/conventions/common/form_stationnements.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h4>Liste des stationnements associés au lot conventionné</h4>

<div id='download_upload_block' {% if not editable %}hidden{% endif %}>
{% include "common/form/download_upload_form.html" with file_type='stationnements' upform=upform what='stationnements'%}
{% include "common/form/download_upload_form.html" with file_type='stationnements' upform=upform what='stationnements' file_field_label='stationnements'%}
<hr class="fr-col-12 fr-my-3w">
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/conventions/edd.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h4 class="fr-mb-1w">EDD Simplifié</h4>
</p>

<div id='download_upload_block' {% if not editable %}hidden{% endif %}>
{% include "common/form/download_upload_form.html" with file_type='logements_edd' upform=upform what="logements pour l'EDD simplifié"%}
{% include "common/form/download_upload_form.html" with file_type='logements_edd' upform=upform what="logements pour l'EDD simplifié" file_field_label='edd'%}
<hr class="fr-col-12 fr-my-3w">
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/conventions/financement.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<h4>Financement : Prêts et Subventions</h4>

<div id='download_upload_block' {% if not editable %}hidden{% endif %}>
{% include "common/form/download_upload_form.html" with file_type='financement' upform=upform what='prêts et subventions' %}
{% include "common/form/download_upload_form.html" with file_type='financement' upform=upform what='prêts et subventions' file_field_label='financement'%}
<hr class="fr-col-12 fr-my-3w">
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/settings/delegataires/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h4>Gestion des délégataires</h4>
</script>
{% include "common/form/input_select.html" with form_input=form.departement editable=True required=False%}
<div id='download_upload_block'>
{% include "common/form/download_upload_form.html" with file_type='communes' upform=form what='communes' %}
{% include "common/form/download_upload_form.html" with file_type='communes' upform=form what='communes' file_field_label='commune'%}
</div>
{% for error in import_warnings %}
<p id="text-input-error-desc-error" class="fr-error-text">
Expand Down
Loading