Browse Source

Resolve bug no template de sessão plenaria

pull/713/head
Eduardo Calil 8 years ago
parent
commit
33c7d29f12
  1. 1
      sapl/sessao/views.py
  2. 14
      sapl/templates/sessao/sessaoplenaria_filter.html

1
sapl/sessao/views.py

@ -2051,6 +2051,7 @@ class PesquisarSessaoPlenariaView(FilterView):
context = super(PesquisarSessaoPlenariaView, context = super(PesquisarSessaoPlenariaView,
self).get_context_data(**kwargs) self).get_context_data(**kwargs)
context['title'] = _('Pesquisar Sessão Plenária')
paginator = context['paginator'] paginator = context['paginator']
page_obj = context['page_obj'] page_obj = context['page_obj']

14
sapl/templates/sessao/sessaoplenaria_filter.html

@ -1,11 +1,10 @@
{% extends "crud/detail.html" %} {% extends "crud/detail.html" %}
{% load i18n %} {% load i18n %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% load common_tags %}
{% block actions %} {% block actions %}
<div class="actions btn-group pull-right" role="group"> <div class="actions btn-group pull-right" role="group">
{% if perms|get_add_perm:view %} {% if perms.sessao %}
<a href="{% url 'sapl.sessao:sessaoplenaria_create' %}" class="btn btn-default"> <a href="{% url 'sapl.sessao:sessaoplenaria_create' %}" class="btn btn-default">
{% blocktrans with verbose_name=view.verbose_name %} Adicionar Sessão Plenária {% endblocktrans %} {% blocktrans with verbose_name=view.verbose_name %} Adicionar Sessão Plenária {% endblocktrans %}
{% endif %} {% endif %}
@ -16,12 +15,7 @@
</div> </div>
{% endblock %} {% endblock %}
{% block sections_nav %} {% endblock %} {% block detail_content %}
{% block base_content %}
<h1><b>Pesquisar Sessão Plenária</b></h1>
<br></br>
{% if not filter_url %} {% if not filter_url %}
{% crispy filter.form %} {% crispy filter.form %}
{% endif %} {% endif %}
@ -54,4 +48,6 @@
</table> </table>
{% include "paginacao.html" %} {% include "paginacao.html" %}
{% endif %} {% endif %}
{% endblock base_content %} {% endblock detail_content %}
{% block table_content %}
{% endblock table_content %}
Loading…
Cancel
Save