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. 26
      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']

26
sapl/templates/sessao/sessaoplenaria_filter.html

@ -1,30 +1,24 @@
{% 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 %}
</a> </a>
{% if filter_url %} {% if filter_url %}
<a href="{% url 'sapl.sessao:pesquisar_sessao' %}" class="btn btn-default">{% trans 'Fazer nova pesquisa' %}</a> <a href="{% url 'sapl.sessao:pesquisar_sessao' %}" class="btn btn-default">{% trans 'Fazer nova pesquisa' %}</a>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}
{% block sections_nav %} {% endblock %} {% block detail_content %}
{% if not filter_url %}
{% block base_content %} {% crispy filter.form %}
<h1><b>Pesquisar Sessão Plenária</b></h1> {% endif %}
<br></br>
{% if not filter_url %}
{% crispy filter.form %}
{% endif %}
{% if filter_url %} {% if filter_url %}
<p></p> <p></p>
@ -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