示例#1
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioMateriasPorAutorFilterSet, self).__init__(
            *args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'

        row1 = to_row(
            [('tipo', 12)])
        row2 = to_row(
            [('data_apresentacao', 12)])
        row3 = to_row(
            [('autoria__autor', 0),
             (Button('pesquisar',
                     'Pesquisar Autor',
                     css_class='btn btn-primary btn-sm'), 2),
             (Button('limpar',
                     'limpar Autor',
                     css_class='btn btn-primary btn-sm'), 10)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisar'),
                     row1, row2,
                     HTML(autor_label),
                     HTML(autor_modal),
                     row3,
                     form_actions(save_label='Pesquisar'))
        )
示例#2
0
    def __init__(self, *args, **kwargs):

        row1 = to_row([('tipo_materia', 4), ('numero_paginas', 2),
                       ('tipo_autor', 3), ('autor', 3)])
        row2 = to_row([
            (InlineRadios('vincular_materia'), 4),
            ('numero_materia', 4),
            ('ano_materia', 4),
        ])
        row3 = to_row([('assunto_ementa', 12)])
        row4 = to_row([('observacao', 12)])
        row5 = to_row([('numero', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(
                _('Identificação da Matéria'),
                row1,
                row2,
                row3,
                row4,
                HTML(" "),
            ),
            Fieldset(
                _('Número do Protocolo (Apenas se quiser que a numeração comece'
                  ' a partir do número a ser informado)'), row5,
                HTML(" "), form_actions(label=_('Protocolar Matéria'))))

        super(ProtocoloMateriaForm, self).__init__(*args, **kwargs)
示例#3
0
文件: forms.py 项目: camaragyn/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row(
            [(InlineRadios('tipo_protocolo'), 12)])
        row2 = to_row(
            [('tipo_documento', 6),
             ('numero_paginas', 6)])
        row3 = to_row(
            [('assunto', 12)])
        row4 = to_row(
            [('interessado', 12)])
        row5 = to_row(
            [('observacao', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação de Documento'),
                     row1,
                     row2,
                     row3,
                     row4,
                     row5,
                     HTML(" "),
                     form_actions(save_label=_('Protocolar Documento'))
                     )
        )
        super(ProtocoloDocumentForm, self).__init__(
            *args, **kwargs)
示例#4
0
    def __init__(self, *args, **kwargs):

        self.helper = FormHelper()
        self.helper.layout = SaplFormLayout(
            to_row([
                ('titulo', 7), ('visibilidade', 3), ('listar', 2)
            ]),
            to_row([
                ('tipo', 4), ('template_doc', 4), ('capa', 4),
            ]),
            to_row([
                ('descricao', 8),
                ('parlamentares', 4)
            ]),
            to_row([
                ('materias', 12),
            ]),
        )

        super(DocumentoForm, self).__init__(*args, **kwargs)

        self.fields['parlamentares'].choices = [
            ('0', '--------------')] + list(
            self.fields['parlamentares'].choices)

        self.fields['materias'].choices = [
            ('0', '--------------')] + [(m.id, str(m) + ' - ' + m.ementa) for m in self.fields['materias'].queryset[:200]]

        self.fields['capa'].initial = self.instance == self.instance.classe.capa
示例#5
0
    def __init__(self, *args, **kwargs):
        super(RelatorioMateriasPorAutorFilterSet, self).__init__(
            *args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'

        row1 = to_row(
            [('tipo', 12)])
        row2 = to_row(
            [('data_apresentacao', 12)])
        row3 = to_row(
            [('autoria__autor', 0),
             (Button('pesquisar',
                     'Pesquisar Autor',
                     css_class='btn btn-primary btn-sm'), 2),
             (Button('limpar',
                     'limpar Autor',
                     css_class='btn btn-primary btn-sm'), 10)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisar'),
                     row1, row2,
                     HTML(autor_label),
                     HTML(autor_modal),
                     row3,
                     form_actions(label='Pesquisar'))
        )
示例#6
0
文件: forms.py 项目: camaragyn/sapl
    def __init__(self, excluir=False, *args, **kwargs):

        row1 = to_row(
            [('tipo', 4),
             ('nome', 4),
             ('data', 4)])
        row2 = to_row(
            [('autor', 12)])
        row3 = to_row(
            [('arquivo', 12)])
        row4 = to_row(
            [('assunto', 12)])

        more = []
        if excluir:
            more = [Submit('Excluir', 'Excluir')]

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(
                _('Incluir Documento Acessório'),
                row1, row2, row3, row4,
                form_actions(more=more)
            )
        )
        super(DocumentoAcessorioAdministrativoForm, self).__init__(
            *args, **kwargs)
示例#7
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioMateriasPorAutorFilterSet, self).__init__(*args, **kwargs)

        self.filters["tipo"].label = "Tipo de Matéria"

        row1 = to_row([("tipo", 12)])
        row2 = to_row([("data_apresentacao", 12)])
        row3 = to_row(
            [
                ("autoria__autor", 0),
                (Button("pesquisar", "Pesquisar Autor", css_class="btn btn-primary btn-sm"), 2),
                (Button("limpar", "limpar Autor", css_class="btn btn-primary btn-sm"), 10),
            ]
        )

        self.form.helper = FormHelper()
        self.form.helper.form_method = "GET"
        self.form.helper.layout = Layout(
            Fieldset(
                _("Pesquisar"),
                row1,
                row2,
                HTML(autor_label),
                HTML(autor_modal),
                row3,
                form_actions(save_label="Pesquisar"),
            )
        )
示例#8
0
    def __init__(self, *args, **kwargs):
        super(ResumoOrdenacaoForm, self).__init__(*args, **kwargs)

        row1 = to_row(
            [('primeiro', 12)])
        row2 = to_row(
            [('segundo', 12)])
        row3 = to_row(
            [('terceiro', 12)])
        row4 = to_row(
            [('quarto', 12)])
        row5 = to_row(
            [('quinto', 12)])
        row6 = to_row(
            [('sexto', 12)])
        row7 = to_row(
            [('setimo', 12)])
        row8 = to_row(
            [('oitavo', 12)])
        row9 = to_row(
            [('nono', 12)])
        row10 = to_row(
            [('decimo', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_(''),
                     row1, row2, row3, row4, row5,
                     row6, row7, row8, row9, row10,
                     form_actions(label='Atualizar'))
        )
示例#9
0
文件: forms.py 项目: camaragyn/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row(
            [('tipo_materia', 4),
             ('numero_paginas', 4)])
        row2 = to_row(
            [('autor', 0),
             (Button('pesquisar',
                     'Pesquisar Autor',
                     css_class='btn btn-primary btn-sm'), 2),
             (Button('limpar',
                     'limpar Autor',
                     css_class='btn btn-primary btn-sm'), 10)])
        row3 = to_row(
            [('assunto_ementa', 12)])
        row4 = to_row(
            [('observacao', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação da Matéria'),
                     row1, HTML(autor_label), HTML(autor_modal), row2, row3,
                     row4, form_actions(save_label='Protocolar Matéria')))

        super(ProtocoloMateriaForm, self).__init__(
            *args, **kwargs)
示例#10
0
    def __init__(self, *args, **kwargs):

        row1 = to_row([
            ('codigo', 2),
            ('titulo', 4),
            ('perfil', 3),
            ('parlamentar', 3),
        ])

        row2 = to_row([
            ('visibilidade', 2),
            ('template_classe', 3),
            ('tipo_doc_padrao', 4),
            ('template_doc_padrao', 3),
        ])
        row3 = to_row([
            ('descricao', 12),
        ])

        self.helper = FormHelper()
        self.helper.layout = SaplFormLayout(
            Fieldset(_('Identificação Básica'),
                     row1, row2, row3))

        super(ClasseForm, self).__init__(*args, **kwargs)
示例#11
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, excluir=False, *args, **kwargs):

        row1 = to_row(
            [('tipo', 4),
             ('nome', 4),
             ('data', 4)])
        row2 = to_row(
            [('autor', 12)])
        row3 = to_row(
            [('arquivo', 12)])
        row4 = to_row(
            [('assunto', 12)])

        more = []
        if excluir:
            more = [Submit('Excluir', 'Excluir')]

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(
                _('Incluir Documento Acessório'),
                row1, row2, row3, row4,
                form_actions(more=more)
            )
        )
        super(DocumentoAcessorioAdministrativoForm, self).__init__(
            *args, **kwargs)
示例#12
0
    def __init__(self, *args, **kwargs):
        super(DocumentoAdministrativoFilterSet, self).__init__(*args, **kwargs)

        local_atual = 'tramitacaoadministrativo__unidade_tramitacao_destino'
        self.filters['tipo'].label = 'Tipo de Documento'
        self.filters['tramitacaoadministrativo__status'].label = 'Situação'
        self.filters[local_atual].label = 'Localização Atual'

        row1 = to_row([('tipo', 6), ('numero', 6)])

        row2 = to_row([('ano', 4), ('protocolo__numero', 2),
                       ('numero_externo', 2), ('data', 4)])

        row3 = to_row([('interessado', 4), ('assunto', 4), ('tramitacao', 4)])

        row4 = to_row([('tramitacaoadministrativo__unidade_tramitacao_destino',
                        6), ('tramitacaoadministrativo__status', 6)])

        row5 = to_row([('o', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisar Documento'), row1, row2, row3, row4, row5,
                     form_actions(label='Pesquisar')))
示例#13
0
文件: forms.py 项目: lizianem/sapl
    def __init__(self, *args, **kwargs):
        super(ProtocoloFilterSet, self).__init__(*args, **kwargs)

        self.filters['timestamp'].label = 'Data (Inicial - Final)'

        row1 = to_row([('numero', 4), ('ano', 4), ('timestamp', 4)])

        row2 = to_row([('tipo_documento', 4), ('tipo_protocolo', 4),
                       ('tipo_materia', 4)])

        row3 = to_row([('interessado', 6), ('assunto_ementa', 6)])

        row4 = to_row([('autor', 0),
                       (Button('pesquisar',
                               'Pesquisar Autor',
                               css_class='btn btn-primary btn-sm'), 2),
                       (Button('limpar',
                               'Limpar Autor',
                               css_class='btn btn-primary btn-sm'), 10)])
        row5 = to_row([('tipo_processo', 6), ('o', 6)])

        self.form.helper = SaplFormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisar Protocolo'), row1, row2, row3, row5,
                     HTML(autor_label), HTML(autor_modal), row4,
                     form_actions(label='Pesquisar')))
示例#14
0
    def __init__(self, *args, **kwargs):
        super(TramitacaoEmLoteFilterSet, self).__init__(
            *args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'
        self.filters['data_apresentacao'].label = 'Data (Inicial - Final)'
        self.filters['tramitacao__unidade_tramitacao_destino'
                     ].label = 'Unidade Destino (Último Destino)'
        self.form.fields['tipo'].required = True
        self.form.fields['data_apresentacao'].required = True
        self.form.fields['tramitacao__status'].required = True
        self.form.fields[
            'tramitacao__unidade_tramitacao_destino'].required = True

        row1 = to_row([
            ('tipo', 4),
            ('tramitacao__unidade_tramitacao_destino', 4),
            ('tramitacao__status', 4)])
        row2 = to_row([('data_apresentacao', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Tramitação em Lote'),
                     row1, row2, form_actions(save_label='Pesquisar')))
示例#15
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row(
            [(InlineRadios('tipo_protocolo'), 12)])
        row2 = to_row(
            [('tipo_documento', 6),
             ('numero_paginas', 6)])
        row3 = to_row(
            [('assunto', 12)])
        row4 = to_row(
            [('interessado', 12)])
        row5 = to_row(
            [('observacao', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação de Documento'),
                     row1,
                     row2,
                     row3,
                     row4,
                     row5,
                     HTML(" "),
                     form_actions(save_label=_('Protocolar Documento'))
                     )
        )
        super(ProtocoloDocumentForm, self).__init__(
            *args, **kwargs)
示例#16
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(TramitacaoEmLoteFilterSet, self).__init__(
            *args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'
        self.filters['data_apresentacao'].label = 'Data (Inicial - Final)'
        self.filters['tramitacao__unidade_tramitacao_destino'
                     ].label = 'Unidade Destino (Último Destino)'
        self.form.fields['tipo'].required = True
        self.form.fields['data_apresentacao'].required = False
        self.form.fields['tramitacao__status'].required = True
        self.form.fields[
            'tramitacao__unidade_tramitacao_destino'].required = True

        row1 = to_row([
            ('tipo', 4),
            ('tramitacao__unidade_tramitacao_destino', 4),
            ('tramitacao__status', 4)])
        row2 = to_row([('data_apresentacao', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Tramitação em Lote'),
                     row1, row2, form_actions(save_label='Pesquisar')))
示例#17
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row(
            [('tipo_materia', 4),
             ('numero_paginas', 4)])
        row2 = to_row(
            [('autor', 0),
             (Button('pesquisar',
                     'Pesquisar Autor',
                     css_class='btn btn-primary btn-sm'), 2),
             (Button('limpar',
                     'limpar Autor',
                     css_class='btn btn-primary btn-sm'), 10)])
        row3 = to_row(
            [('observacao', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação da Matéria'),
                     row1,
                      HTML(autor_label),
                      HTML(autor_modal),
                     row2,
                     row3,
                     form_actions(save_label='Protocolar Matéria')
                     )
        )

        super(ProtocoloMateriaForm, self).__init__(
            *args, **kwargs)
示例#18
0
    def __init__(self, *args, **kwargs):

        super(UsuarioCreateForm, self).__init__(*args, **kwargs)

        row0 = to_row([('username', 12)])

        row1 = to_row([('firstname', 6),
                       ('lastname', 6)])

        row2 = to_row([('email', 6),
                       ('user_active', 6)])
        row3 = to_row(
            [('password1', 6),
             ('password2', 6)])

        row4 = to_row([(form_actions(label='Confirmar'), 6)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            row0,
            row1,
            row3,
            row2,
            'roles',
            row4)
示例#19
0
    def __init__(self, data=None, queryset=None, prefix=None, **kwargs):

        workspace = kwargs.pop('workspace')

        super(ImpressoEnderecamentoContatoFilterSet,
              self).__init__(data=data,
                             queryset=queryset,
                             prefix=prefix,
                             **kwargs)

        col1 = to_row([
            ('search', 6),
            ('sexo', 3),
            ('tem_filhos', 3),
            ('data_nascimento', 6),
            ('idade', 6),
            ('tipo_autoridade', 6),
            ('grupo', 6),
        ])

        col2 = to_row([
            ('impresso', 12),
            ('fontsize', 4),
            ('nome_maiusculo', 4),
            ('imprimir_pronome', 4),
            ('imprimir_cargo', 5),
            ('local_cargo', 7),
        ])

        row = to_row([
            (Fieldset(
                _('Informações para Seleção de Contatos'), col1,
                to_row([(SubmitFilterPrint(
                    'filter',
                    value=_('Filtrar'),
                    css_class='btn-outline-primary pull-right',
                    type='submit'), 12)])), 6),
            (Fieldset(
                _('Informações para Impressão'), col2,
                to_row([(SubmitFilterPrint('print',
                                           value=_('Imprimir'),
                                           css_class='btn-primary pull-right',
                                           type='submit'), 12)])), 6)
        ])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(row, )

        self.form.fields['search'].label = _('Nome/Nome Social/Apelido')
        self.form.fields['data_nascimento'].label = '%s (%s)' % (
            _('Aniversário'), _('Inicial - Final'))

        self.form.fields['tem_filhos'].choices.choices[0] = (None, _('Ambos'))

        self.form.fields['grupo'].choices = [
            ('0', _('Apenas Contatos sem Grupo')),
        ] + [(g.pk, str(g))
             for g in GrupoDeContatos.objects.filter(workspace=workspace)]
示例#20
0
文件: forms.py 项目: alroleg/sapl
    def __init__(self, *args, **kwargs):
        row1 = to_row([('username', 4), ('senha', 4), ('senha_confirma', 4)])
        row2 = to_row([('email', 6), ('email_confirma', 6)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Votante'), row1, row2,
                     form_actions(save_label='Salvar')))
        super(VotanteForm, self).__init__(*args, **kwargs)
示例#21
0
    def __init__(self, *args, **kwargs):

        super(AlterarSenhaForm, self).__init__(*args, **kwargs)

        row1 = to_row([('old_password', 12)])
        row2 = to_row([('new_password1', 6), ('new_password2', 6)])

        self.helper = FormHelper()
        self.helper.layout = Layout(row1, row2,
                                    form_actions(label='Alterar Senha'))
示例#22
0
    def __init__(self, *args, **kwargs):

        row1 = to_row([('numero', 6), ('ano', 6)])
        row2 = to_row([('justificativa_anulacao', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação do Protocolo'), row1, row2,
                     HTML(" "), form_actions(label='Anular')))
        super(AnularProcoloAdmForm, self).__init__(*args, **kwargs)
示例#23
0
文件: forms.py 项目: lizianem/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row([('arquivo', 4)])

        row2 = to_row([('assunto', 12)])

        self.helper = SaplFormHelper()
        self.helper.layout = SaplFormLayout(
            Fieldset(_('Identificação Básica'), row1, row2))
        super(AnexoAudienciaPublicaForm, self).__init__(*args, **kwargs)
示例#24
0
文件: forms.py 项目: lizianem/sapl
    def __init__(self, *args, **kwargs):
        super(MateriaLegislativaFilterSet, self).__init__(*args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'
        self.filters['autoria__autor__tipo'].label = 'Tipo de Autor'
        # self.filters['autoria__autor__partido'].label = 'Partido do Autor'
        self.filters['relatoria__parlamentar_id'].label = 'Relatoria'

        row1 = to_row([('tramitacao__status', 12)])
        row2 = to_row([('tipo', 12)])
        row3 = to_row([('numero', 4), ('ano', 4), ('numero_protocolo', 4)])
        row4 = to_row([('data_apresentacao', 6), ('data_publicacao', 6)])
        row5 = to_row([('autoria__autor', 0),
                       (Button('pesquisar',
                               'Pesquisar Autor',
                               css_class='btn btn-primary btn-sm'), 2),
                       (Button('limpar',
                               'limpar Autor',
                               css_class='btn btn-primary btn-sm'), 10)])
        row6 = to_row([
            ('autoria__autor__tipo', 6),
            # ('autoria__autor__partido', 6)
        ])
        row7 = to_row([('relatoria__parlamentar_id', 6),
                       ('local_origem_externa', 6)])
        row8 = to_row([('em_tramitacao', 6), ('o', 6)])
        row9 = to_row([('ementa', 12)])

        self.form.helper = SaplFormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisa de Matéria'), row1, row2, row3,
                     HTML(autor_label), HTML(autor_modal), row4, row5, row6,
                     row7, row8, row9, form_actions(label='Pesquisar')))
示例#25
0
    def __init__(self, *args, **kwargs):

        super(UsuarioEditForm, self).__init__(*args, **kwargs)

        row1 = to_row([('email', 6), ('user_active', 6)])
        row2 = to_row([('password1', 6), ('password2', 6)])

        row3 = to_row([(form_actions(label='Salvar Alterações'), 6)])

        self.helper = FormHelper()
        self.helper.layout = Layout(row1, row2, 'roles', row3)
示例#26
0
    def __init__(self, *args, **kwargs):
        super(RelatorioReuniaoFilterSet, self).__init__(*args, **kwargs)

        row1 = to_row([('data', 12)])
        row2 = to_row([('comissao', 4), ('nome', 4), ('tema', 4)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Reunião de Comissão'), row1, row2,
                     form_actions(label='Pesquisar')))
示例#27
0
    def __init__(self, *args, **kwargs):
        super(RelatorioAudienciaFilterSet, self).__init__(*args, **kwargs)

        row1 = to_row([('data', 12)])
        row2 = to_row([('tipo', 4), ('nome', 4)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Audiência Pública'), row1, row2,
                     form_actions(label='Pesquisar')))
示例#28
0
    def __init__(self, *args, **kwargs):
        super(NormaFilterSet, self).__init__(*args, **kwargs)

        row1 = to_row([('tipo', 4), ('numero', 4), ('ano', 4)])
        row2 = to_row([('data', 6), ('data_publicacao', 6)])
        row3 = to_row([('ementa', 8), ('assuntos', 4)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisa de Norma'), row1, row2, row3,
                     form_actions(label='Pesquisar')))
示例#29
0
    def __init__(self, *args, **kwargs):
        super(NormaPesquisaSimplesForm, self).__init__(*args, **kwargs)

        row1 = to_row([('tipo_norma', 6), ('data_inicial', 3),
                       ('data_final', 3)])

        row2 = to_row([('titulo', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(('Índice de Normas'), row1, row2,
                     form_actions(label='Pesquisar')))
示例#30
0
    def __init__(self, *args, **kwargs):

        row1 = to_row([('tipo_materia', 4), ('numero_paginas', 2),
                       ('tipo_autor', 3), ('autor', 3)])
        row3 = to_row([('assunto_ementa', 12)])
        row4 = to_row([('observacao', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação da Matéria'), row1, row3, row4,
                     form_actions(save_label='Protocolar Matéria')))

        super(ProtocoloMateriaForm, self).__init__(*args, **kwargs)
示例#31
0
文件: forms.py 项目: camaragyn/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row([('tipo', 6), ('numero', 3), ('ano', 3)])
        row2 = to_row([('data_apresentacao', 6), ('numero_protocolo', 6)])
        row3 = to_row([('regime_tramitacao', 6), ('em_tramitacao', 6)])
        row4 = to_row([('ementa', 12)])
        row5 = to_row([('texto_original', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Formulário Simplificado'), row1, row2, row3, row4,
                     row5, form_actions(save_label='Salvar')))
        super(MateriaSimplificadaForm, self).__init__(*args, **kwargs)
示例#32
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioHistoricoTramitacaoFilterSet, self).__init__(*args, **kwargs)

        self.filters["tipo"].label = "Tipo de Matéria"

        row1 = to_row([("tramitacao__data_tramitacao", 12)])
        row2 = to_row([("tipo", 4), ("tramitacao__unidade_tramitacao_local", 4), ("tramitacao__status", 4)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = "GET"
        self.form.helper.layout = Layout(
            Fieldset(_("Histórico de Tramita"), row1, row2, form_actions(save_label="Pesquisar"))
        )
示例#33
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(NormaFilterSet, self).__init__(*args, **kwargs)

        row1 = to_row([('tipo', 4), ('numero', 4), ('ano', 4)])
        row2 = to_row([('data', 6), ('data_publicacao', 6)])
        row3 = to_row([('ementa', 8), ('assuntos', 4)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisa de Norma'),
                     row1, row2, row3,
                     form_actions(save_label='Pesquisar'))
        )
示例#34
0
    def __init__(self,
                 data=None,
                 queryset=None,
                 prefix=None,
                 strict=None,
                 **kwargs):

        workspace = kwargs.pop('workspace')

        super(ContatoAgrupadoPorGrupoFilterSet,
              self).__init__(data=data,
                             queryset=queryset,
                             prefix=prefix,
                             strict=strict,
                             **kwargs)

        c1_row1 = to_row([
            ('municipio', 7),
            ('grupo', 7),
        ])

        col1 = Fieldset(
            _('Informações para Seleção de Contados'), c1_row1,
            to_row([
                (SubmitFilterPrint('filter',
                                   value=_('Filtrar'),
                                   css_class='btn-outline-primary pull-right',
                                   type='submit'), 12)
            ]))

        col2 = Fieldset(
            _('Inf p/ Impressão'),
            SubmitFilterPrint('print',
                              value=_('Imprimir'),
                              css_class='btn-primary pull-right',
                              type='submit'))

        rows = to_row([
            (col1, 9),
            (col2, 3),
        ])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(rows, )

        self.form.fields['grupo'].queryset = GrupoDeContatos.objects.filter(
            workspace=workspace)
        self.form.fields['municipio'].queryset = Municipio.objects.all()
示例#35
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(AcessorioEmLoteFilterSet, self).__init__(*args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'
        self.filters['data_apresentacao'].label = 'Data (Inicial - Final)'
        self.form.fields['tipo'].required = True
        self.form.fields['data_apresentacao'].required = True

        row1 = to_row([('tipo', 12)])
        row2 = to_row([('data_apresentacao', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Documentos Acessórios em Lote'),
                     row1, row2, form_actions(save_label='Pesquisar')))
示例#36
0
    def __init__(self, *args, **kwargs):
        super(RelatorioMateriasTramitacaoilterSet,
              self).__init__(*args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'

        row1 = to_row([('ano', 12)])
        row2 = to_row([('tipo', 12)])
        row3 = to_row([('tramitacao__unidade_tramitacao_local', 12)])
        row4 = to_row([('tramitacao__status', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisa de Matéria em Tramitação'), row1, row2, row3,
                     row4, form_actions(save_label='Pesquisar')))
示例#37
0
    def __init__(self, *args, **kwargs):
        super(RelatorioHistoricoTramitacaoFilterSet,
              self).__init__(*args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'

        row1 = to_row([('tramitacao__data_tramitacao', 12)])
        row2 = to_row([('tipo', 4),
                       ('tramitacao__unidade_tramitacao_local', 4),
                       ('tramitacao__status', 4)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Histórico de Tramita'), row1, row2,
                     form_actions(save_label='Pesquisar')))
示例#38
0
    def __init__(self, *args, **kwargs):
        super(AcessorioEmLoteFilterSet, self).__init__(*args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'
        self.filters['data_apresentacao'].label = 'Data (Inicial - Final)'
        self.form.fields['tipo'].required = True
        self.form.fields['data_apresentacao'].required = True

        row1 = to_row([('tipo', 12)])
        row2 = to_row([('data_apresentacao', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Documentos Acessórios em Lote'),
                     row1, row2, form_actions(save_label='Pesquisar')))
示例#39
0
    def __init__(self, *args, **kwargs):
        row1 = to_row([('username', 4)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Votante'), row1, form_actions(label='Salvar')))
        super(VotanteForm, self).__init__(*args, **kwargs)
示例#40
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioMateriasTramitacaoilterSet, self).__init__(*args, **kwargs)

        self.filters["tipo"].label = "Tipo de Matéria"

        row1 = to_row([("ano", 12)])
        row2 = to_row([("tipo", 12)])
        row3 = to_row([("tramitacao__unidade_tramitacao_local", 12)])
        row4 = to_row([("tramitacao__status", 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = "GET"
        self.form.helper.layout = Layout(
            Fieldset(
                _("Pesquisa de Matéria em Tramitação"), row1, row2, row3, row4, form_actions(save_label="Pesquisar")
            )
        )
示例#41
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioMateriasPorAnoAutorTipoFilterSet, self).__init__(*args, **kwargs)

        row1 = to_row([("ano", 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = "GET"
        self.form.helper.layout = Layout(Fieldset(_("Pesquisar"), row1, form_actions(save_label="Pesquisar")))
示例#42
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(MateriaLegislativaFilterSet, self).__init__(*args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'
        self.filters['autoria__autor__tipo'].label = 'Tipo de Autor'
        # self.filters['autoria__autor__partido'].label = 'Partido do Autor'
        self.filters['relatoria__parlamentar_id'].label = 'Relatoria'

        row1 = to_row(
            [('tipo', 12)])
        row2 = to_row(
            [('numero', 4),
             ('ano', 4),
             ('numero_protocolo', 4)])
        row3 = to_row(
            [('data_apresentacao', 6),
             ('data_publicacao', 6)])
        row4 = to_row(
            [('autoria__autor', 0),
             (Button('pesquisar',
                     'Pesquisar Autor',
                     css_class='btn btn-primary btn-sm'), 2),
             (Button('limpar',
                     'limpar Autor',
                     css_class='btn btn-primary btn-sm'), 10)])
        row5 = to_row(
            [('autoria__autor__tipo', 12),
             # ('autoria__autor__partido', 6)
             ])
        row6 = to_row(
            [('relatoria__parlamentar_id', 6),
             ('local_origem_externa', 6)])
        row7 = to_row(
            [('tramitacao__unidade_tramitacao_destino', 6),
             ('tramitacao__status', 6)])
        row8 = to_row(
            [('em_tramitacao', 6),
             ('o', 6)])
        row9 = to_row(
            [('ementa', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisa de Matéria'),
                     row1, row2, row3,
                     HTML(autor_label),
                     HTML(autor_modal),
                     row4, row5, row6, row7, row8, row9,
                     form_actions(save_label='Pesquisar'))
        )
示例#43
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row([('tipo', 6), ('numero', 3), ('ano', 3)])
        row2 = to_row([('data_apresentacao', 6), ('numero_protocolo', 6)])
        row3 = to_row([('regime_tramitacao', 6), ('em_tramitacao', 6)])
        row4 = to_row([('ementa', 12)])
        row5 = to_row([('texto_original', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(
                _('Formulário Simplificado'),
                row1, row2, row3, row4, row5,
                form_actions(save_label='Salvar')
            )
        )
        super(MateriaSimplificadaForm, self).__init__(*args, **kwargs)
示例#44
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row(
            [('tipo', 4), ('numero', 4), ('ano', 4)])

        row2 = to_row(
            [('data', 6), ('numero_protocolo', 6)])

        row3 = to_row(
            [('assunto', 12)])

        row4 = to_row(
            [('interessado', 9), ('tramitacao', 3)])

        row5 = to_row(
            [('texto_integral', 12)])

        row6 = to_row(
            [('dias_prazo', 6), ('data_fim_prazo', 6)])

        row7 = to_row(
            [('observacao', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação Básica'),
                     row1, row2, row3, row4, row5),
            Fieldset(_('Outras Informações'),
                     row6, row7),
            form_actions(more=[Submit('Excluir', 'Excluir')]),
        )
        super(DocumentoAdministrativoForm, self).__init__(
            *args, **kwargs)
示例#45
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioMateriasTramitacaoilterSet, self).__init__(
            *args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'

        row1 = to_row([('ano', 12)])
        row2 = to_row([('tipo', 12)])
        row3 = to_row([('tramitacao__unidade_tramitacao_local', 12)])
        row4 = to_row([('tramitacao__status', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisa de Matéria em Tramitação'),
                     row1, row2, row3, row4,
                     form_actions(save_label='Pesquisar'))
        )
示例#46
0
文件: forms.py 项目: interlegis/sapl
 def __init__(self, *args, **kwargs):
     row1 = to_row([('cod_hash', 12)])
     self.helper = FormHelper()
     self.helper.layout = Layout(
         Fieldset(
             _('Incorporar Proposição'), row1,
             form_actions(save_label='Buscar Proposição')
         )
     )
     super(ReceberProposicaoForm, self).__init__(*args, **kwargs)
示例#47
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row(
            [('numero', 6),
             ('ano', 6)])
        row2 = to_row(
            [('justificativa_anulacao', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação do Protocolo'),
                     row1,
                     row2,
                     HTML(" "),
                     form_actions(save_label='Anular')
                     )
        )
        super(AnularProcoloAdmForm, self).__init__(
            *args, **kwargs)
示例#48
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioHistoricoTramitacaoFilterSet, self).__init__(
            *args, **kwargs)

        self.filters['tipo'].label = 'Tipo de Matéria'

        row1 = to_row([('tramitacao__data_tramitacao', 12)])
        row2 = to_row(
            [('tipo', 4),
             ('tramitacao__unidade_tramitacao_local', 4),
             ('tramitacao__status', 4)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Histórico de Tramita'),
                     row1, row2,
                     form_actions(save_label='Pesquisar'))
        )
示例#49
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        row1 = to_row(
            [('email', 12)])
        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Insira o e-mail cadastrado com a sua conta'),
                     row1,
                     form_actions(save_label='Enviar'))
        )

        super(RecuperarSenhaForm, self).__init__(*args, **kwargs)
示例#50
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, user, *args, **kwargs):
        self.user = user
        super(NovaSenhaForm, self).__init__(user, *args, **kwargs)

        row1 = to_row(
            [('new_password1', 6),
             ('new_password2', 6)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
                     row1,
                     form_actions(save_label='Enviar'))
示例#51
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioPresencaSessaoFilterSet, self).__init__(*args, **kwargs)

        self.filters["data_inicio"].label = "Período (Inicial - Final)"
        self.form.fields["data_inicio"].required = True

        row1 = to_row([("data_inicio", 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = "GET"
        self.form.helper.layout = Layout(
            Fieldset(_("Presença dos parlamentares nas sessões plenárias"), row1, form_actions(save_label="Pesquisar"))
        )
示例#52
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(DocumentoAdministrativoFilterSet, self).__init__(*args, **kwargs)

        local_atual = 'tramitacaoadministrativo__unidade_tramitacao_destino'
        self.filters['tipo'].label = 'Tipo de Documento'
        self.filters['tramitacaoadministrativo__status'].label = 'Situação'
        self.filters[local_atual].label = 'Localização Atual'

        row1 = to_row(
            [('tipo', 6),
             ('numero', 6)])

        row2 = to_row(
            [('ano', 4),
             ('numero_protocolo', 4),
             ('data', 4)])

        row3 = to_row(
            [('interessado', 4),
             ('assunto', 4),
             ('tramitacao', 4)])

        row4 = to_row(
            [('tramitacaoadministrativo__unidade_tramitacao_destino', 6),
             ('tramitacaoadministrativo__status', 6)])

        row5 = to_row(
            [('o', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisar Documento'),
                     row1, row2,
                     row3, row4, row5,
                     form_actions(save_label='Pesquisar'))
        )
示例#53
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(RelatorioAtasFilterSet, self).__init__(
            *args, **kwargs)

        self.filters['data_inicio'].label = 'Período (Inicial - Final)'
        self.form.fields['data_inicio'].required = True

        row1 = to_row([('data_inicio', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Atas das Sessões Plenárias'),
                     row1, form_actions(save_label='Pesquisar'))
        )
示例#54
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):

        row1 = to_row([('email', 10)])

        row1.append(
            Column(form_actions(save_label='Cadastrar'), css_class='col-md-2')
        )

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(
                _('Acompanhamento de Matéria por e-mail'), row1
            )
        )
        super(AcompanhamentoMateriaForm, self).__init__(*args, **kwargs)
示例#55
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(SessaoPlenariaFilterSet, self).__init__(*args, **kwargs)

        row1 = to_row(
            [('data_inicio__year', 3),
             ('data_inicio__month', 3),
             ('data_inicio__day', 3),
             ('tipo', 3)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(self.titulo,
                     row1,
                     form_actions(save_label='Pesquisar'))
        )
示例#56
0
文件: forms.py 项目: interlegis/sapl
    def __init__(self, *args, **kwargs):
        super(ProtocoloFilterSet, self).__init__(*args, **kwargs)

        self.filters['autor'].label = 'Tipo de Matéria'
        self.filters['assunto_ementa'].label = 'Assunto'

        row1 = to_row(
            [('numero', 4),
             ('ano', 4),
             ('data', 4)])

        row2 = to_row(
            [('tipo_documento', 4),
             ('tipo_protocolo', 4),
             ('tipo_materia', 4)])

        row3 = to_row(
            [('interessado', 6),
             ('assunto_ementa', 6)])

        row4 = to_row(
            [('autor', 0),
             (Button('pesquisar',
                     'Pesquisar Autor',
                     css_class='btn btn-primary btn-sm'), 2),
             (Button('limpar',
                     'Limpar Autor',
                     css_class='btn btn-primary btn-sm'), 10)])
        row5 = to_row(
            [('tipo_processo', 12)])
        row6 = to_row(
            [('o', 12)])

        self.form.helper = FormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset('',
                     row1, row2,
                     row3,
                     HTML(autor_label),
                     HTML(autor_modal),
                     row4, row5, row6,
                     form_actions(save_label='Pesquisar'))
        )