mirror of https://github.com/interlegis/sapl.git
Rogério Frá
6 years ago
committed by
Edward
8 changed files with 97 additions and 8 deletions
@ -0,0 +1,25 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11.22 on 2019-07-04 11:16 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('norma', '0024_auto_20190425_0917'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='normajuridica', |
||||
|
name='apelido', |
||||
|
field=models.TextField(blank=True, verbose_name='Apelido'), |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='normajuridica', |
||||
|
name='norma_de_destaque', |
||||
|
field=models.BooleanField(choices=[(True, 'Sim'), (False, 'Não')], default=False, verbose_name='Norma de Destaque ?'), |
||||
|
), |
||||
|
] |
@ -0,0 +1,38 @@ |
|||||
|
{% extends "norma/normajuridica_filter.html" %} |
||||
|
{% load i18n %} |
||||
|
|
||||
|
{% block detail_content %} |
||||
|
{% endblock detail_content %} |
||||
|
|
||||
|
{% block table_content %} |
||||
|
<table class="table table-striped"> |
||||
|
<thead class="thead-default"> |
||||
|
<tr> |
||||
|
<th>Tipo</th> |
||||
|
<th>Número</th> |
||||
|
<th>Ano</th> |
||||
|
<th>Data</th> |
||||
|
<th>Ementa</th> |
||||
|
<th>Apelido</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
{% for n in page_obj %} |
||||
|
<tr> |
||||
|
<td><a href="{% url 'sapl.norma:normajuridica_detail' n.id %}">{{n.tipo}}</a></td> |
||||
|
{% if n.texto_integral %} |
||||
|
<td><a href="{{n.texto_integral.url}}">{{n.numero}}</a></td> |
||||
|
{% else %} |
||||
|
<td>{{n.numero}}</td> |
||||
|
{% endif %} |
||||
|
<td>{{n.ano}}</td> |
||||
|
<td>{{n.data}}</td> |
||||
|
<td>{{n.ementa|safe}}</td> |
||||
|
<td>{{n.apelido|safe}}</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</table> |
||||
|
|
||||
|
{% endblock table_content %} |
||||
|
|
||||
|
{% block extra_js %} |
||||
|
{% endblock extra_js %} |
Loading…
Reference in new issue