54 lines
1.8 KiB
HTML
54 lines
1.8 KiB
HTML
{% extends "passerelle/manage.html" %}
|
|
{% load i18n passerelle gadjo staticfiles %}
|
|
|
|
{% comment %}
|
|
This file is part of passerelle-atreal-openads - a Publik connector to openADS
|
|
|
|
Copyright (C) 2019 Atreal
|
|
|
|
This program is free software: you can redistribute it and/or modify it
|
|
under the terms of the GNU Affero General Public License as published
|
|
by the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
{% endcomment %}
|
|
|
|
{% block extrascripts %}
|
|
{{ block.super }}
|
|
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/atreal_openads.css" %}?{% start_timestamp %}"/>
|
|
{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
{% if connecteur %}<a href="{{connecteur.get_absolute_url}}">{{ connecteur.slug }}</a>{% endif %}
|
|
{% if collectivite %}<a href="{{collectivite.get_absolute_url}}">{{ collectivite.name }}</a>{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
<h2>{{ view.model.get_verbose_name }} {% if object.id and object.collectivite %} - {{ object.collectivite }}{% else %}{% trans 'New' %}{% endif %}</h2>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
<div id="form-content">
|
|
{% csrf_token %}
|
|
{{ form|with_template }}
|
|
</div>
|
|
{% block buttons %}
|
|
<div class="buttons">
|
|
<button class="submit-button">{% trans "Save" %}</button>
|
|
<button class="cancel">{% trans "Cancel" %}</button>
|
|
</div>
|
|
{% endblock %}
|
|
</form>
|
|
|
|
{% endblock %}
|