From 7dccce6b1fb3186d785e4ce15b489b92a13266e6 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 18 May 2021 09:59:40 -0700 Subject: [PATCH] Adds keyboard focus to add readthrough form --- bookwyrm/templates/book/book.html | 8 ++++---- bookwyrm/templates/snippets/readthrough_form.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index 8f167528c..0aa648360 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -163,12 +163,9 @@
{% trans "Add read dates" as button_text %} - {% include 'snippets/toggle/open_button.html' with text=button_text icon="plus" class="is-small" controls_text="add-readthrough" %} + {% include 'snippets/toggle/open_button.html' with text=button_text icon="plus" class="is-small" controls_text="add-readthrough" focus="add-readthrough-focus" %}
- {% if not readthroughs.exists %} -

{% trans "You don't have any reading activity for this book." %}

- {% endif %} + {% if not readthroughs.exists %} +

{% trans "You don't have any reading activity for this book." %}

+ {% endif %} {% for readthrough in readthroughs %} {% include 'snippets/readthrough.html' with readthrough=readthrough %} {% endfor %} diff --git a/bookwyrm/templates/snippets/readthrough_form.html b/bookwyrm/templates/snippets/readthrough_form.html index c5be295e1..891e90715 100644 --- a/bookwyrm/templates/snippets/readthrough_form.html +++ b/bookwyrm/templates/snippets/readthrough_form.html @@ -3,7 +3,7 @@
-