Add cover via url

This commit is contained in:
Mouse Reeve
2021-03-18 10:03:53 -07:00
parent ae6d8529af
commit 9470b2831f
3 changed files with 32 additions and 5 deletions

View File

@ -10,17 +10,27 @@
{% endblock %}
{% block modal-body %}
<section class="modal-card-body">
<section class="modal-card-body columns">
{% csrf_token %}
{% csrf_token %}
<label class="label">
<div class="column">
<label class="label" for="id_cover">
{% trans "Upload cover:" %}
</label>
<input type="file" name="cover" accept="image/*" enctype="multipart/form-data" id="id_cover">
</label>
</div>
<div class="column">
<label class="label" for="id_cover_url">
{% trans "Load cover from url:" %}
</label>
<input class="input" name="cover-url" id="id_cover_url">
</div>
</section>
{% endblock %}
{% block modal-footer %}
<button class="button is-primary" type="submit">{% trans "Add" %}</button>
{% trans "Cancel" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text %}
{% endblock %}
{% block modal-form-close %}</form>{% endblock %}