OpenSlides/openslides/agenda/templates/agenda/item_row.html

55 lines
2.0 KiB
HTML
Raw Normal View History

{% load i18n %}
{% load staticfiles %}
{% load tags %}
<td>
{% if perms.agenda.can_manage_agenda %}
<a class="close_link {% if item.closed %}closed{% endif %}" href="{% if item.closed %}{% url item_open item.id %}{% else %}{% url item_close item.id %}{% endif %}">
<span></span>
</a>
{% elif item.closed %}
2012-04-23 21:27:22 +02:00
<img src="{% static 'images/icons/done.png' %}" title="{% trans 'Item closed' %}">
{% endif %}
</td>
<td>
{% for p in item.get_ancestors %}
<div class="indentation">&nbsp;</div>
{% endfor %}
{% if perms.agenda.can_manage_agenda %}
<div class="dragcell"></div>
{% endif %}
2012-04-15 09:55:21 +02:00
<a href="{{ item.get_absolute_url }}">{{ item }}</a>
{% if item.releated_sid %}
2012-06-30 11:06:32 +02:00
({{ item.print_releated_type }})
{% endif %}
</td>
{% if perms.agenda.can_manage_agenda %}
<td>
{{ item.comment|first_line }}
</td>
{% endif %}
2012-04-20 22:58:57 +02:00
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
<td>
<span style="width: 1px; white-space: nowrap;">
2012-04-20 22:58:57 +02:00
{% if perms.projector.can_manage_projector %}
<a class="activate_link {% if item.active %}active{% endif %}" href="{% url projector_activate_slide item.sid %}" title="{% trans 'Activate item' %}">
<span></span>
</a>
{% endif %}
{% if perms.agenda.can_manage_agenda %}
<a href="{% model_url item 'edit' %}"><img src="{% static 'images/icons/edit.png' %}" title="{% trans 'Edit item' %}"></a>
<a href="{% model_url item 'delete' %}"><img src="{% static 'images/icons/delete.png' %}" title="{% trans 'Delete item' %}"></a>
2012-04-20 22:58:57 +02:00
{% endif %}
</span>
</td>
2012-04-20 22:58:57 +02:00
{% endif %}
{% if perms.agenda.can_manage_agenda %}
<td class="tabledrag-hide">
{% with form=item.weight_form %}
{{ form.weight }}
{{ form.self }}
{{ form.parent }}
{% endwith %}
</td>
{% endif %}