1 {% extends "catalogue/base.html" %}
 
   4 {% block inner_content %}
 
   7 <a style="float:right" class="btn btn-default" href="{% url 'wiki_editor' book.pk %}">{% trans "Edit" %}</a>
 
   8 <a style="float:right; margin-right: 5px;" class="btn btn-default" href="{% url 'catalogue_fork' book.pk %}">{% trans "Create another version" %}</a>
 
  10 <a href="{% url 'catalogue_user' %}">{% trans "My resources" %}</a> /
 
  11 {% if book.owner_organization %}
 
  12     <a href="{% url 'organizations_main' book.owner_organization.pk %}">{{ book.owner_organization }}</a>
 
  14     {{ book.owner_user.first_name }} {{ book.owner_user.last_name }}
 
  16 <h1 style="margin-bottom: 1em">{{ book.meta.title }}</h1>
 
  19 <!--ul class="nav nav-tabs">
 
  20     <li role="presentation" class="disabled"><a href="#">Details</a></li>
 
  21     <li role="presentation" class="active"><a href="#">Schedule</a></li>
 
  22     <li role="presentation" class="disabled"><a href="#">Publication</a></li>
 
  26 <table class="table table-striped">
 
  28         <th>{% trans "Stage" %}</th>
 
  29         <th>{% trans "Person" %}</th>
 
  30         <th>{% trans "Deadline" %}</th>
 
  33         {% for i, sch, data in schedule %}
 
  37             {% if people|length > 1 %}
 
  38                 <select name="s{{ i }}-user" class="form-control">
 
  39                     <option value="">---</option>
 
  41                         <option value="{{ u.pk }}"
 
  42                         {% if u.pk == data.0 %}
 
  45                         >{{ u.first_name }} {{ u.last_name }}</option>
 
  49                 {{ people.0.first_name }} {{ people.0.last_name }}
 
  52             <td><input placeholder="YYYY-MM-DD" name="s{{ i }}-deadline" value="{{ data.1|default:'' }}" class="form-control datepicker-field"></td>
 
  57             <td>{% trans "Current stage" %}</td>
 
  58             <td colspan="2"><select name="stage" class="form-control">
 
  59                 <option value="">–</option>
 
  60                 {% for i, sch, data in schedule %}
 
  61                     <option value="{{ sch }}"
 
  62                     {% if sch == book.stage %}
 
  72             <td colspan="3"><button type="submit" class="btn btn-default">{% trans "Update" %}</button></td>