From 9a96df171211e8e56edb4b6a2a384310dfbb5957 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 29 Sep 2021 15:58:37 -0700 Subject: [PATCH] Unique id for privacy fields --- bookwyrm/templates/snippets/goal_form.html | 8 ++++++-- bookwyrm/templates/snippets/privacy_select.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/snippets/goal_form.html b/bookwyrm/templates/snippets/goal_form.html index f05d8b8b..fb941d2b 100644 --- a/bookwyrm/templates/snippets/goal_form.html +++ b/bookwyrm/templates/snippets/goal_form.html @@ -1,6 +1,10 @@ {% load i18n %}
-

{% blocktrans %}Set a goal for how many books you'll finish reading in {{ year }}, and track your progress throughout the year.{% endblocktrans %}

+

+ {% blocktrans trimmed %} + Set a goal for how many books you'll finish reading in {{ year }}, and track your progress throughout the year. + {% endblocktrans %} +

{% csrf_token %} @@ -20,7 +24,7 @@
- {% include 'snippets/privacy_select.html' with no_label=True current=goal.privacy uuid=goal.id %} + {% include 'snippets/privacy_select.html' with no_label=True current=goal.privacy privacy_uuid=goal.id %}
diff --git a/bookwyrm/templates/snippets/privacy_select.html b/bookwyrm/templates/snippets/privacy_select.html index e1053051..0e7ce6cd 100644 --- a/bookwyrm/templates/snippets/privacy_select.html +++ b/bookwyrm/templates/snippets/privacy_select.html @@ -1,7 +1,7 @@ {% load i18n %} {% load utilities %}
- {% firstof uuid 0|uuid as uuid %} + {% firstof privacy_uuid 0|uuid as uuid %} {% if not no_label %} {% endif %}