From debc9696e16fa09e602e885445977ad4a5ca84db Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 18 Jan 2021 09:03:21 -0800 Subject: [PATCH] Sets focus for editing and deleting readthroughs --- bookwyrm/templates/snippets/delete_readthrough_modal.html | 2 +- bookwyrm/templates/snippets/readthrough.html | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bookwyrm/templates/snippets/delete_readthrough_modal.html b/bookwyrm/templates/snippets/delete_readthrough_modal.html index 1456cc76b..2155afb31 100644 --- a/bookwyrm/templates/snippets/delete_readthrough_modal.html +++ b/bookwyrm/templates/snippets/delete_readthrough_modal.html @@ -1,5 +1,5 @@ {% extends 'snippets/components/modal.html' %} -{% block modal-title %}Delete this read-though?{% endblock %} +{% block modal-title %}Delete these read dates?{% endblock %} {% block modal-footer %}
diff --git a/bookwyrm/templates/snippets/readthrough.html b/bookwyrm/templates/snippets/readthrough.html index 56c22a927..a3d20dd50 100644 --- a/bookwyrm/templates/snippets/readthrough.html +++ b/bookwyrm/templates/snippets/readthrough.html @@ -17,16 +17,17 @@
- {% include 'snippets/toggle/toggle_button.html' with class="is-small" text="Edit read dates" icon="pencil" controls_text="edit-readthrough" controls_uid=readthrough.id %} + {% include 'snippets/toggle/toggle_button.html' with class="is-small" text="Edit read dates" icon="pencil" controls_text="edit-readthrough" controls_uid=readthrough.id focus="edit-readthrough" %}
- {% include 'snippets/toggle/toggle_button.html' with class="is-small" text="Delete these read dates" icon="x" controls_text="delete-readthrough" controls_uid=readthrough.id %} + {% include 'snippets/toggle/toggle_button.html' with class="is-small" text="Delete these read dates" icon="x" controls_text="delete-readthrough" controls_uid=readthrough.id focus="modal-title-delete-readthrough" %}
-