Browse Source

Corrige links de ajuda

pull/1531/head
Mariana Mendes 7 years ago
parent
commit
b9fdd5496a
  1. 18
      sapl/materia/views.py
  2. 2
      sapl/norma/views.py
  3. 12
      sapl/parlamentares/views.py
  4. 8
      sapl/protocoloadm/views.py
  5. 8
      sapl/sessao/views.py
  6. 2
      sapl/templates/ajuda.html

18
sapl/materia/views.py

@ -551,7 +551,7 @@ class UnidadeTramitacaoCrud(CrudAux):
class ProposicaoCrud(Crud):
model = Proposicao
help_topic = ''
help_topic = 'proposicao'
container_field = 'autor__user'
class BaseMixin(Crud.BaseMixin):
@ -838,7 +838,7 @@ class ReciboProposicaoView(TemplateView):
class RelatoriaCrud(MasterDetailCrud):
model = Relatoria
parent_field = 'materia'
help_topic = ''
help_topic = 'tramitacao_relatoria'
public = [RP_LIST, RP_DETAIL]
class CreateView(MasterDetailCrud.CreateView):
@ -913,7 +913,7 @@ class RelatoriaCrud(MasterDetailCrud):
class TramitacaoCrud(MasterDetailCrud):
model = Tramitacao
parent_field = 'materia'
help_topic = ''
help_topic = 'tramitacao_relatoria'
public = [RP_LIST, RP_DETAIL]
class BaseMixin(MasterDetailCrud.BaseMixin):
@ -1058,7 +1058,7 @@ def montar_helper_documento_acessorio(self):
class DocumentoAcessorioCrud(MasterDetailCrud):
model = DocumentoAcessorio
parent_field = 'materia'
help_topic = ''
help_topic = 'despacho_autoria'
public = [RP_LIST, RP_DETAIL]
class BaseMixin(MasterDetailCrud.BaseMixin):
@ -1094,7 +1094,7 @@ class DocumentoAcessorioCrud(MasterDetailCrud):
class AutoriaCrud(MasterDetailCrud):
model = Autoria
parent_field = 'materia'
help_topic = ''
help_topic = 'despacho_autoria'
public = [RP_LIST, RP_DETAIL]
list_field_names = ['autor', 'autor__tipo__descricao', 'primeiro_autor']
@ -1169,7 +1169,7 @@ class AutoriaMultiCreateView(PermissionRequiredForAppCrudMixin, FormView):
class DespachoInicialCrud(MasterDetailCrud):
model = DespachoInicial
parent_field = 'materia'
help_topic = ''
help_topic = 'despacho_autoria'
public = [RP_LIST, RP_DETAIL]
class CreateView(MasterDetailCrud.CreateView):
@ -1182,7 +1182,7 @@ class DespachoInicialCrud(MasterDetailCrud):
class LegislacaoCitadaCrud(MasterDetailCrud):
model = LegislacaoCitada
parent_field = 'materia'
help_topic = ''
help_topic = 'legislacao_cita_matanexada'
public = [RP_LIST, RP_DETAIL]
class BaseMixin(MasterDetailCrud.BaseMixin):
@ -1267,14 +1267,14 @@ class LegislacaoCitadaCrud(MasterDetailCrud):
class NumeracaoCrud(MasterDetailCrud):
model = Numeracao
parent_field = 'materia'
help_topic = ''
help_topic = 'numeracao_docsacess'
public = [RP_LIST, RP_DETAIL]
class AnexadaCrud(MasterDetailCrud):
model = Anexada
parent_field = 'materia_principal'
help_topic = ''
help_topic = 'materia_anexada'
public = [RP_LIST, RP_DETAIL]
class BaseMixin(MasterDetailCrud.BaseMixin):

2
sapl/norma/views.py

@ -33,7 +33,7 @@ TipoVinculoNormaJuridicaCrud = CrudAux.build(
class NormaRelacionadaCrud(MasterDetailCrud):
model = NormaRelacionada
parent_field = 'norma_principal'
help_topic = ''
help_topic = 'norma_juridica'
public = [RP_LIST, RP_DETAIL]
class BaseMixin(MasterDetailCrud.BaseMixin):

12
sapl/parlamentares/views.py

@ -89,7 +89,7 @@ class FrenteList(MasterDetailCrud):
class RelatoriaParlamentarCrud(CrudBaseForListAndDetailExternalAppView):
model = Relatoria
parent_field = 'parlamentar'
help_topic = 'relatoria_parlamentar'
help_topic = 'tramitacao_relatoria'
namespace = AppConfig.name
class BaseMixin(CrudBaseForListAndDetailExternalAppView.BaseMixin):
@ -181,7 +181,7 @@ class ParticipacaoParlamentarCrud(CrudBaseForListAndDetailExternalAppView):
class ColigacaoCrud(CrudAux):
model = Coligacao
help_topic = 'tabelas_auxiliares#coligacao'
help_topic = 'coligacao'
class ListView(CrudAux.ListView):
ordering = ('-numero_votos', 'nome')
@ -272,7 +272,7 @@ def parlamentares_frente_selected(request):
class FrenteCrud(CrudAux):
model = Frente
help_topic = 'tabelas_auxiliares#tipo_situa_militar'
help_topic = 'tipo_situa_militar'
list_field_names = ['nome', 'data_criacao', 'parlamentares']
class CreateView(CrudAux.CreateView):
@ -337,7 +337,7 @@ class MandatoCrud(MasterDetailCrud):
class ComposicaoColigacaoCrud(MasterDetailCrud):
model = ComposicaoColigacao
parent_field = 'coligacao'
help_topic = ''
help_topic = 'coligacao'
class BaseMixin(MasterDetailCrud.BaseMixin):
@ -353,7 +353,7 @@ class ComposicaoColigacaoCrud(MasterDetailCrud):
class LegislaturaCrud(CrudAux):
model = Legislatura
help_topic = 'tabelas_auxiliares#legislatura'
help_topic = 'legislatura'
class CreateView(CrudAux.CreateView):
form_class = LegislaturaForm
@ -391,7 +391,7 @@ class LegislaturaCrud(CrudAux):
class FiliacaoCrud(MasterDetailCrud):
model = Filiacao
parent_field = 'parlamentar'
help_topic = ''
help_topic = 'filiacoes_partidarias'
public = [RP_LIST, RP_DETAIL]
class BaseMixin(MasterDetailCrud.BaseMixin):

8
sapl/protocoloadm/views.py

@ -84,7 +84,7 @@ class DocumentoAdministrativoMixin:
class DocumentoAdministrativoCrud(Crud):
model = DocumentoAdministrativo
help_topic = ''
help_topic = 'numeracao_docsacess'
class BaseMixin(Crud.BaseMixin):
list_field_names = ['tipo', 'numero', 'ano', 'data',
@ -142,7 +142,7 @@ class DocumentoAdministrativoCrud(Crud):
class StatusTramitacaoAdministrativoCrud(CrudAux):
model = StatusTramitacaoAdministrativo
help_topic = ''
help_topic = 'status_tramitacao'
class BaseMixin(CrudAux.BaseMixin):
list_field_names = ['sigla', 'indicador', 'descricao']
@ -577,7 +577,7 @@ class PesquisarDocumentoAdministrativoView(DocumentoAdministrativoMixin,
class TramitacaoAdmCrud(MasterDetailCrud):
model = TramitacaoAdministrativo
parent_field = 'documento'
help_topic = ''
help_topic = 'unidade_tramitacao'
class BaseMixin(MasterDetailCrud.BaseMixin):
list_field_names = ['data_tramitacao', 'unidade_tramitacao_local',
@ -656,7 +656,7 @@ class TramitacaoAdmCrud(MasterDetailCrud):
class DocumentoAcessorioAdministrativoCrud(MasterDetailCrud):
model = DocumentoAcessorioAdministrativo
parent_field = 'documento'
help_topic = ''
help_topic = 'numeracao_docsacess'
class BaseMixin(MasterDetailCrud.BaseMixin):
list_field_names = ['nome', 'tipo',

8
sapl/sessao/views.py

@ -203,7 +203,7 @@ def get_presencas_generic(model, sessao, legislatura):
class MateriaOrdemDiaCrud(MasterDetailCrud):
model = OrdemDia
parent_field = 'sessao_plenaria'
help_topic = ''
help_topic = 'sessao_plenaria_materias_ordem_dia'
public = [RP_LIST, RP_DETAIL]
class BaseMixin(MasterDetailCrud.BaseMixin):
@ -358,7 +358,7 @@ def recuperar_materia(request):
class ExpedienteMateriaCrud(MasterDetailCrud):
model = ExpedienteMateria
parent_field = 'sessao_plenaria'
help_topic = ''
help_topic = 'sessao_plenaria_materia_expediente'
public = [RP_LIST, RP_DETAIL]
class BaseMixin(MasterDetailCrud.BaseMixin):
@ -504,7 +504,7 @@ class ExpedienteMateriaCrud(MasterDetailCrud):
class OradorCrud(MasterDetailCrud):
model = ''
parent_field = 'sessao_plenaria'
help_topic = ''
help_topic = 'sessao_plenaria_oradores'
public = [RP_LIST, RP_DETAIL]
class ListView(MasterDetailCrud.ListView):
@ -571,7 +571,7 @@ def sessao_legislativa_legislatura_ajax(request):
class SessaoCrud(Crud):
model = SessaoPlenaria
help_topic = 'sessao_plenaria'
help_topic = 'sessao_legislativa'
public = [RP_DETAIL]
class BaseMixin(Crud.BaseMixin):

2
sapl/templates/ajuda.html

@ -96,7 +96,7 @@
<li><a href="{% url 'sapl.base:help_topic' 'tramitacao_relatoria' %}">Para inclusão de Tramitação, acione a função "Tramitação"</a></li>
<li><a href="{% url 'sapl.base:help_topic' 'tramitacao_relatoria' %}">Para inclusão da Relatoria, acione a função "Relatoria"</a></li>
<li><a href="{% url 'sapl.base:help_topic' 'numeracao_docsacess' %}">Para inclusão de Numeração, acione a função "Numeração"</a></li>
<li><a href="{% url 'sapl.base:help_topic' 'despacho_autoria' %}">Para inclusão de Documentos Acessórios, acione a função "Documentos Acessórios"</a></li>
<li><a href="{% url 'sapl.base:help_topic' 'numeracao_docsacess' %}">Para inclusão de Documentos Acessórios, acione a função "Documentos Acessórios"</a></li>
</ul>
</li>
</ul>

Loading…
Cancel
Save