mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 01:51:08 +00:00
Adds datepicker script dependencies to templates
This commit is contained in:
parent
33ec315fbf
commit
33ca7b4b76
8 changed files with 28 additions and 2 deletions
|
@ -39,3 +39,6 @@
|
|||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% include 'snippets/datepicker_js.html' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -333,4 +333,5 @@
|
|||
|
||||
{% block scripts %}
|
||||
<script src="/static/js/vendor/tabs.js"></script>
|
||||
{% include 'snippets/datepicker_js.html' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
|
||||
<p class="mb-2">
|
||||
<label class="label" for="id_first_published_date">{% trans "First published date:" %}</label>
|
||||
<input type="date" name="first_published_date" class="input" id="id_first_published_date"{% if form.first_published_date.value %} value="{{ form.first_published_date.value|date:'Y-m-d' }}"{% endif %}>
|
||||
<duet-date-picker identifier="id_first_published_date" name="first_published_date"{% if form.first_published_date.value %} value="{{ form.first_published_date.value|date:'Y-m-d' }}"{% endif %}></duet-date-picker>
|
||||
</p>
|
||||
{% for error in form.first_published_date.errors %}
|
||||
<p class="help is-danger">{{ error | escape }}</p>
|
||||
|
@ -141,7 +141,7 @@
|
|||
|
||||
<p class="mb-2">
|
||||
<label class="label" for="id_published_date">{% trans "Published date:" %}</label>
|
||||
<input type="date" name="published_date" class="input" id="id_published_date"{% if form.published_date.value %} value="{{ form.published_date.value|date:'Y-m-d'}}"{% endif %}>
|
||||
<duet-date-picker identifier="id_published_date" name="published_date"{% if form.published_date.value %} value="{{ form.published_date.value|date:'Y-m-d' }}"{% endif %}></duet-date-picker>
|
||||
</p>
|
||||
{% for error in form.published_date.errors %}
|
||||
<p class="help is-danger">{{ error | escape }}</p>
|
||||
|
@ -245,3 +245,7 @@
|
|||
</form>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% include 'snippets/datepicker_js.html' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -51,3 +51,7 @@
|
|||
{% include 'snippets/pagination.html' with page=editions path=request.path %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% include 'snippets/datepicker_js.html' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -81,3 +81,7 @@
|
|||
</form>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% include 'snippets/datepicker_js.html' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -105,4 +105,5 @@
|
|||
|
||||
{% block scripts %}
|
||||
<script src="/static/js/vendor/tabs.js"></script>
|
||||
{% include 'snippets/datepicker_js.html' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -64,3 +64,7 @@
|
|||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
{% include 'snippets/datepicker_js.html' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -81,3 +81,8 @@
|
|||
{% block panel %}{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block scripts %}
|
||||
{% include 'snippets/datepicker_js.html' %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue