Skip to content

Commit

Permalink
Corrige le fonctionnement du bouton annuler pour les modales
Browse files Browse the repository at this point in the history
  • Loading branch information
funelie committed Mar 29, 2024
1 parent e827f0a commit 7d8aa18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
4 changes: 1 addition & 3 deletions web/b3desk/templates/meeting/modals/delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ <h1 id="delete-{{ meeting.id }}-title" class="fr-modal__title">
</button>
</li>
<li>
<button type="reset" class="fr-btn fr-btn--secondary">
Annuler
</button>
<button type="reset" class="fr-btn fr-btn--secondary" aria-controls="delete-{{ meeting.id }}" title="Annuler">{% trans %}Annuler{% endtrans %}</button>
</li>
</ul>
{% include 'meeting/id.html' %}
Expand Down
25 changes: 2 additions & 23 deletions web/b3desk/templates/meeting/recordings.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h1 id="delete-video-{{ recording.recordID }}-title" class="fr-modal__title">
<button type="submit" class="fr-btn fr-btn--primary" >{% trans %}Supprimer{% endtrans %}</button>
</li>
<li>
<button type="reset" class="fr-btn fr-btn--secondary js-modal-close" >{% trans %}Annuler{% endtrans %}</button>
<button type="reset" class="fr-btn fr-btn--secondary" aria-controls="delete-video-{{ recording.recordID }}" title="Annuler">{% trans %}Annuler{% endtrans %}</button>
</li>
</ul>
{% include 'meeting/id.html' %}
Expand All @@ -112,27 +112,6 @@ <h1 id="delete-video-{{ recording.recordID }}-title" class="fr-modal__title">
</dialog>

<!-- Renommer video -->
<div class="modal-template" id="rename-video-{{ recording.recordID }}">
<div class="modal-body">
<form method="POST" action="{{ url_for('meetings.update_recording_name', meeting=meeting, recording_id=recording.recordID) }}">
{% include 'meeting/csrf.html' %}
<div class="fr-input-group">
{{ form.name.label(class_="fr-label") }}
<p class="fr-hint-text">{{ form.name.description }}</p>
{% if form.name.errors %}
{% for error in form.name.errors %}
<p class="fr-error-text">{{ error }}</p>
{% endfor %}
{% endif %}
{{ form.name(value=recording_name, class_="fr-input") }}
</div>
<div class="modal-body--center">
<input type="submit" class="fr-btn fr-btn--primary fr-mt-1w" id="update-recording-{{ recording.recordID }}" title="Modifier le nom de l'enregistrement" value="Renommer"></input>
<button type="reset" class="fr-btn fr-btn--secondary js-modal-close" >Annuler</button>
</div>
</form>
</div>
</div>
<dialog id="rename-video-{{ recording.recordID }}" class="fr-modal" role="dialog" aria-labelledby="rename-video-{{ recording.recordID }}-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
Expand Down Expand Up @@ -161,7 +140,7 @@ <h1 id="delete-video-{{ recording.recordID }}-title" class="fr-modal__title">
<input type="submit" class="fr-btn fr-btn--primary fr-mt-1w" id="update-recording-{{ recording.recordID }}" title="Modifier le nom de l'enregistrement" value="Renommer"></input>
</li>
<li>
<button type="reset" class="fr-btn fr-btn--secondary js-modal-close" >Annuler</button>
<button type="reset" class="fr-btn fr-btn--secondary" aria-controls="rename-video-{{ recording.recordID }}" title="Annuler">{% trans %}Annuler{% endtrans %}</button>
</li>
</ul>
</form>
Expand Down

0 comments on commit 7d8aa18

Please sign in to comment.