combo/combo/manager/templates/combo/manager_home.html

46 lines
1.4 KiB
HTML

{% extends "combo/manager_base.html" %}
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Pages' %}</h2>
<span class="actions">
<a class="extra-actions-menu-opener"></a>
<a rel="popup" href="{% url 'combo-manager-page-add' %}">{% trans 'New' %}</a>
<ul class="extra-actions-menu">
<li><a download href="{% url 'combo-manager-site-export' %}">{% trans 'Export Site' %}</a></li>
<li><a href="{% url 'combo-manager-site-import' %}">{% trans 'Import Site' %}</a></li>
{% for extra_action in extra_actions %}
<li><a href="{{ extra_action.href }}">{{ extra_action.text }}</a></li>
{% endfor %}
</ul>
</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="level-{{page.level}}" data-page-id="{{page.id}}" data-level="{{page.level}}">
<span class="handle"></span> <a href="{% url 'combo-manager-page-view' pk=page.id %}">{{ page.title }}</a>
</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 %}