1
0
Fork 0
bookwyrm/bookwyrm/templates/book/cover_add_modal.html

38 lines
1.1 KiB
HTML
Raw Normal View History

{% extends 'components/modal.html' %}
2021-03-18 09:44:59 -07:00
{% load i18n %}
{% block modal-title %}
{% trans "Add cover" %}
{% endblock %}
{% block modal-form-open %}
<form name="add-cover" method="POST" action="{% url 'upload-cover' book.id %}" enctype="multipart/form-data">
{% endblock %}
{% block modal-body %}
2021-03-18 10:03:53 -07:00
<section class="modal-card-body columns">
2021-03-18 09:44:59 -07:00
{% csrf_token %}
2021-03-18 10:03:53 -07:00
<div class="column">
<label class="label" for="id_cover">
{% trans "Upload cover:" %}
</label>
2021-03-18 09:44:59 -07:00
<input type="file" name="cover" accept="image/*" enctype="multipart/form-data" id="id_cover">
2021-03-18 10:03:53 -07:00
</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>
2021-03-18 09:44:59 -07:00
</section>
{% endblock %}
{% block modal-footer %}
<div class="buttons is-right is-flex-grow-1">
<button class="button is-primary" type="submit">{% trans "Add" %}</button>
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
</div>
2021-03-18 09:44:59 -07:00
{% endblock %}
2021-12-30 14:07:30 -08:00
{% block modal-form-close %}</form>{% endblock %}