From fd6500c3cf888d950c6def09a9912d98123dc140 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Mon, 25 Nov 2019 16:47:15 -0300 Subject: [PATCH] =?UTF-8?q?ajusta=20bot=C3=B5es=20de=20a=C3=A7=C3=A3o=20em?= =?UTF-8?q?=20TAs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/templates/compilacao/text_edit.html | 4 ++-- .../compilacao/textoarticulado_detail.html | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/sapl/templates/compilacao/text_edit.html b/sapl/templates/compilacao/text_edit.html index 22d9a969b..aa161ffd6 100644 --- a/sapl/templates/compilacao/text_edit.html +++ b/sapl/templates/compilacao/text_edit.html @@ -16,11 +16,11 @@ {% if perms.compilacao.lock_unlock_textoarticulado and not object.editable_only_by_owners%} {% if object.editing_locked %}{% trans 'Desbloquear Edição' %}{%else%}{% trans 'Publicar Texto' %}{% endif %} {% endif %} - + +
{% trans 'Editar Metadados do Texto Articulado' %} {% include 'compilacao/textoarticulado_menu_config.html' %}
- {% endif %} {% endblock actions %} diff --git a/sapl/templates/compilacao/textoarticulado_detail.html b/sapl/templates/compilacao/textoarticulado_detail.html index f1c16c09c..197f2d50f 100644 --- a/sapl/templates/compilacao/textoarticulado_detail.html +++ b/sapl/templates/compilacao/textoarticulado_detail.html @@ -10,18 +10,22 @@ {% block base_content %} {% block actions %} -
+
+
+ {% if not object.editing_locked %} + PreView + {% endif %} + {% if perms.compilacao.lock_unlock_textoarticulado and not object.editable_only_by_owners%} + {% if object.editing_locked %}{% trans 'Desbloquear Edição' %}{%else%}{% trans 'Publicar Texto' %}{% endif %} + {% endif %} +
- PreView {% if perms.compilacao.change_textoarticulado and object|can_use_dynamic_editing:user %} {% trans 'Editar Metadados do Texto Articulado' %} {% endif %} {% if object|can_use_dynamic_editing:user %} {% trans 'Editar Texto' %} {% endif %} - {% if perms.compilacao.lock_unlock_textoarticulado and not object.editable_only_by_owners%} - {% if object.editing_locked %}{% trans 'Desbloquear Edição' %}{%else%}{% trans 'Publicar Texto' %}{% endif %} - {% endif %}
{% endblock actions %}