mirror of https://github.com/interlegis/sapl.git
63 changed files with 235 additions and 112 deletions
@ -0,0 +1,73 @@ |
|||||
|
{% extends "base.html" %} {% load i18n %} {% load compilacao_filters %} |
||||
|
{% load common_tags %} |
||||
|
|
||||
|
{% block base_content %} |
||||
|
|
||||
|
{% block sections_nav %} |
||||
|
{% endblock %} |
||||
|
|
||||
|
<div class="clearfix"> |
||||
|
{% block actions %} |
||||
|
<div class="actions btn-group pull-right" role="group"> |
||||
|
{% if perms.compilacao.change_tipotextoarticulado %}<a class="btn btn-outline-dark" href="{% url 'sapl.compilacao:tipo_ta_edit' object.pk %}">{% trans 'Editar' %}</a>{% endif %} |
||||
|
{% if perms.compilacao.delete_tipotextoarticulado %}<a class="btn btn-outline-dark btn-excluir" href="{% url 'sapl.compilacao:tipo_ta_delete' object.pk %}">{% trans 'Excluir' %}</a>{% endif %} |
||||
|
</div> |
||||
|
{% endblock actions %} |
||||
|
</div> |
||||
|
|
||||
|
{% block detail_content %} {# TODO replace fieldset for something semantically correct, but with similar visual grouping style #} |
||||
|
<fieldset> |
||||
|
<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 'sigla' %}</label> |
||||
|
<p>{{ object.sigla}}</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-md-5"> |
||||
|
<div id="div_id_numero" class="holder"> |
||||
|
<label>{% field_verbose_name object 'descricao' %}</label> |
||||
|
<p>{{ object.descricao}}</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-md-4"> |
||||
|
<div id="div_id_ano" class="holder"> |
||||
|
<label>{% field_verbose_name object 'content_type' %}</label> |
||||
|
<p>{{ object.content_type|default:""}}</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</fieldset> |
||||
|
<fieldset> |
||||
|
<legend>{%trans 'Funcionalidades'%}</legend> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-3"> |
||||
|
<div id="div_id_ano" class="holder"> |
||||
|
<label>{% field_verbose_name object 'participacao_social' %}</label> |
||||
|
<p>{{ object.get_participacao_social_display}}</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3"> |
||||
|
<div id="div_id_ano" class="holder"> |
||||
|
<label>{% field_verbose_name object 'publicacao_func' %}</label> |
||||
|
<p>{{ object.get_publicacao_func_display}}</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<div id="div_id_ano" class="holder"> |
||||
|
<label>{% field_verbose_name object 'perfis' %}</label> |
||||
|
<ul> |
||||
|
{% for perfil in object.perfis.all %} |
||||
|
<li>{{perfil}}</li> |
||||
|
{% endfor %} |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</fieldset> |
||||
|
{% endblock detail_content %} |
||||
|
{% endblock base_content %} |
||||
@ -0,0 +1,50 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% load i18n compilacao_filters common_tags menus%} |
||||
|
|
||||
|
{% block base_content %} |
||||
|
|
||||
|
|
||||
|
{% block actions %} |
||||
|
{% if perms.compilacao.add_tipotextoarticulado %} |
||||
|
<div class="actions btn-group pull-right" role="group"> |
||||
|
<a href="{{ view.create_url }}" class="btn btn-outline-dark"> |
||||
|
{% trans 'Adicionar'%} {%model_verbose_name 'sapl.compilacao.models.TipoTextoArticulado'%} |
||||
|
</a> |
||||
|
</div> |
||||
|
{% endif %} |
||||
|
{% endblock actions %} |
||||
|
|
||||
|
<div class="row container-tabaux"> |
||||
|
<div class="{% if perms.base.view_tabelas_auxiliares %}col-sm-9{% endif %}"> |
||||
|
{% if not object_list %} |
||||
|
<p>{{ NO_ENTRIES_MSG }}</p> |
||||
|
{% else %} |
||||
|
<table class="table table-striped table-hover" width=100%> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>{% fieldclass_verbose_name 'sapl.compilacao.models.TipoTextoArticulado' 'sigla' %}</th> |
||||
|
<th>{% fieldclass_verbose_name 'sapl.compilacao.models.TipoTextoArticulado' 'descricao' %}</th> |
||||
|
<th>{% fieldclass_verbose_name 'sapl.compilacao.models.TipoTextoArticulado' 'content_type' %}</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
{% for tipo_ta in object_list %} |
||||
|
<tr> |
||||
|
<td><a href="{% url 'sapl.compilacao:tipo_ta_detail' tipo_ta.pk %}">{{ tipo_ta.sigla }}</a></td> |
||||
|
<td>{{ tipo_ta.descricao }}</td> |
||||
|
<td>{{ tipo_ta.content_type }}</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</tbody> |
||||
|
</table> |
||||
|
{%endif%} |
||||
|
{% include 'paginacao.html'%} |
||||
|
</div> |
||||
|
{% if perms.base.view_tabelas_auxiliares %} |
||||
|
<div class="col-sm-3 sidebar-tabaux"> |
||||
|
<h3>{% trans "Tabelas Auxiliares" %}</h3> |
||||
|
{% subnav 'menu_tabelas_auxiliares.yaml'%} |
||||
|
</div> |
||||
|
{% endif %} |
||||
|
</div> |
||||
|
{% endblock %} |
||||
@ -1,7 +1,7 @@ |
|||||
{% extends "crud/list.html" %} |
{% extends "crud/list.html" %} |
||||
{% load i18n %} |
{% load i18n %} |
||||
{% block more_buttons %} |
{% block more_buttons %} |
||||
<a href="{% url 'sapl.materia:pesquisar_materia' %}" class="btn btn-default"> |
<a href="{% url 'sapl.materia:pesquisar_materia' %}" class="btn btn-outline-dark"> |
||||
{% blocktrans with verbose_name=view.verbose_name %} Pesquisar {{ verbose_name }} {% endblocktrans %} |
{% blocktrans with verbose_name=view.verbose_name %} Pesquisar {{ verbose_name }} {% endblocktrans %} |
||||
</a> |
</a> |
||||
{% endblock %} |
{% endblock %} |
||||
|
|||||
@ -1,7 +1,7 @@ |
|||||
{% extends "crud/list.html" %} |
{% extends "crud/list.html" %} |
||||
{% load i18n %} |
{% load i18n %} |
||||
{% block more_buttons %} |
{% block more_buttons %} |
||||
<a href="{% url 'sapl.sessao:pesquisar_sessao' %}" class="btn btn-default"> |
<a href="{% url 'sapl.sessao:pesquisar_sessao' %}" class="btn btn-outline-dark"> |
||||
{% blocktrans with verbose_name=view.verbose_name %} Pesquisar {{ verbose_name }} {% endblocktrans %} |
{% blocktrans with verbose_name=view.verbose_name %} Pesquisar {{ verbose_name }} {% endblocktrans %} |
||||
</a> |
</a> |
||||
{% endblock %} |
{% endblock %} |
||||
|
|||||
Loading…
Reference in new issue