Last template fixes in agenda, motion and assignment list view.

This commit is contained in:
Emanuel Schuetze 2014-05-30 14:37:50 +02:00
parent c5db1c5e02
commit 0ebb2eb901
3 changed files with 33 additions and 28 deletions

View File

@ -46,36 +46,37 @@
</h1> </h1>
<div class="row-fluid"> <div class="row-fluid">
<div class="span6"> <div class="pull-left">
{% if perms.agenda.can_manage_agenda %}
<p><a href="{% url 'agenda_numbering' %}"
class="btn btn-mini">{% trans 'Number agenda items' %}</a>
</p>
{% endif %}
<p>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" id="hide_closed_items"> {% trans "Hide closed items" %} <input type="checkbox" id="hide_closed_items"> {% trans "Hide closed items" %}
</label> </label>
<small><i>{{ items|length }} <small><i>{{ items|length }}
{% blocktrans count counter=items|length %}item{% plural %}items{% endblocktrans %}<span id="hiddencount"></span> {% blocktrans count counter=items|length %}item{% plural %}items{% endblocktrans %}<span id="hiddencount"></span>
</i></small> </i></small>
</p>
</div> </div>
<div class="span6"> {% if perms.agenda.can_see_orga_items %}
{% if perms.agenda.can_see_orga_items %} {% if start and end %}
{% if start and end %} <table id="agendatime" class="table table-bordered pull-right">
<table id="agendatime" class="table table-bordered pull-right"> <tr>
<tr> <td>{% trans "Start of event" %}:</td>
<td>{% trans "Start of event" %}:</td> <td>{{ start|date:"DATETIME_FORMAT" }}</td>
<td>{{ start|date:"DATETIME_FORMAT" }}</td> </tr>
</tr> <tr>
<tr> <td>{% trans "Estimated end" %}:</td>
<td>{% trans "Estimated end" %}:</td> <td>{{ end|date:"DATETIME_FORMAT" }}</td>
<td>{{ end|date:"DATETIME_FORMAT" }}</td> </tr>
</tr> </table>
</table> {% elif perms.config.can_manage %}
{% else %} <a href="{% url 'config_agenda' %}" class="btn btn-mini pull-right">{% trans 'Set start time of event' %}</a>
<a href="{% url 'config_agenda' %}" class="btn btn-mini pull-right">{% trans 'Set start time of event' %}</a>
{% endif %}
{% if perms.agenda.can_manage_agenda %}
<a href="{% url 'agenda_numbering' %}"
class="btn btn-mini pull-left">{% trans 'Number agenda items' %}</a>
{% endif %}
{% endif %} {% endif %}
</div> {% endif %}
</div> </div>
<table id="menu-overview" class="table table-striped table-bordered"> <table id="menu-overview" class="table table-striped table-bordered">

View File

@ -33,7 +33,9 @@
<th>{% trans "Election" %}</th> <th>{% trans "Election" %}</th>
<th class="optional">{% trans "Candidates" %}</th> <th class="optional">{% trans "Candidates" %}</th>
<th>{% trans "Status" %}</th> <th>{% trans "Status" %}</th>
<th class="mini_width">{% trans "Actions" %}</th> {% if perms.assignment.can_manage_assignment or perms.core.can_manage_projector %}
<th class="mini_width">{% trans "Actions" %}</th>
{% endif %}
</tr> </tr>
</thead> </thead>
{% for object in object_list %} {% for object in object_list %}
@ -51,6 +53,7 @@
| {% trans "Elected" %}: <span class="badge badge-success">{{ object.elected|length }}</span> | {% trans "Elected" %}: <span class="badge badge-success">{{ object.elected|length }}</span>
</td> </td>
<td><span class="label label-info">{{ object.get_status_display }}</status></td> <td><span class="label label-info">{{ object.get_status_display }}</status></td>
{% if perms.assignment.can_manage_assignment or perms.core.can_manage_projector %}
<td> <td>
<span style="width: 1px; white-space: nowrap;"> <span style="width: 1px; white-space: nowrap;">
{% if perms.core.can_manage_projector %} {% if perms.core.can_manage_projector %}
@ -70,12 +73,9 @@
class="btn btn-mini"><i class="icon-remove"></i> class="btn btn-mini"><i class="icon-remove"></i>
</a> </a>
{% endif %} {% endif %}
<a href="{% url 'assignment_pdf' object.id %}"
data-original-title="{% trans 'Print election as PDF' %}" target="_blank"
class="btn btn-mini tooltip-left"><i class="icon-print"></i> PDF
</a>
</span> </span>
</td> </td>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>

View File

@ -56,7 +56,9 @@
<th class="optional">{% trans "Supporters" %}</th> <th class="optional">{% trans "Supporters" %}</th>
{% endif %} {% endif %}
<th class="optional">{% trans "Last changes" %}</th> <th class="optional">{% trans "Last changes" %}</th>
<th class="mini_width">{% trans "Actions" %}</th> {% if perms.motion.can_manage_motion or perms.core.can_manage_projector %}
<th class="mini_width">{% trans "Actions" %}</th>
{% endif %}
</tr> </tr>
</thead> </thead>
{% for motion in motion_list %} {% for motion in motion_list %}
@ -88,6 +90,7 @@
<i class="icon-warning-sign icon-white"></i> <i class="icon-warning-sign icon-white"></i>
</a> </a>
{% endif %}</td> {% endif %}</td>
{% if perms.motion.can_manage_motion or perms.core.can_manage_projector %}
<td> <td>
<span style="width: 1px; white-space: nowrap;"> <span style="width: 1px; white-space: nowrap;">
{% if perms.core.can_manage_projector %} {% if perms.core.can_manage_projector %}
@ -106,6 +109,7 @@
{% endif %} {% endif %}
</span> </span>
</td> </td>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>