1 {% extends "documents/base.html" %}
 
   2 {% load book_list i18n %}
 
   6 {% block titleextra %}{{ object.title }}{% endblock %}
 
  10 <div class="card mt-4">
 
  12         <div class="card-header">
 
  13 <h1>{{ object.title }}</h1>
 
  15         <div class="card-body">
 
  18 {% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
 
  19     {% bootstrap_form form %}
 
  22         <button class="btn btn-primary" type="submit">{% trans "Save" %}</button>
 
  26 {% if editable %}</form>{% endif %}
 
  32 <div class='card mt-4'>
 
  33         <div class="card-header">
 
  34     <h2>{% trans "Editor" %}</h2>
 
  36         <div class="card-body">
 
  38     <p><a class="btn btn-primary" href="{% url 'wiki_img_editor' object.slug %}">{% trans "Proceed to the editor." %}</a></p>
 
  44 <div class='card mt-4'>
 
  45         <div class="card-header">
 
  47 <h2>{% trans "Publication" %}</h2>
 
  49         <div class="card-body">
 
  51 <p>{% trans "Last published" %}: 
 
  52     {% if object.last_published %}
 
  53         {{ object.last_published }}
 
  60     {% if user.is_authenticated %}
 
  63         Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
 
  64         mira66 (http://www.flickr.com/photos/21804434@N02/) /
 
  65         CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
 
  67         <form method="POST" action="{% url 'documents_publish_image' object.slug %}">{% csrf_token %}
 
  68             <!--img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" /-->
 
  69             <button id="publish-button" type="submit">
 
  70                 <span>{% trans "Publish" %}</span></button>
 
  71             <!--img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" /-->
 
  74         <a href="{% url 'cas_ng_login' %}">{% trans "Log in to publish." %}</a>
 
  77     <p>{% trans "This book can't be published yet, because:" %}</p>
 
  78     <ul><li>{{ publishable_error }}</li></ul>
 
  85 {% endblock content %}