2020-11-26 06:37:18 +00:00
|
|
|
<form class="field is-grouped is-small pl-2" action="/edit-readthrough" method="POST">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="id" value="{{ readthrough.id }}"/>
|
2021-01-17 20:40:24 +00:00
|
|
|
<div class="control">
|
|
|
|
{% if readthrough.progress_mode == 'PG' %}
|
|
|
|
on page
|
|
|
|
{% else %}
|
|
|
|
currently at
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
<input
|
2021-01-17 20:48:10 +00:00
|
|
|
aria-label="{% if readthrough.progress_mode == 'PG' %}Current page{% else %}Percent read{% endif %}"
|
2021-01-17 20:40:24 +00:00
|
|
|
class="input is-small" type="text"
|
2021-01-17 20:48:10 +00:00
|
|
|
name="progress" size="3" value="{{ readthrough.progress|default:'' }}">
|
2020-11-28 08:07:04 +00:00
|
|
|
</div>
|
2021-01-17 20:40:24 +00:00
|
|
|
<div class="control">
|
2021-01-17 20:48:10 +00:00
|
|
|
{% if readthrough.progress_mode == 'PG' %}
|
|
|
|
{% if book.pages %} of {{ book.pages }} {% endif %}
|
|
|
|
{% else %} % {% endif %}
|
2020-11-21 05:45:12 +00:00
|
|
|
</div>
|
2020-11-26 06:37:18 +00:00
|
|
|
<div class="control">
|
|
|
|
<button class="button is-small px-2" type="submit">Go</button>
|
|
|
|
</div>
|
|
|
|
</form>
|