28 |
28 |
{% block content %}
|
29 |
29 |
|
30 |
30 |
{% if object.kind == "events" %}
|
|
31 |
<div class="section">
|
31 |
32 |
<h3>{% trans "Events" %}</h3>
|
32 |
|
{% if object.event_set.count %}
|
33 |
33 |
<div>
|
|
34 |
{% if object.event_set.count %}
|
34 |
35 |
<ul class="objects-list single-links">
|
35 |
36 |
{% for event in object.event_set.all %}
|
36 |
37 |
<li class="{% if event.booked_places > event.places %}overbooking{% endif %}
|
... | ... | |
65 |
66 |
</li>
|
66 |
67 |
{% endfor %}
|
67 |
68 |
</ul>
|
68 |
|
</div>
|
69 |
69 |
{% else %}
|
70 |
70 |
<div class="big-msg-info">
|
71 |
71 |
{% blocktrans %}
|
... | ... | |
74 |
74 |
{% endblocktrans %}
|
75 |
75 |
</div>
|
76 |
76 |
{% endif %}
|
|
77 |
</div>
|
|
78 |
</div>
|
77 |
79 |
{% endif %}
|
78 |
80 |
|
79 |
81 |
{% if object.kind == "meetings" %}
|
80 |
82 |
|
|
83 |
<div class="section">
|
81 |
84 |
<h3>{% trans 'Meeting Types' %}</h3>
|
82 |
|
{% if object.meetingtype_set.count %}
|
83 |
85 |
<div>
|
|
86 |
{% if object.meetingtype_set.count %}
|
84 |
87 |
<ul class="objects-list single-links">
|
85 |
88 |
{% for meeting_type in object.meetingtype_set.all %}
|
86 |
89 |
<li><a rel="popup" href="{% if user_can_manage %}{% url 'chrono-manager-meeting-type-edit' pk=meeting_type.id %}{% else %}#{% endif %}">
|
... | ... | |
91 |
94 |
</li>
|
92 |
95 |
{% endfor %}
|
93 |
96 |
</ul>
|
|
97 |
{% else %}
|
|
98 |
<div class="big-msg-info">
|
|
99 |
{% blocktrans %}
|
|
100 |
This agenda doesn't have any meeting type yet. Click on the "New Meeting Type" button in
|
|
101 |
the top right of the page to add a first one.
|
|
102 |
{% endblocktrans %}
|
|
103 |
</div>
|
|
104 |
{% endif %}
|
|
105 |
</div>
|
94 |
106 |
</div>
|
95 |
107 |
|
|
108 |
<div class="section">
|
96 |
109 |
<h3>{% trans 'Time Periods' %}</h3>
|
|
110 |
<div>
|
97 |
111 |
{% if object.desk_set.count %}
|
98 |
112 |
<div class="timeperiods">
|
99 |
113 |
{% for desk in object.desk_set.all %}
|
... | ... | |
135 |
149 |
{% endfor %}
|
136 |
150 |
</div>
|
137 |
151 |
{% else %}
|
138 |
|
<div>
|
|
152 |
<div class="big-msg-info">
|
139 |
153 |
{% blocktrans %}
|
140 |
154 |
This agenda doesn't have any desk yet. Click on the "New Desk" button in
|
141 |
155 |
the top right of the page to add a first one.
|
142 |
156 |
{% endblocktrans %}
|
143 |
157 |
</div>
|
144 |
158 |
{% endif %}
|
145 |
|
|
146 |
|
{% else %}
|
147 |
|
<div class="big-msg-info">
|
148 |
|
{% blocktrans %}
|
149 |
|
This agenda doesn't have any meeting type yet. Click on the "New Meeting Type" button in
|
150 |
|
the top right of the page to add a first one.
|
151 |
|
{% endblocktrans %}
|
152 |
159 |
</div>
|
153 |
|
{% endif %}
|
154 |
|
|
|
160 |
</div>
|
155 |
161 |
|
156 |
162 |
{% endif %}
|
157 |
163 |
|
158 |
164 |
|
|
165 |
<div class="section">
|
159 |
166 |
<h3>{% trans "Permissions" %}</h3>
|
160 |
|
|
|
167 |
<div>
|
161 |
168 |
<ul>
|
162 |
169 |
<li>{% trans "Edit Role:" %} {% if agenda.edit_role %}{{ agenda.edit_role }}{% else %}<i>{% trans "undefined" %}</i>{% endif %}</li>
|
163 |
170 |
<li>{% trans "View Role:" %} {% if agenda.view_role %}{{ agenda.view_role }}{% else %}<i>{% trans "undefined" %}</i>{% endif %}</li>
|
164 |
171 |
</ul>
|
|
172 |
</div>
|
|
173 |
</div>
|
165 |
174 |
|
|
175 |
<div class="section">
|
166 |
176 |
<h3>{% trans "Booking Delays" %}</h3>
|
167 |
|
|
|
177 |
<div>
|
168 |
178 |
<ul>
|
169 |
179 |
<li>{% trans "Minimal booking delay:" %} {{ agenda.minimal_booking_delay }} {% trans "days" %}</li>
|
170 |
180 |
<li>{% trans "Maximal booking delay:" %} {{ agenda.maximal_booking_delay }} {% trans "days" %}</li>
|
171 |
181 |
</ul>
|
|
182 |
</div>
|
|
183 |
</div>
|
172 |
184 |
|
173 |
185 |
{% endblock %}
|