fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetics.
[redakcja.git]
/
src
/
catalogue
/
templates
/
catalogue
/
image_detail.html
diff --git
a/src/catalogue/templates/catalogue/image_detail.html
b/src/catalogue/templates/catalogue/image_detail.html
old mode 100755
(executable)
new mode 100644
(file)
index
6d154d0
..
e3902b8
--- a/
src/catalogue/templates/catalogue/image_detail.html
+++ b/
src/catalogue/templates/catalogue/image_detail.html
@@
-1,39
+1,52
@@
{% extends "catalogue/base.html" %}
{% load book_list i18n %}
{% extends "catalogue/base.html" %}
{% load book_list i18n %}
+{% load bootstrap4 %}
{% block titleextra %}{{ object.title }}{% endblock %}
{% block content %}
{% block titleextra %}{{ object.title }}{% endblock %}
{% block content %}
+<div class="card mt-4">
-
+ <div class="card-header">
<h1>{{ object.title }}</h1>
<h1>{{ object.title }}</h1>
+ </div>
+ <div class="card-body">
{% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
{% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
-<table class='editable'><tbody>
- {{ form.as_table }}
+ {% bootstrap_form form %}
{% if editable %}
{% if editable %}
- <tr><td></td><td><button type="submit">{% trans "Save" %}</button></td></tr>
+ {% buttons %}
+ <button class="btn btn-primary" type="submit">{% trans "Save" %}</button>
+ {% endbuttons %}
{% endif %}
</tbody></table>
{% if editable %}</form>{% endif %}
{% endif %}
</tbody></table>
{% if editable %}</form>{% endif %}
+ </div>
+</div>
-<div class='section'>
+<div class='card mt-4'>
+ <div class="card-header">
<h2>{% trans "Editor" %}</h2>
<h2>{% trans "Editor" %}</h2>
+ </div>
+ <div class="card-body">
- <p><a href="{% url 'wiki_img_editor' object.slug %}">{% trans "Proceed to the editor." %}</a></p>
+ <p><a class="btn btn-primary" href="{% url 'wiki_img_editor' object.slug %}">{% trans "Proceed to the editor." %}</a></p>
+</div>
</div>
</div>
-<div class='
section
'>
-
+<div class='
card mt-4
'>
+ <div class="card-header">
<h2>{% trans "Publication" %}</h2>
<h2>{% trans "Publication" %}</h2>
+ </div>
+ <div class="card-body">
<p>{% trans "Last published" %}:
{% if object.last_published %}
<p>{% trans "Last published" %}:
{% if object.last_published %}
@@
-66,6
+79,7
@@
{% endif %}
</div>
{% endif %}
</div>
+</div>
{% endblock content %}
{% endblock content %}