35 lines
891 B
HTML
35 lines
891 B
HTML
{% extends "passerelle_imio_liege_lisrue/base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block more-user-links %}
|
|
{{ block.super }}
|
|
{% if not object.id %}
|
|
<a href="{% url imio-liege-lisrue-add' %}">{% trans 'Add Liege Lisrue Connector' %}</a>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
<h2>Lisrue - {% if object.id %}{{ object.title }}{% else %}{% trans 'New' %}{% endif %}</h2>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
<div id="form-content">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
</div>
|
|
{% block buttons %}
|
|
<div class="buttons">
|
|
<button>{% trans "Save" %}</button>
|
|
{% if object.id %}
|
|
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
|
|
{% else %}
|
|
<a class="cancel" href="{% url 'add-connector' %}">{% trans 'Cancel' %}</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|
|
</form>
|
|
|
|
{% endblock %}
|