mirror of https://github.com/interlegis/sapl.git
LeandroRoberto
8 years ago
10 changed files with 134 additions and 172 deletions
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2016-10-28 02:32 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('norma', '0018_auto_20161027_1434'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterUniqueTogether( |
|||
name='assuntonormarelationship', |
|||
unique_together=set([('assunto', 'norma')]), |
|||
), |
|||
] |
@ -1,49 +0,0 @@ |
|||
{% extends "crud/list.html" %} |
|||
{% load i18n %} |
|||
{% load common_tags %} |
|||
|
|||
{% block base_content %} |
|||
<div class="actions btn-group pull-right" role="group"> |
|||
{% if user|get_config_not_exists %} |
|||
<a href="{{ view.create_url }}" class="btn btn-default"> |
|||
{% blocktrans with verbose_name=view.verbose_name %} Adicionar {{ verbose_name }} {% endblocktrans %} |
|||
</a> |
|||
{% endif %} |
|||
{% block more_buttons %}{% endblock more_buttons %} |
|||
</div> |
|||
|
|||
<br/><br/> |
|||
{% block extra_content %} {% endblock %} |
|||
|
|||
{% if not rows %} |
|||
<p>{{ NO_ENTRIES_MSG }}</p> |
|||
{% else %} |
|||
<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> |
|||
{% else %} |
|||
{{ value|safe }} |
|||
{% endif %} |
|||
</td> |
|||
{% endfor %} |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
|
|||
{% include "paginacao.html" %} |
|||
|
|||
{% endblock %} |
Loading…
Reference in new issue