mirror of https://github.com/interlegis/sapl.git
LeandroRoberto
8 years ago
26 changed files with 1554 additions and 373 deletions
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2016-09-28 22:51 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('base', '0018_auto_20160919_1333'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='appconfig', |
|||
options={'permissions': (('menu_sistemas', 'Renderizar Menu Sistemas'), ('view_tabelas_auxiliares', 'Visualizar Tabelas Auxiliares')), 'verbose_name': 'Configurações da Aplicação', 'verbose_name_plural': 'Configurações da Aplicação'}, |
|||
), |
|||
] |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2016-09-29 19:11 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('comissoes', '0007_merge'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='participacao', |
|||
name='composicao', |
|||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='participacao_set', to='comissoes.Composicao'), |
|||
), |
|||
] |
File diff suppressed because it is too large
@ -0,0 +1,2 @@ |
|||
{% load i18n crispy_forms_tags %} |
|||
{% crispy form %} |
@ -1,45 +1,83 @@ |
|||
{% extends "base.html" %} |
|||
{% load i18n %} |
|||
{% load common_tags %} |
|||
{% load i18n common_tags%} |
|||
|
|||
{% block base_content %} |
|||
|
|||
<div class="clearfix"> |
|||
<div class="context-actions clearfix"> |
|||
{% block actions %} |
|||
<div class="actions btn-group pull-right" role="group"> |
|||
{% if perms|get_change_perm:view %} |
|||
<a href="{{ view.update_url }}" class="btn btn-default">{% trans 'Editar' %}</a> |
|||
{% endif %} |
|||
|
|||
{% if perms|get_delete_perm:view %} |
|||
<a href="{{ view.delete_url }}" class="btn btn-default">{% trans 'Excluir' %}</a> |
|||
<div class="actions btn-group btn-group-sm" role="group"> |
|||
{% if view.list_url %} |
|||
<a href="{{ view.list_url }}?list" class="btn btn-default">{% trans 'Listar' %} {{view.verbose_name_plural}}</a> |
|||
{% endif %} |
|||
{% if view.create_url %} |
|||
<a href="{{ view.create_url }}" class="btn btn-default"> |
|||
{% blocktrans with verbose_name=view.verbose_name %} Adicionar {{ verbose_name }} {% endblocktrans %} |
|||
</a> |
|||
{% endif %} |
|||
</div> |
|||
{% if view.update_url or view.delete_url %} |
|||
<div class="actions btn-group pull-right" role="group"> |
|||
{% if view.update_url %} |
|||
<a href="{{ view.update_url }}" class="btn btn-default">{% trans 'Editar' %}</a> |
|||
{% endif %} |
|||
{% if view.delete_url %} |
|||
<a href="{{ view.delete_url }}" class="btn btn-danger">{% trans 'Excluir' %}</a> |
|||
{% endif %} |
|||
</div> |
|||
{% endif %} |
|||
</div> |
|||
{% endblock actions %} |
|||
</div> |
|||
{% block extra_msg %}{% endblock extra_msg %} |
|||
|
|||
{% block detail_content %} |
|||
{% for fieldset in view.layout_display %} |
|||
<h2 class="legend">{{ fieldset.legend }}</h2> |
|||
{% for row in fieldset.rows %} |
|||
<div class="row-fluid"> |
|||
{% for column in row %} |
|||
<div class="col-sm-{{ column.span }}"> |
|||
<div id="div_id_{{ column.id }}" class="form-group"> |
|||
<p class="control-label">{{ column.verbose_name }}</p> |
|||
<div class="controls"> |
|||
{% if column.text %} |
|||
<p class="form-control-static">{{ column.text|safe }}</p> |
|||
{% else %} |
|||
<p class="form-control-static">Não informado</p> |
|||
{% endif %} |
|||
</div> |
|||
<h2 class="legend">{{ fieldset.legend }}</h2> |
|||
{% for row in fieldset.rows %} |
|||
<div class="row-fluid"> |
|||
{% for column in row %} |
|||
<div class="col-sm-{{ column.span }}"> |
|||
<div id="div_id_{{ column.id }}" class="form-group"> |
|||
<p class="control-label">{{ column.verbose_name }}</p> |
|||
<div class="controls"> |
|||
<div class="form-control-static">{{ column.text|safe }}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
{% endfor %} |
|||
</div> |
|||
</div> |
|||
{% endfor %} |
|||
</div> |
|||
{% endfor %} |
|||
{% endfor %} |
|||
{% endblock detail_content %} |
|||
|
|||
<div class="container-table"> |
|||
{% if not rows %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<div class="result-count">{% blocktrans with verbose_name_plural=view.model_set_verbose_name_plural %}Total de {{ verbose_name_plural }}: <strong>{{count}}</strong>{% endblocktrans %}</div> |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
{% for name in headers %} |
|||
<th>{{ name }}</th> |
|||
{% endfor %} |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for value_list in rows %} |
|||
<tr> |
|||
{% for value, href in value_list %} |
|||
<td> |
|||
{% if href %} |
|||
<a href="{{ href }}">{{ value }}</a> |
|||
{% elif value != 'core.Cep.None' %} |
|||
{{ value|safe }} |
|||
{% endif %} |
|||
</td> |
|||
{% endfor %} |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</div> |
|||
{% include "paginacao.html" %} |
|||
{% endblock base_content %} |
|||
|
@ -0,0 +1,92 @@ |
|||
{% extends "base.html" %} |
|||
{% load i18n common_tags%} |
|||
|
|||
{% block base_content %} |
|||
|
|||
<div class="context-actions clearfix"> |
|||
{% block actions %} |
|||
<div class="actions btn-group btn-group-sm" role="group"> |
|||
{% if view.detail_list_url %} |
|||
<a href="{{ view.detail_list_url }}?list" class="btn btn-default">{% trans 'Listar' %} {{view.verbose_name_plural}}</a> |
|||
{% endif %} |
|||
{% if view.detail_create_url %} |
|||
<a href="{{ view.detail_create_url }}" class="btn btn-default"> |
|||
{% blocktrans with verbose_name=view.verbose_name %} Adicionar {{ verbose_name }} {% endblocktrans %} |
|||
</a> |
|||
{% endif %} |
|||
</div> |
|||
{% if view.update_url or view.delete_url %} |
|||
<div class="actions btn-group pull-right " role="group"> |
|||
{% if view.update_url %} |
|||
<a href="{{ view.update_url }}" class="btn btn-default">{% trans 'Editar' %}</a> |
|||
{% endif %} |
|||
{% if view.delete_url %} |
|||
<a href="{{ view.delete_url }}" class="btn btn-default btn-excluir">{% trans 'Excluir' %}</a> |
|||
{% endif %} |
|||
</div> |
|||
{% endif %} |
|||
{% endblock actions %} |
|||
</div> |
|||
{% block detail_content %} |
|||
{% for fieldset in view.layout_display %} |
|||
<h2 class="legend">{{ fieldset.legend }}</h2> |
|||
{% for row in fieldset.rows %} |
|||
<div class="row-fluid"> |
|||
{% for column in row %} |
|||
<div class="col-sm-{{ column.span }}"> |
|||
<div id="div_id_{{ column.id }}" class="form-group"> |
|||
<p class="control-label">{{ column.verbose_name }}</p> |
|||
<div class="controls"> |
|||
<div class="form-control-static">{{ column.text|safe }}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
{% endfor %} |
|||
</div> |
|||
{% endfor %} |
|||
{% endfor %} |
|||
{% endblock detail_content %} |
|||
<div class="actions btn-group pull-right btn-group-lg" role="group"> |
|||
{% if view.detail_set_create_url %} |
|||
<a href="{{ view.detail_set_create_url }}" class="btn btn-default"> |
|||
{% blocktrans with verbose_name=view.verbose_name_set %} Adicionar {{ verbose_name }} {% endblocktrans %} |
|||
</a> |
|||
{% endif %} |
|||
{% block more_buttons %}{% endblock more_buttons %} |
|||
</div> |
|||
<div class="container-table"> |
|||
{% if not rows %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<div class="result-count">{% blocktrans with verbose_name_plural=view.verbose_name_plural %}Total de Registros: <strong>{{count}}</strong>{% endblocktrans %}</div> |
|||
<table class="table table-striped table-hover"> |
|||
<thead> |
|||
<tr> |
|||
{% for name in headers %} |
|||
<th>{{ name }}</th> |
|||
{% endfor %} |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for value_list in rows %} |
|||
<tr> |
|||
{% for value, href in value_list %} |
|||
<td> |
|||
{% if href %} |
|||
<a href="{{ href }}">{{ value }}</a> |
|||
{% elif valu != 'core.Cep.None' %} |
|||
{{ value|safe }} |
|||
{% endif %} |
|||
</td> |
|||
{% endfor %} |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
</div> |
|||
|
|||
{% include "paginacao.html" %} |
|||
|
|||
|
|||
{% endblock base_content %} |
@ -1,6 +1,6 @@ |
|||
{% extends "base.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
|
|||
{% block base_content %} |
|||
{% block extra_msg %}{% endblock %} |
|||
{% crispy form %} |
|||
{% endblock %} |
|||
|
Loading…
Reference in new issue