Begin bootstapify.
[redakcja.git] / src / catalogue / templates / catalogue / chunk_edit.html
index 2006226..180e6d3 100755 (executable)
@@ -1,24 +1,33 @@
 {% extends "catalogue/base.html" %}
 {% load i18n %}
+{% load bootstrap4 %}
 
 
 {% block titleextra %}{% trans "Chunk settings" %}{% endblock %}
 
 
 {% block content %}
+<div class="card mt-4">
+       <div class="card-header">
     <h1>{% trans "Chunk settings" %}</h1>
+       </div>
+       <div class="card-body">
 
        <form enctype="multipart/form-data" method="POST" action="{% if go_next %}?next={{ go_next }}{% endif %}">
     {% csrf_token %}
-    <table class='editable'>
-        <tr><th>{% trans "Book" %}:</th><td>{{ chunk.book }} ({{ chunk.number }}/{{ chunk.book|length }})</td></tr>
-        {{ form.as_table}}
-        <tr><td></td><td><button type="submit">{% trans "Save" %}</button></td></tr>
-    </table>
+    <div class='editable'>
+           <p>{% trans "Book" %}: {{ chunk.book }} ({{ chunk.number }}/{{ chunk.book|length }})</p>
+        {% bootstrap_form form %}
+       {% buttons %}
+               <button class="btn btn-primary" type="submit">{% trans "Save" %}</button>
+               {% endbuttons %}
+    </div>
 
        </form>
 
 
-    <p><a href="{% url "catalogue_chunk_add" chunk.book.slug chunk.slug %}">{% trans "Split chunk" %}</a></p>
+    <p style="text-align: right"><a class="btn btn-danger" href="{% url "catalogue_chunk_add" chunk.book.slug chunk.slug %}">{% trans "Split chunk" %}</a></p>
+   </div>
+</div>
 
 {% endblock content %}