misc: use new markup for appbar actions (#25927)

This commit is contained in:
Frédéric Péters 2018-08-16 14:22:02 +02:00
parent 73993484d8
commit 6ae1b0e8be
6 changed files with 12 additions and 0 deletions

View File

@ -3,7 +3,9 @@
{% block appbar %}
<h2>{% trans 'Assets' %}</h2>
<span class="actions">
<a href="{% url 'combo-manager-asset-upload' %}" rel="popup">{% trans 'Upload' %}</a>
</span>
{% endblock %}
{% block breadcrumb %}

View File

@ -3,7 +3,9 @@
{% block appbar %}
<h2>{% trans 'Regies' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'lingo-manager-regie-add' %}">{% trans 'New' %}</a>
</span>
{% endblock %}
{% block breadcrumb %}

View File

@ -3,7 +3,9 @@
{% block appbar %}
<h2>{% trans 'Transactions' %}</h2>
<span class="actions">
<a href="{% url 'lingo-manager-transactions-download' %}">{% trans 'download CSV' %}</a>
</span>
{% endblock %}
{% block breadcrumb %}

View File

@ -3,7 +3,9 @@
{% block appbar %}
<h2>{% trans 'Maps' %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'maps-manager-layer-add' %}">{% trans 'New' %}</a>
</span>
{% endblock %}
{% block content %}

View File

@ -3,6 +3,7 @@
{% 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">
@ -12,6 +13,7 @@
<li><a href="{{ extra_action.href }}">{{ extra_action.text }}</a></li>
{% endfor %}
</ul>
</span>
{% endblock %}
{% block content %}

View File

@ -5,10 +5,12 @@
{% block appbar %}
<h2>{% trans 'Page' %} - {{ object.title }}</h2>
<span class="actions">
<a href="{{ object.get_online_url }}">{% trans 'see online' %}</a>
<a href="{% url 'combo-manager-page-history' pk=object.id %}">{% trans 'history' %}</a>
<a href="{% url 'combo-manager-page-export' pk=object.id %}">{% trans 'export' %}</a>
<a rel="popup" href="{% url 'combo-manager-page-delete' pk=object.id %}">{% trans 'delete' %}</a>
</span>
{% endblock %}
{% block breadcrumb %}