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.
82 lines
3.3 KiB
82 lines
3.3 KiB
{% extends "compilacao/base_compilacao.html" %}
|
|
{% load i18n %}
|
|
{% load compilacao_filters %}
|
|
{% load common_tags %}
|
|
|
|
{% block sections_nav %}
|
|
{% include 'compilacao/subnav.html'%}
|
|
{% endblock %}
|
|
|
|
{% block base_content %}
|
|
|
|
{% block actions %}
|
|
<div class="clearfix hidden-print">
|
|
<div class="actions btn-group float-right" 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-outline-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 float-right" role="group">
|
|
<a href="{{base_url}}?print" class="btn btn-outline-primary">{% trans 'Preparar para impressão' %}</a>
|
|
</div>
|
|
</div>
|
|
{% endblock actions %}
|
|
|
|
{% block detail_content %} {# TODO replace fieldset for something semantically correct, but with similar visual grouping style #}
|
|
<fieldset class="hidden-print">
|
|
<legend>{%trans 'Identificação Básica'%}</legend>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div id="div_id_tipo" class="holder">
|
|
<label>{% field_verbose_name object 'tipo_ta' %}</label>
|
|
<p>{{ object.tipo_ta}}</p>
|
|
</div>
|
|
</div>
|
|
|
|
{% if object.content_object and object.content_object.tipo%}
|
|
<div class="col-md-3">
|
|
<div id="div_id_tipo" class="holder">
|
|
<label>{% field_verbose_name object.content_object 'tipo' %}</label>
|
|
<p>{{ object.content_object.tipo}}</p>
|
|
</div>
|
|
</div>
|
|
{%endif%}
|
|
|
|
<div class="col-md-2">
|
|
<div id="div_id_numero" class="holder">
|
|
<label>{% field_verbose_name object 'numero' %}</label>
|
|
<p>{{ object.numero}}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
<div id="div_id_ano" class="holder">
|
|
<label>{% field_verbose_name object 'ano' %}</label>
|
|
<p>{{ object.ano}}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
<div id="div_id_data" class="holder">
|
|
<label>{% field_verbose_name object 'data' %}</label>
|
|
<p>{{ object.data}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div id="div_id_ementa" class="holder">
|
|
<label>{% field_verbose_name object 'ementa' %}</label>
|
|
<p>{{ object.ementa|safe}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
{% endblock detail_content %}
|
|
{% endblock base_content %}
|
|
|