From 467281be27303eb75942bfc4d7162bd84d019021 Mon Sep 17 00:00:00 2001 From: Mariana Mendes Date: Mon, 26 Feb 2018 11:04:05 -0300 Subject: [PATCH] =?UTF-8?q?Adiciona=20template=20de=20cadastro=20de=20reun?= =?UTF-8?q?i=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/templates/comissoes/reuniao_list.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/sapl/templates/comissoes/reuniao_list.html b/sapl/templates/comissoes/reuniao_list.html index 78629403a..cdecd459e 100644 --- a/sapl/templates/comissoes/reuniao_list.html +++ b/sapl/templates/comissoes/reuniao_list.html @@ -1,7 +1,21 @@ {% extends "crud/list.html" %} {% load i18n %} {% load crispy_forms_tags %} -{% block actions %}{% endblock %} -{% block detail_content %} - {% crispy form %} -{% endblock detail_content %} +{% block base_content %} + + {% if user.is_authenticated and perms.comissoes.add_composicao %} +
+ {% block actions %} +
+ {% if view.create_url %} + + {% blocktrans with verbose_name=view.verbose_name %} Adicionar {{ verbose_name }} {% endblocktrans %} + + {% endif %} + {% block more_buttons %}{% endblock more_buttons %} +
+ {% endblock actions %} +
+ {% endif %} + +{% endblock base_content %}