diff --git a/sapl/templates/crud/filter.html b/sapl/templates/crud/filter.html deleted file mode 100644 index ddfadab08..000000000 --- a/sapl/templates/crud/filter.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "crud/list.html" %} \ No newline at end of file diff --git a/sapl/templates/parlamentares/mesadiretora_filter.html b/sapl/templates/parlamentares/mesadiretora_filter.html new file mode 100644 index 000000000..6f28b05e8 --- /dev/null +++ b/sapl/templates/parlamentares/mesadiretora_filter.html @@ -0,0 +1,63 @@ +{% extends "crud/list.html" %} +{% load i18n common_tags crispy_forms_tags cropping %} + +{% block container_table_list %} + {% if perms.add_mesadiretora %} + {{ block.super }} + {% else %} +
+ +
+ {% for md in object_list %} + {% if forloop.first or request.GET.mesadiretora == md.id|stringformat:"s" %} +
+ {% else %} +
+ {% endif %} + + + + + + + + + + + {% for p in md.composicaomesa_set.all %} + + {% if p.parlamentar.fotografia %} + + {% else %} + + {% endif %} + + + + + {% endfor %} + + +
+ {% endfor %} +
+ {% endif %} + +{% endblock container_table_list %}