forked from mirrors/bookwyrm
27 lines
706 B
HTML
27 lines
706 B
HTML
|
{% extends 'components/modal.html' %}
|
||
|
{% 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 %}
|
||
|
<section class="modal-card-body">
|
||
|
{% csrf_token %}
|
||
|
{% csrf_token %}
|
||
|
<label class="label">
|
||
|
<input type="file" name="cover" accept="image/*" enctype="multipart/form-data" id="id_cover">
|
||
|
</label>
|
||
|
</section>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block modal-footer %}
|
||
|
<button class="button is-primary" type="submit">{% trans "Add" %}</button>
|
||
|
{% endblock %}
|
||
|
{% block modal-form-close %}</form>{% endblock %}
|
||
|
|