예제 #1
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)
예제 #2
0
    def __init__(self, *args, **kwargs):

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

        instance = self.initial['instance']
        if instance:
            self.instance = instance.first()
            self.fields['observacao'].initial = self.instance.observacao

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

        actions = [
            HTML('<a href="{{ view.cancel_url }}"'
                 ' class="btn btn-warning">Cancelar Leitura</a>')
        ]

        self.helper = SaplFormHelper()
        self.helper.form_method = 'POST'
        self.helper.layout = Layout(
            Fieldset(
                _('Leitura de Matéria'),
                HTML('''
                        <b>Matéria:</b> {{materia}}<br>
                        <b>Ementa:</b> {{materia.ementa}} <br>
                    '''),
                row1,
                form_actions(more=actions),
            ))
예제 #3
0
    def __init__(self, *args, **kwargs):

        title_label = kwargs.pop('title_label')
        action_label = kwargs.pop('action_label')

        row1 = to_row(
            [
                (Div(
                 css_class="g-recaptcha float-right",  # if not settings.DEBUG else '',
                 data_sitekey=settings.GOOGLE_RECAPTCHA_SITE_KEY
                 ), 5),
                ('email', 7),

            ]
        )

        self.helper = FormHelper()
        self.helper.layout = SaplFormLayout(
            Fieldset(
                title_label,
                row1
            ),
            actions=form_actions(label=action_label)
        )

        super().__init__(*args, **kwargs)
예제 #4
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)
예제 #5
0
파일: forms.py 프로젝트: alroleg/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')))
예제 #6
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)
예제 #7
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)
예제 #8
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("&nbsp;"),
                     form_actions(save_label=_('Protocolar Documento'))
                     )
        )
        super(ProtocoloDocumentForm, self).__init__(
            *args, **kwargs)
예제 #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
파일: forms.py 프로젝트: alroleg/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'))
        )
예제 #11
0
파일: forms.py 프로젝트: morale/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), ('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')))
예제 #12
0
파일: forms.py 프로젝트: morale/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)])
        row6 = to_row([('numero', 12)])

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(
                _('Identificação de Documento'),
                row1,
                row2,
                row3,
                row4,
                row5,
                HTML("&nbsp;"),
            ),
            Fieldset(
                _('Número do Protocolo (Apenas se quiser que a numeração comece '
                  'a partir do número a ser informado)'), row6, HTML("&nbsp;"),
                form_actions(label=_('Protocolar Documento'))))
        super(ProtocoloDocumentForm, self).__init__(*args, **kwargs)
예제 #13
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)
예제 #14
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)
예제 #15
0
파일: forms.py 프로젝트: camaragyn/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)
예제 #16
0
파일: forms.py 프로젝트: camaragyn/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)
예제 #17
0
파일: forms.py 프로젝트: morale/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(_('Pesquisar Protocolo'), row1, row2, row3,
                     HTML(autor_label), HTML(autor_modal), row4, row5, row6,
                     form_actions(label='Pesquisar')))
예제 #18
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'))
        )
예제 #19
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)
예제 #20
0
    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 = 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')))
예제 #21
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"),
            )
        )
예제 #22
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')))
예제 #23
0
파일: forms.py 프로젝트: morale/sapl
    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("&nbsp;"),
            ),
            Fieldset(
                _('Número do Protocolo (Apenas se quiser que a numeração comece'
                  ' a partir do número a ser informado)'), row5,
                HTML("&nbsp;"), form_actions(label=_('Protocolar Matéria'))))

        super(ProtocoloMateriaForm, self).__init__(*args, **kwargs)
예제 #24
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'))
        )
예제 #25
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")))
예제 #26
0
    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(label='Enviar'))
예제 #27
0
파일: forms_auth.py 프로젝트: erijpc/cmj
    def __init__(self, *args, **kwargs):
        row1 = to_row([('email', 12)])
        self.helper = FormHelper()
        self.helper.layout = SaplFormLayout(
            Fieldset(_('Insira o e-mail cadastrado com a sua conta'), row1),
            actions=form_actions(label=_('Enviar')))

        super(RecuperarSenhaForm, self).__init__(*args, **kwargs)
예제 #28
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)
예제 #29
0
    def __init__(self, *args, **kwargs):
        super(DesvincularMateriaForm, self).__init__(*args, **kwargs)

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

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação da Matéria'), row1, HTML("&nbsp;"),
                     form_actions(label='Desvincular')))
예제 #30
0
파일: forms.py 프로젝트: lizianem/sapl
    def __init__(self, *args, **kwargs):

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

        self.helper = SaplFormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Acompanhamento de Documento por e-mail'), row1,
                     form_actions(label='Cadastrar')))
        super(AcompanhamentoDocumentoForm, self).__init__(*args, **kwargs)
예제 #31
0
파일: forms.py 프로젝트: lizianem/sapl
    def __init__(self, *args, **kwargs):
        super(FichaSelecionaAdmForm, self).__init__(*args, **kwargs)

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

        self.helper = SaplFormHelper()
        self.helper.layout = Layout(
            Fieldset(('Selecione a ficha que deseja imprimir'), row1,
                     form_actions(label='Gerar Impresso')))
예제 #32
0
파일: forms.py 프로젝트: lizianem/sapl
    def __init__(self, *args, **kwargs):

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

        self.helper = SaplFormHelper()
        self.helper.layout = Layout(
            Fieldset(_('Identificação do Documento'), row1, HTML("&nbsp;"),
                     form_actions(label='Desvincular')))
        super(DesvincularDocumentoForm, self).__init__(*args, **kwargs)
예제 #33
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)
예제 #34
0
    def __init__(self, *args, **kwargs):
        super(ParlamentarFilterSet, self).__init__(*args, **kwargs)

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

        self.form.helper = SaplFormHelper()
        self.form.helper.form_method = 'GET'
        self.form.helper.layout = Layout(
            Fieldset(_('Pesquisa de Parlamentar'), row0,
                     form_actions(label='Pesquisar')))
예제 #35
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        row1 = to_row([('parlamentar', 6), ('legislatura', 3),
                       ('data_expedicao_diploma', 3)])

        self.helper = SaplFormHelper()
        self.helper.layout = Layout(
            Fieldset('Vincular Parlamentar', row1,
                     form_actions(label='Vincular')))
예제 #36
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("&nbsp;"), form_actions(label='Anular')))
        super(AnularProcoloAdmForm, self).__init__(*args, **kwargs)
예제 #37
0
파일: forms.py 프로젝트: claudineidias/sapl
    def __init__(self, *args, **kwargs):
        super(NormaPesquisaSimplesForm, self).__init__(*args, **kwargs)

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

        self.helper = FormHelper()
        self.helper.layout = Layout(
            Fieldset(('Índice de Normas'), row1,
                     form_actions(label='Pesquisar')))
예제 #38
0
파일: forms.py 프로젝트: lizianem/sapl
    def __init__(self, *args, **kwargs):
        super(FichaPesquisaAdmForm, self).__init__(*args, **kwargs)

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

        self.helper = SaplFormHelper()
        self.helper.layout = Layout(
            Fieldset(('Formulário de Ficha'), row1,
                     form_actions(label='Pesquisar')))
예제 #39
0
    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')))
예제 #40
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)
예제 #41
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'))
예제 #42
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"))
        )
예제 #43
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"))
        )
예제 #44
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'))
        )
예제 #45
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'))
        )
예제 #46
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)
예제 #47
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'))
        )
예제 #48
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')))
예제 #49
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'))
        )
예제 #50
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")
            )
        )
예제 #51
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)
예제 #52
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'))
        )
예제 #53
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'))
        )
예제 #54
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'))
        )
예제 #55
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("&nbsp;"),
                     form_actions(save_label='Anular')
                     )
        )
        super(AnularProcoloAdmForm, self).__init__(
            *args, **kwargs)
예제 #56
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'))
        )