Browse Source

Adiciona separadores no menu do sistema

pull/172/head
Sesóstris Vieira 9 months ago
parent
commit
0c4b3601b2
  1. 12
      sigi/apps/home/templates/menus/menu.html
  2. 3
      sigi/static/css/dashboard.css

12
sigi/apps/home/templates/menus/menu.html

@ -14,11 +14,23 @@
{% else %}
{% url child.view_name as item_url %}
{% endif %}
{% if 'before' in child.separator %}
<hr/>
{% endif %}
<div{% if item_url in request.path and child.querystr == None or child.querystr in request.get_full_path %} class="active"{% endif %}>
<a href="{{ item_url }}{% if child.querystr %}?{{ child.querystr }}{% endif %}">{{ child.title }}</a>
</div>
{% if 'after' in child.separator %}
<hr/>
{% endif %}
{% else %}
{% if 'before' in child.separator %}
<hr/>
{% endif %}
<div class="disabled"><a href="#" class="disabled">{{ child.title }}</a></div>
{% if 'after' in child.separator %}
<hr/>
{% endif %}
{% endif %}
{% endfor %}
</div>

3
sigi/static/css/dashboard.css

@ -130,4 +130,7 @@ table.numeros>tbody>tr>td {
.xlsx-download {
height: 24px;
}
.collapsible-body>hr {
height: 1px;
}
Loading…
Cancel
Save