2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-09-29 16:23:52 +00:00
< div class = "content" >
< p > {% blocktrans %}Set a goal for how many books you'll finish reading in {{ year }}, and track your progress throughout the year.{% endblocktrans %}< / p >
2021-09-22 19:16:51 +00:00
< form method = "post" name = "goal" action = "{% url 'user-goal' request.user.localname year %}" >
2021-01-16 16:19:54 +00:00
{% csrf_token %}
2021-01-16 20:39:51 +00:00
< input type = "hidden" name = "year" value = "{% if goal %}{{ goal.year }}{% else %}{{ year }}{% endif %}" >
2021-01-16 16:19:54 +00:00
< input type = "hidden" name = "user" value = "{{ request.user.id }}" >
< div class = "columns" >
< div class = "column" >
2021-02-28 02:48:10 +00:00
< label class = "label" for = "id_goal" > {% trans "Reading goal:" %}< / label >
2021-01-16 16:19:54 +00:00
< div class = "field has-addons" >
< div class = "control" >
2021-01-19 15:38:18 +00:00
< input type = "number" class = "input" name = "goal" min = "1" id = "id_goal" value = "{% if goal %}{{ goal.goal }}{% else %}12{% endif %}" >
2021-01-16 16:19:54 +00:00
< / div >
2021-02-28 02:48:10 +00:00
< p class = "button is-static" aria-hidden = "true" > {% trans "books" %}< / p >
2021-01-16 16:19:54 +00:00
< / div >
< / div >
< div class = "column" >
2021-09-29 01:34:12 +00:00
< label class = "label" for = "privacy_{{ goal.id }}" > {% trans "Goal privacy:" %}< / label >
{% include 'snippets/privacy_select.html' with no_label=True current=goal.privacy uuid=goal.id %}
2021-01-16 16:19:54 +00:00
< / div >
< / div >
2021-09-29 01:34:12 +00:00
2021-01-16 19:34:19 +00:00
< label for = "post_status" class = "label" >
< input type = "checkbox" name = "post-status" id = "post_status" class = "checkbox" checked >
2021-02-28 02:48:10 +00:00
{% trans "Post to feed" %}
2021-01-16 19:34:19 +00:00
< / label >
2021-01-16 16:19:54 +00:00
2021-09-29 01:34:12 +00:00
< div class = "field" >
2021-02-28 02:48:10 +00:00
< button type = "submit" class = "button is-link" > {% trans "Set goal" %}< / button >
2021-09-29 01:34:12 +00:00
< / div >
2021-01-16 16:19:54 +00:00
< / form >