mirror of https://github.com/interlegis/sapl.git
Eduardo Edson Batista Cordeiro Alves
9 years ago
11 changed files with 343 additions and 57 deletions
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9 on 2016-03-07 14:53 |
|||
from __future__ import unicode_literals |
|||
|
|||
import datetime |
|||
from django.db import migrations, models |
|||
from django.utils.timezone import utc |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('norma', '0010_auto_20160216_1015'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='normajuridica', |
|||
name='data', |
|||
field=models.DateField(default=datetime.datetime(2016, 3, 7, 14, 53, 52, 206255, tzinfo=utc), verbose_name='Data'), |
|||
preserve_default=False, |
|||
), |
|||
] |
@ -0,0 +1,36 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
{% block actions %}{% endblock %} |
|||
{% block detail_content %} |
|||
<div class="actions btn-group pull-right" role="group"> |
|||
<a href="{% url 'norma_incluir' %}" class="btn btn-default">Adicionar Norma Jurídica</a> |
|||
</div> |
|||
<br /><br /><br /> |
|||
{% if object_list %} |
|||
<table class="table table-striped table-bordered"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th>Tipo da Norma Juridica</th> |
|||
<th>Número</th> |
|||
<th>Ano</th> |
|||
<th>Data</th> |
|||
<th>Ementa</th> |
|||
</tr> |
|||
</thead> |
|||
{% for obj in object_list %} |
|||
<tr> |
|||
<td><a href="{% url 'normajuridica:detail' obj.id %}">{{obj.tipo}}</a></td> |
|||
<td>{{obj.numero}}</td> |
|||
<td>{{obj.ano}}</td> |
|||
<td>{{obj.data}}</td> |
|||
<td>{{obj.ementa|safe}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
{% include "paginacao.html" %} |
|||
{% else %} |
|||
<h2>Nenhum Registro recuperado</h2> |
|||
{% endif %} |
|||
|
|||
{% endblock detail_content %} |
@ -1,8 +1,3 @@ |
|||
{% extends "norma/normajuridica_detail.html" %} |
|||
{% extends "crud/form.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
|
|||
{% block detail_content %} |
|||
{% if error %} <h5 align="center"><font color="#FF0000">{{ error }}</font></h5> {% endif %} |
|||
{% crispy form %} |
|||
{% endblock %} |
@ -0,0 +1,36 @@ |
|||
{% extends "crud/list.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
{% block base_content %} |
|||
<div class="actions btn-group pull-right" role="group"> |
|||
<a href="{% url 'norma_incluir' %}" class="btn btn-default"> |
|||
{% blocktrans with verbose_name=view.verbose_name %} Adicionar {{ verbose_name }} {% endblocktrans %} |
|||
</a> |
|||
</div> |
|||
<br /><br /><br /> |
|||
{% if object_list %} |
|||
<table class="table table-striped table-bordered"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th>Tipo da Norma Juridica</th> |
|||
<th>Número</th> |
|||
<th>Ano</th> |
|||
<th>Data</th> |
|||
<th>Ementa</th> |
|||
</tr> |
|||
</thead> |
|||
{% for obj in object_list %} |
|||
<tr> |
|||
<td><a href="{% url 'normajuridica:detail' obj.id %}">{{obj.tipo}}</a></td> |
|||
<td>{{obj.numero}}</td> |
|||
<td>{{obj.ano}}</td> |
|||
<td>{{obj.data}}</td> |
|||
<td>{{obj.ementa|safe}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
{% include "paginacao.html" %} |
|||
{% else %} |
|||
<h2>Nenhum Registro recuperado</h2> |
|||
{% endif %} |
|||
{% endblock %} |
@ -0,0 +1,3 @@ |
|||
{% extends "crud/form.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
Loading…
Reference in new issue