mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
10 years ago
|
{% extends "base.html" %}
|
||
|
{% load i18n crispy_forms_tags %}
|
||
|
|
||
|
{% block base_content %}
|
||
10 years ago
|
|
||
|
{# FIXME is this the best markup to use? #}
|
||
|
<dl class="sub-nav">
|
||
|
<dd><a href="{{ view.update_url }}">
|
||
|
{% blocktrans with verbose_name=view.verbose_name %} Editar {{ verbose_name }} {% endblocktrans %}
|
||
|
</a></dd>
|
||
10 years ago
|
<dd><a href="{{ view.delete_url }}">
|
||
|
{% blocktrans with verbose_name=view.verbose_name %} Excluir {{ verbose_name }} {% endblocktrans %}
|
||
|
</a></dd>
|
||
10 years ago
|
</dl>
|
||
|
|
||
10 years ago
|
{# TODO replace fieldset for something semantically correct, but with similar visual grouping style #}
|
||
|
{% for fieldset in view.fieldsets %}
|
||
|
<fieldset>
|
||
|
<legend>{{ fieldset.legend }}</legend>
|
||
|
{% for row in fieldset.rows %}
|
||
|
<div class="row">
|
||
|
{% for column in row %}
|
||
|
<div class="columns large-{{ column.span }}">
|
||
|
<div id="div_id_{{ column.id }}" class="holder">
|
||
|
<label>{{ column.verbose_name }}</label> {# TODO replace labels, probably (are they correct here?) #}
|
||
|
<p>{{ column.text }}</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
</fieldset>
|
||
|
{% endfor %}
|
||
|
|
||
10 years ago
|
{% endblock %}
|
||
|
|