fix thumbnail issues + some cleanup
[redakcja.git] / apps / catalogue / templates / catalogue / book_schedule.html
1 {% extends "catalogue/base.html" %}
2 {% load i18n %}
3
4 {% block inner_content %}
5
6
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>
9
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>
13 {% else %}
14     {{ book.owner_user.get_full_name }}
15 {% endif %} /
16 <h1 style="margin-bottom: 1em">{{ book.meta.title }}</h1>
17
18
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>
23 </ul-->
24
25 <form method="POST">
26 <table class="table table-striped">
27     <thead>
28         <td>{% trans "Stage" %}</td>
29         <td>{% trans "Person" %}</td>
30         <td>{% trans "Deadline" %}</td>
31     </thead>
32     <tbody>
33         {% for i, sch, data in schedule %}
34             <tr>
35             <td>{{ sch }}</td>
36             <td>
37             {% if people|length > 1 %}
38                 <select name="s{{ i }}-user" class="form-control">
39                     <option value="">---</option>
40                     {% for u in people %}
41                         <option value="{{ u.pk }}"
42                         {% if u.pk == data.0 %}
43                             selected="selected"
44                         {% endif %}
45                         >{{ u.get_full_name }}</option>
46                     {% endfor %}
47                 </select>
48             {% else %}
49                 {{ people.0.get_full_name }}
50             {% endif %}
51             </td>
52             <td><input placeholder="YYYY-MM-DD" name="s{{ i }}-deadline" value="{{ data.1|default:'' }}" class="form-control datepicker-field"></td>
53             </tr>
54         {% endfor %}
55
56         <tr>
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 %}
63                         selected="selected"
64                     {% endif %}
65                     >{{ sch }}</option>
66                 {% endfor %}
67                 </select>
68             </td>
69         </tr>
70
71         <tr>
72             <td colspan="3"><button type="submit" class="btn btn-default">{% trans "Update" %}</button></td>
73         </tr>
74     </tbody>
75 </table>
76 {% csrf_token %}
77 </form>
78
79
80 {% endblock %}