indent items in control view
This commit is contained in:
parent
aa54ac6d7d
commit
67384d0644
@ -117,7 +117,7 @@ class Item(MPTTModel, SlideMixin):
|
|||||||
order_insertion_by = ['weight', 'title']
|
order_insertion_by = ['weight', 'title']
|
||||||
|
|
||||||
|
|
||||||
register_slidemodel(Item)
|
register_slidemodel(Item, control_template='agenda/control_item.html')
|
||||||
|
|
||||||
# TODO: put this in another file
|
# TODO: put this in another file
|
||||||
|
|
||||||
|
17
openslides/agenda/templates/agenda/control_item.html
Normal file
17
openslides/agenda/templates/agenda/control_item.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{% load staticfiles %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
<ul style="line-height: 180%">
|
||||||
|
{% for slide in slides.get_items %}
|
||||||
|
<li class="{% if slide.active %}activeline{% endif %}">
|
||||||
|
<a href="{% url projector_activate_slide slide.sid %}" class="activate_link {% if slide.active %}active{% endif %}">
|
||||||
|
<div></div>
|
||||||
|
</a>
|
||||||
|
{% for p in slide.get_ancestors %}
|
||||||
|
<span class="indentation"> </span>
|
||||||
|
{% endfor %}
|
||||||
|
<a href="{% url item_edit slide.id %}">{{ slide }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
@ -7,7 +7,7 @@
|
|||||||
<a href="{% url projector_activate_slide slide.sid %}" class="activate_link {% if slide.active %}active{% endif %}">
|
<a href="{% url projector_activate_slide slide.sid %}" class="activate_link {% if slide.active %}active{% endif %}">
|
||||||
<div></div>
|
<div></div>
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url projector_edit_slide slide.id %}">{{ slide }}</a>
|
<a href="{{ slide.get_absolute_url }}">{{ slide }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -39,11 +39,6 @@ urlpatterns = patterns('projector.views',
|
|||||||
name='projector_activate_summary',
|
name='projector_activate_summary',
|
||||||
),
|
),
|
||||||
|
|
||||||
url(r'^edit/(?P<pk>\d+)/$',
|
|
||||||
ItemUpdate.as_view(),
|
|
||||||
name='projector_edit_slide',
|
|
||||||
),
|
|
||||||
|
|
||||||
url(r'^new/$',
|
url(r'^new/$',
|
||||||
CreateView.as_view(
|
CreateView.as_view(
|
||||||
success_url='projector_control',
|
success_url='projector_control',
|
||||||
|
Loading…
Reference in New Issue
Block a user