mirror of https://github.com/interlegis/sapl.git
Eduardo Calil
9 years ago
8 changed files with 253 additions and 9 deletions
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('base', '0001_initial'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='casalegislativa', |
||||
|
name='codigo', |
||||
|
field=models.CharField(verbose_name='Codigo', default=1, max_length=100), |
||||
|
preserve_default=False, |
||||
|
), |
||||
|
] |
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import base.models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('base', '0002_casalegislativa_codigo'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='casalegislativa', |
||||
|
name='logotipo', |
||||
|
field=models.FileField(null=True, upload_to=base.models.get_casa_media_path, verbose_name='Logotipo', blank=True), |
||||
|
), |
||||
|
] |
@ -0,0 +1,26 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('base', '0003_auto_20160107_1122'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.RemoveField( |
||||
|
model_name='casalegislativa', |
||||
|
name='cor_borda', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='casalegislativa', |
||||
|
name='cor_fundo', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='casalegislativa', |
||||
|
name='cor_principal', |
||||
|
), |
||||
|
] |
@ -1,11 +1,15 @@ |
|||||
from django.conf.urls import url |
from django.conf.urls import url |
||||
from django.views.generic.base import TemplateView |
from django.views.generic.base import TemplateView |
||||
|
|
||||
from .views import HelpView |
|
||||
|
from .views import HelpView, CasaLegislativaTableAuxView |
||||
|
|
||||
urlpatterns = [ |
urlpatterns = [ |
||||
url(r'^sistema/', TemplateView.as_view(template_name='sistema.html')), |
url(r'^sistema/', TemplateView.as_view(template_name='sistema.html')), |
||||
url(r'^ajuda/(?P<topic>\w+)$', HelpView.as_view(), name='help_topic'), |
url(r'^ajuda/(?P<topic>\w+)$', HelpView.as_view(), name='help_topic'), |
||||
url(r'^ajuda/', TemplateView.as_view(template_name='ajuda/index.html'), |
url(r'^ajuda/', TemplateView.as_view(template_name='ajuda/index.html'), |
||||
name='help_base'), |
name='help_base'), |
||||
|
url(r'^casa-legislativa$', |
||||
|
CasaLegislativaTableAuxView.as_view(), name='casa_legislativa'), |
||||
|
|
||||
] |
] |
||||
|
@ -0,0 +1,8 @@ |
|||||
|
{% extends "crud/detail.html" %} |
||||
|
{% load i18n %} |
||||
|
{% load crispy_forms_tags %} |
||||
|
{% block actions %} {% endblock %} |
||||
|
|
||||
|
{% block detail_content %} |
||||
|
{% crispy form %} |
||||
|
{% endblock detail_content %} |
Loading…
Reference in new issue