Fix inline form

This commit is contained in:
Joel Bradshaw 2021-01-17 02:57:10 -08:00
parent da8d8cd434
commit 2d157137aa
2 changed files with 12 additions and 12 deletions

View file

@ -54,17 +54,17 @@
</div> </div>
</div> </div>
<div class="card-content"> <div class="card-content">
<div class="columns is-gapless"> <div class="columns is-gapless">
<div class="column is-narrow"> <div class="column is-narrow">
{% include 'snippets/shelve_button.html' with book=book %} {% include 'snippets/shelve_button.html' with book=book %}
{% active_shelf book as active_shelf %} </div>
</div> {% active_shelf book as active_shelf %}
{% if active_shelf.identifier == 'reading' and book.latest_readthrough %} {% if active_shelf.shelf.identifier == 'reading' and book.latest_readthrough %}
<div class="column"> <div class="column">
{% include 'snippets/progress_update.html' with readthrough=book.latest_readthrough %} {% include 'snippets/progress_update.html' with readthrough=book.latest_readthrough %}
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% include 'snippets/create_status.html' with book=book %} {% include 'snippets/create_status.html' with book=book %}
</div> </div>
</div> </div>

View file

@ -12,7 +12,7 @@
<input <input
aria-label="{% if readthrough.progress_mode == 'PG' %}Current page{% else %}Perent read{% endif%}" aria-label="{% if readthrough.progress_mode == 'PG' %}Current page{% else %}Perent read{% endif%}"
class="input is-small" type="text" class="input is-small" type="text"
name="progress" size="3" value="{{ readthrough.progress }}"> name="progress" size="3" value="{{ readthrough.progress|default:"" }}">
</div> </div>
<div class="control"> <div class="control">
{% if readthrough.progress_mode == 'PG' and book.pages %} {% if readthrough.progress_mode == 'PG' and book.pages %}