Fix stopped reading status model in non-javascript environment

This commit is contained in:
Thomas Versteeg 2022-02-25 22:38:58 +01:00
parent 5eb113af6b
commit 8deee2220e
3 changed files with 18 additions and 5 deletions

View file

@ -6,9 +6,8 @@ from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bookwyrm', '0134_alter_stopped_reading'),
('bookwyrm', '0141_alter_report_status'),
("bookwyrm", "0134_alter_stopped_reading"),
("bookwyrm", "0141_alter_report_status"),
]
operations = [
]
operations = []

View file

@ -0,0 +1,14 @@
{% extends 'layout.html' %}
{% load i18n %}
{% block title %}
{% blocktrans trimmed with book_title=book.title %}
Stop Reading "{{ book_title }}"
{% endblocktrans %}
{% endblock %}
{% block content %}
{% include "snippets/reading_modals/stop_reading_modal.html" with book=book active=True static=True %}
{% endblock %}

View file

@ -31,7 +31,7 @@ Stop Reading "<em>{{ book_title }}</em>"
<label class="label" for="id_read_until_date_{{ uuid }}">
{% trans "Read until" %}
</label>
<input type="date" name="read_until_date" class="input" id="id_read_until_date_{{ uuid }}" value="{% now "Y-m-d" %}">
<input type="date" name="finish_date" class="input" id="id_read_until_date_{{ uuid }}" value="{% now "Y-m-d" %}">
</div>
</div>
</div>