|
|
@ -10,18 +10,22 @@ |
|
|
|
{% block base_content %} |
|
|
|
|
|
|
|
{% block actions %} |
|
|
|
<div class="context-actions justify-content-between mb-4"> |
|
|
|
<div class="context-actions d-flex justify-content-between mb-4"> |
|
|
|
<div class="actions btn-group" role="group"> |
|
|
|
{% if not object.editing_locked %} |
|
|
|
<a class="btn btn-success" href="{% url 'sapl.compilacao:ta_text' object.pk %}">PreView</a> |
|
|
|
{% endif %} |
|
|
|
{% if perms.compilacao.lock_unlock_textoarticulado and not object.editable_only_by_owners%} |
|
|
|
<a href="{% url 'sapl.compilacao:ta_text_edit' object.pk %}?{% if object.editing_locked %}unlock{%else%}lock{% endif %}" class="btn {% if object.editing_locked %}btn-danger{%else%}btn-outline-primary{% endif %}">{% if object.editing_locked %}{% trans 'Desbloquear Edição' %}{%else%}{% trans 'Publicar Texto' %}{% endif %}</a> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
<div class="actions btn-group" role="group"> |
|
|
|
{% if perms.compilacao.change_textoarticulado and object|can_use_dynamic_editing:user %} |
|
|
|
<a href="{% url 'sapl.compilacao:ta_edit' object.pk %}" class="btn btn-outline-primary">{% trans 'Editar Metadados do Texto Articulado' %}</a> |
|
|
|
{% endif %} |
|
|
|
{% if object|can_use_dynamic_editing:user %} |
|
|
|
<a href="{% url 'sapl.compilacao:ta_text_edit' object.pk %}" class="btn btn-outline-primary">{% trans 'Editar Texto' %}</a> |
|
|
|
{% endif %} |
|
|
|
{% if perms.compilacao.lock_unlock_textoarticulado and not object.editable_only_by_owners%} |
|
|
|
<a href="{% url 'sapl.compilacao:ta_text_edit' object.pk %}?{% if object.editing_locked %}unlock{%else%}lock{% endif %}" class="btn {% if object.editing_locked %}btn-danger{%else%}btn-outline-primary{% endif %}">{% if object.editing_locked %}{% trans 'Desbloquear Edição' %}{%else%}{% trans 'Publicar Texto' %}{% endif %}</a> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endblock actions %} |
|
|
|