2021-01-16 19:34:19 +00:00
|
|
|
<form method="post" name="goal" action="{{ request.user.local_path }}/goal/{{ year }}">
|
2021-01-16 16:19:54 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="year" value="{{ year }}">
|
|
|
|
<input type="hidden" name="user" value="{{ request.user.id }}">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<label class="label" for="id_goal">Reading goal:</label>
|
|
|
|
<div class="field has-addons">
|
|
|
|
<div class="control">
|
|
|
|
<input type="number" class="input" name="goal" id="id_goal" value="12">
|
|
|
|
</div>
|
|
|
|
<p class="button is-static">books</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
2021-01-16 19:34:19 +00:00
|
|
|
<label class="label"><p class="mb-2">Goal privacy:</p>
|
|
|
|
{% include 'snippets/privacy_select.html' with no_label=True %}
|
2021-01-16 16:19:54 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
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>
|
|
|
|
Post to feed
|
|
|
|
</label>
|
2021-01-16 16:19:54 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<button type="submit" class="button is-link">Set goal</button>
|
|
|
|
</p>
|
|
|
|
</form>
|