Adds noscript fallback for links modal

This commit is contained in:
Mouse Reeve
2021-12-15 13:11:49 -08:00
parent 4f576b77a0
commit cc3db31db9
6 changed files with 22 additions and 24 deletions

View File

@ -361,8 +361,9 @@
{% if can_edit_book %}
{% trans "Add link to copy" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="edit_file_links" controls_uid=book.id focus="modal_title_edit_file_links" class="is-small" icon_with_text="plus" %}
{% include 'book/file_links_modal.html' with book=book controls_text="edit_file_links" controls_uid=book.id %}
{% url 'file-link' book.id as fallback_url %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="edit_file_links" controls_uid=book.id focus="modal_title_edit_file_links" class="is-small" icon_with_text="plus" fallback_url=fallback_url %}
{% include 'book/file_link_modal.html' with book=book controls_text="edit_file_links" controls_uid=book.id %}
{% endif %}
</section>
</div>