mirror of https://github.com/interlegis/sapl.git
Browse Source
Conclui construção do form de inclusão de Proposições contidas pelo Autor logado, via containers do Crud, com redirecionamento para Textos Articulados mediante configuração de ativação desta rotina em configurações.pull/752/head
LeandroRoberto
8 years ago
20 changed files with 344 additions and 122 deletions
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2016-10-16 15:33 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('materia', '0058_auto_20161016_0329'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterUniqueTogether( |
|||
name='tipoproposicao', |
|||
unique_together=set([('conteudo', 'object_id')]), |
|||
), |
|||
] |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2016-10-17 02:50 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import sapl.materia.models |
|||
import sapl.utils |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('materia', '0059_auto_20161016_1333'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='proposicao', |
|||
name='texto_original', |
|||
field=models.FileField(blank=True, null=True, upload_to=sapl.materia.models.texto_upload_path, validators=[sapl.utils.restringe_tipos_de_arquivo_txt], verbose_name='Texto Original'), |
|||
), |
|||
] |
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2016-10-17 18:55 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('materia', '0060_auto_20161017_0050'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='proposicao', |
|||
name='descricao', |
|||
field=models.TextField(verbose_name='Descrição'), |
|||
), |
|||
] |
@ -1,14 +0,0 @@ |
|||
{% load crispy_forms_filters %} |
|||
{% load l10n %} |
|||
|
|||
<div class="controls controls-checkbox {{ field_class }}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}> |
|||
{% include 'bootstrap3/layout/field_errors_block.html' %} |
|||
{% for choice in field.field.choices %} |
|||
<label class="checkbox{% if field.field.inline_class %} checkbox-inline{% endif %}{% if choice.0 in field.value or choice.0|stringformat:"s" in field.value or choice.0|stringformat:"s" == field.value|stringformat:"s" %} checked{% endif %}" for="id_{{ field.html_name }}_{{ forloop.counter }}"> |
|||
<span class="icons"><span class="first-icon"></span><span class="second-icon fa fa-check"></span></span> |
|||
|
|||
<input type="checkbox"{% if choice.0 in field.value or choice.0|stringformat:"s" in field.value or choice.0|stringformat:"s" == field.value|stringformat:"s" %} checked="checked"{% endif %} name="{{ field.html_name }}" id="id_{{ field.html_name }}_{{ forloop.counter }}" value="{{ choice.0|unlocalize }}" {{ field.field.widget.attrs|flatatt }}>{{ choice.1|unlocalize }} |
|||
</label> |
|||
{% endfor %} |
|||
{% include 'bootstrap3/layout/help_text.html' %} |
|||
</div> |
Loading…
Reference in new issue