mirror of https://github.com/interlegis/sapl.git
Eduardo Edson Batista Cordeiro Alves
8 years ago
8 changed files with 193 additions and 5 deletions
@ -0,0 +1,31 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2017-02-09 15:18 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('parlamentares', '0036_partido_logo_partido'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Votante', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('data', models.DateTimeField(auto_now_add=True, max_length=30, null=True, verbose_name='Data')), |
|||
('ip', models.CharField(blank=True, max_length=30, null=True, verbose_name='IP')), |
|||
('parlamentar', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parlamentar', to='parlamentares.Parlamentar', verbose_name='Parlamentar')), |
|||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL, verbose_name='User')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Votantes', |
|||
}, |
|||
), |
|||
] |
@ -0,0 +1,16 @@ |
|||
{% extends "crud/list.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
|
|||
{% block actions %} |
|||
{% if not rows %} |
|||
<div class="actions btn-group pull-right btn-group-lg" role="group"> |
|||
{% 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 %} |
|||
{% block more_buttons %}{% endblock more_buttons %} |
|||
</div> |
|||
{% endif %} |
|||
{% endblock actions %} |
Loading…
Reference in new issue