71 lines
2.8 KiB
HTML
71 lines
2.8 KiB
HTML
{% extends "combo/manager_base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block appbar %}
|
|
<h2>{% trans 'Pages' %}</h2>
|
|
<span class="actions">
|
|
{% if user.is_superuser %}
|
|
<a class="extra-actions-menu-opener"></a>
|
|
{% endif %}
|
|
{% if can_add_page %}
|
|
<a rel="popup" href="{% url 'combo-manager-page-add' %}">{% trans 'New' %}</a>
|
|
{% endif %}
|
|
{% if user.is_superuser %}
|
|
<ul class="extra-actions-menu">
|
|
<li><a href="{% url 'combo-manager-site-export' %}" rel="popup" data-autoclose-dialog="true">{% trans 'Export Site' %}</a></li>
|
|
<li><a href="{% url 'combo-manager-site-import' %}">{% trans 'Import Site' %}</a></li>
|
|
<li><a href="{% url 'combo-manager-invalid-cell-report' %}">{% trans 'Anomaly report' %}</a></li>
|
|
<li><a href="{% url 'combo-manager-site-settings' %}" rel="popup" data-autoclose-dialog="true">{% trans 'Site Settings' %}</a></li>
|
|
{% for extra_action in extra_actions %}
|
|
<li><a href="{{ extra_action.href }}">{{ extra_action.text }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% if object_list %}
|
|
|
|
<p class="hint">
|
|
{% blocktrans %}
|
|
Use drag and drop with the ⣿ handles to reorder and change hierarchy of pages.
|
|
{% endblocktrans %}
|
|
</p>
|
|
|
|
<div class="objects-list" id="pages-list" data-page-order-url="{% url 'combo-manager-page-order' %}">
|
|
{% for page in object_list %}
|
|
<div class="page level-{{page.level}}{% if collapse_pages %} untoggled{% endif %}" data-page-id="{{page.id}}" data-level="{{page.level}}">
|
|
{% if user.is_superuser %}<span class="handle">⣿</span>{% endif %}
|
|
<span class="group1">
|
|
<a href="{% url 'combo-manager-page-view' pk=page.id %}">
|
|
{{ page.title }}
|
|
{% for label in page.extra_labels %}{% if forloop.first %}<small>({% endif %}{{ label }}{% if forloop.last %})</small>{% else %}, {% endif %}{% endfor %}
|
|
</a>
|
|
</span>
|
|
{% if not page.public %}
|
|
<span class="visibility-summary" title="{% trans 'Restricted visibility' %}">
|
|
{% with page.groups.all as page_groups %}
|
|
{% for group in page_groups %}{{ group.name }}{% if not forloop.last %}, {% endif %}
|
|
{% empty %}
|
|
{% trans "logged users" %}
|
|
{% endfor %}
|
|
{% endwith %}
|
|
</span>
|
|
{% endif %}
|
|
{% if collapse_pages %}<span class="togglable"></span>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans %}
|
|
This site doesn't have any page yet. Click on the "New" button in the top
|
|
right of the page to add a first one.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|