use snippet for modal close buttons

This commit is contained in:
Mouse Reeve
2021-01-14 14:19:30 -08:00
parent b1cdddd1a2
commit d59c586e55
4 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Finish "{{ book.title }}"</p>
<label class="delete" for="finish-reading-{{ uuid }}" aria-label="close" role="button"></label>
{% include 'snippets/toggle/toggle_button.html' with label="close" controls_text="finish-reading" controls_uid=uuid class="delete" %}
</header>
{% active_read_through book user as readthrough %}
<form name="finish-reading" action="/finish-reading/{{ book.id }}" method="post">