forked from mirrors/bookwyrm
Demo for file type
This commit is contained in:
parent
3d07618b5f
commit
76694bb891
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{% extends 'components/modal.html' %}
|
{% extends 'components/modal.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block modal-title %}
|
{% block modal-title %}
|
||||||
{% trans "Add file link" %}
|
{% trans "Add file link" %}
|
||||||
|
@ -26,7 +27,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-one-fifth">
|
<div class="column is-one-fifth">
|
||||||
<label class="label" for="id_filetype">{% trans "File type:" %}</label>
|
<label class="label" for="id_filetype">{% trans "File type:" %}</label>
|
||||||
<input type="text" name="filetype" maxlength="5" class="input" required="" id="id_filetype" value="{% firstof file_link_form.filetype.value "" %}" placeholder="PDF">
|
<input type="text" name="filetype" maxlength="5" class="input" required="" id="id_filetype" value="{% firstof file_link_form.filetype.value "" %}" placeholder="PDF" data-autocomplete="mimetype">
|
||||||
{% include 'snippets/form_errors.html' with errors_list=file_link_form.filetype.errors id="desc_filetype" %}
|
{% include 'snippets/form_errors.html' with errors_list=file_link_form.filetype.errors id="desc_filetype" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -265,6 +265,7 @@
|
||||||
<script src="{% static "js/bookwyrm.js" %}?v={{ js_cache }}"></script>
|
<script src="{% static "js/bookwyrm.js" %}?v={{ js_cache }}"></script>
|
||||||
<script src="{% static "js/localstorage.js" %}?v={{ js_cache }}"></script>
|
<script src="{% static "js/localstorage.js" %}?v={{ js_cache }}"></script>
|
||||||
<script src="{% static "js/status_cache.js" %}?v={{ js_cache }}"></script>
|
<script src="{% static "js/status_cache.js" %}?v={{ js_cache }}"></script>
|
||||||
|
<script src="{% static "js/autocomplete.js" %}?v={{ js_cache }}"></script>
|
||||||
|
|
||||||
{% block scripts %}{% endblock %}
|
{% block scripts %}{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue