Browse Source

fix: https://github.com/interlegis/sapl/pull/3829#discussion_r3093438428

3828_refatorar_mesa_diretora
LeandroJatai 1 day ago
parent
commit
fcb2de6731
  1. 15
      sapl/templates/crud/list.html
  2. 8
      sapl/templates/parlamentares/mesadiretora_filter.html

15
sapl/templates/crud/list.html

@ -4,13 +4,14 @@
{% block base_content %} {% block base_content %}
<div class="d-flex context-actions justify-content-between align-items-start"> <div class="d-flex context-actions justify-content-between align-items-start">
<div class="actions search flex-grow-1 pr-3"> {% block actions_search %}
{% if form %} <div class="actions search flex-grow-1 pr-3">
{% crispy form %} {% if form %}
{% elif filter.form %} {% crispy form %}
{% crispy filter.form %} {% endif %}
{% endif %} </div>
</div> {% endblock actions_search %}
{% block actions %} {% block actions %}
<div class="actions btn-group btn-group-lg" role="group"> <div class="actions btn-group btn-group-lg" role="group">
{% if view.create_url %} {% if view.create_url %}

8
sapl/templates/parlamentares/mesadiretora_filter.html

@ -1,6 +1,14 @@
{% extends "crud/list.html" %} {% extends "crud/list.html" %}
{% load i18n common_tags crispy_forms_tags cropping %} {% load i18n common_tags crispy_forms_tags cropping %}
{% block actions_search %}
<div class="actions search flex-grow-1 pr-3">
{% if filter.form %}
{% crispy filter.form %}
{% endif %}
</div>
{% endblock actions_search %}
{% block container_table_list %} {% block container_table_list %}
{% if perms.parlamentares.add_mesadiretora %} {% if perms.parlamentares.add_mesadiretora %}
{{ block.super }} {{ block.super }}

Loading…
Cancel
Save