fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chunk split option comes back,
[redakcja.git]
/
apps
/
catalogue
/
templates
/
catalogue
/
chunk_edit.html
diff --git
a/apps/catalogue/templates/catalogue/chunk_edit.html
b/apps/catalogue/templates/catalogue/chunk_edit.html
index
3fffa96
..
bdacd02
100755
(executable)
--- a/
apps/catalogue/templates/catalogue/chunk_edit.html
+++ b/
apps/catalogue/templates/catalogue/chunk_edit.html
@@
-1,14
+1,21
@@
{% extends "catalogue/base.html" %}
{% extends "catalogue/base.html" %}
+{% load url from future %}
{% load i18n %}
{% load i18n %}
-{% block leftcolumn %}
- <form enctype="multipart/form-data" method="POST" action="">
+{% block content %}
+ <h1>{% trans "Chunk settings" %}</h1>
+
+ <form enctype="multipart/form-data" method="POST" action="{% if go_next %}?next={{ go_next }}{% endif %}">
{% csrf_token %}
{% csrf_token %}
- {{ form.as_p }}
+ <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>
- <p><button type="submit">{% trans "Save" %}</button></p>
</form>
</form>
-{% endblock leftcolumn %}
-{% block rightcolumn %}
-{% endblock rightcolumn %}
+
+ <p><a href="{% url "catalogue_chunk_add" chunk.book.slug chunk.slug %}">{% trans "Split chunk" %}</a></p>
+
+{% endblock content %}