update templates to match summer 2016 gadjo changes (#15732)

This commit is contained in:
Frédéric Péters 2017-04-03 14:55:02 +02:00
parent 62ab9b4cbd
commit df480d1043
3 changed files with 8 additions and 31 deletions

View File

@ -1,8 +1,8 @@
{% extends "passerelle/manage.html" %}
{% block more-user-links %}
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href="{% url 'montpellier-encombrants-view' slug=object.slug %}">{{ object.title }}</a>
<a href="{{object.get_absolute_url}}">{{ object.title }}</a>
{% endif %}
{% endblock %}

View File

@ -1,11 +1,6 @@
{% extends "passerelle_montpellier_encombrants/base.html" %}
{% load i18n %}
{% block more-user-links %}
{{ block.super }}
<a href="{% url 'montpellier-encombrants-commune-listing' %}">{% trans "Communes" %}</a>
{% endblock %}
{% block appbar %}
<h2>{{ commune }}</h2>
<a rel="popup" href="{% url 'montpellier-encombrants-commune-streets-edit-view' pk=commune.pk %}">{% trans 'Edit streets' %}</a>

View File

@ -1,27 +1,15 @@
{% extends "passerelle_montpellier_encombrants/base.html" %}
{% extends "passerelle/manage/service_view.html" %}
{% load i18n passerelle %}
{% block appbar %}
<h2>Encombrants Montpellier - {{ object.title }}</h2>
{% if perms.passerelle_montpellier_encombrants.change_passerelle_montpellier_encombrants %}
<a rel="popup" class="button" href="{% url 'montpellier-encombrants-edit' slug=object.slug %}">{% trans 'edit' %}</a>
{% endif %}
{% if perms.passerelle_montpellier_encombrants.delete_passerelle_montpellier_encombrants %}
<a rel="popup" class="button" href="{% url 'montpellier-encombrants-delete' slug=object.slug %}">{% trans 'delete' %}</a>
{% endif %}
{% endblock %}
{% block endpoints %}
{% block content %}
<div>
<h3>{% trans 'Endpoints' %}</h3>
<ul>
<li>{% trans 'Listing available days:' %} <a href="{% url 'montpellier-encombrants-available-days' slug=object.slug insee=34088 %}"
>{{ site_base_uri }}{% url 'montpellier-encombrants-view' slug=object.slug %}available/<i>&lt;insee&gt;</i></a></li>
</ul>
</div>
{% endblock %}
{% block description %}
{% if perms.passerelle_montpellier_encombrants.change_passerelle_montpellier_encombrants %}
<div>
<h3>{% trans "Management" %}</h3>
@ -34,18 +22,12 @@
</div>
{% endif %}
{% endblock %}
{% if perms.base.view_accessright %}
<div>
<h3>{% trans "Security" %}</h3>
{% block security %}
<p>
{% trans 'Accessing the listings is open, but posting requests is limited to the following API users:' %}
</p>
{% access_rights_table resource=object permission='can_post_request' %}
{% endif %}
</div>
{% endblock %}