Browse Source

Corrige menu em dispositivos mobile

pull/159/head
Sesostris Vieira 3 years ago
parent
commit
e6892fc7c2
  1. 4
      sigi/apps/casas/templates/casas/resumo_carteira_snippet.html
  2. 4
      sigi/apps/home/templates/home/dashboard/gerentes_snippet.html
  3. 4
      sigi/apps/home/templates/home/dashboard/resumo_seit.html
  4. 2
      sigi/static/js/dashboard.js
  5. 4
      sigi/templates/sigi/snippets/base_card_chart.html

4
sigi/apps/casas/templates/casas/resumo_carteira_snippet.html

@ -19,13 +19,13 @@
<div class="collapsible-body">
<ul>
<li>
<a href="{% url "casas-carteira" %}?servidor=_all&snippet={{ snippet }}&s={{ seletor }}" data-target="card-carteira">
<a class="dashlink" href="{% url "casas-carteira" %}?servidor=_all&snippet={{ snippet }}&s={{ seletor }}" data-target="card-carteira">
{% trans "Todo o Interlegis" %}
</a>
</li>
{% for g in gerentes %}
<li>
<a href="{% url "casas-carteira" %}?servidor={{ g.pk|safe }}&snippet={{ snippet }}&s={{ seletor }}" data-target="card-carteira">
<a class="dashlink" href="{% url "casas-carteira" %}?servidor={{ g.pk|safe }}&snippet={{ snippet }}&s={{ seletor }}" data-target="card-carteira">
{{g.nome_completo }}
</a>
</li>

4
sigi/apps/home/templates/home/dashboard/gerentes_snippet.html

@ -18,13 +18,13 @@
<div class="collapsible-body">
<ul>
<li>
<a href="{% url "home_chartperformance" %}?servidor=_all" data-target="performance-chart">
<a class="dashlink" href="{% url "home_chartperformance" %}?servidor=_all" data-target="performance-chart">
{% trans "Todo o Interlegis" %}
</a>
</li>
{% for g in gerentes %}
<li>
<a href="{% url "home_chartperformance" %}?servidor={{ g.pk|safe }}" data-target="performance-chart">
<a class="dashlink" href="{% url "home_chartperformance" %}?servidor={{ g.pk|safe }}" data-target="performance-chart">
{{g.nome_completo }}
</a>
</li>

4
sigi/apps/home/templates/home/dashboard/resumo_seit.html

@ -1,10 +1,10 @@
{% load static i18n %}
<div class="card-links">
<a class="waves-effect waves-light btn-small btn-flat btn-floating left" href="{% url "home_resumoseit" %}?ano={{ tabela_resumo_seit.mes_anterior.year|safe }}&mes={{ tabela_resumo_seit.mes_anterior.month|safe }}" aria-label="{% trans "Retroceder um mês" %}" data-target="card-resumoseit">
<a class="dashlink waves-effect waves-light btn-small btn-flat btn-floating left" href="{% url "home_resumoseit" %}?ano={{ tabela_resumo_seit.mes_anterior.year|safe }}&mes={{ tabela_resumo_seit.mes_anterior.month|safe }}" aria-label="{% trans "Retroceder um mês" %}" data-target="card-resumoseit">
<i class="material-icons left">chevron_left</i>
</a>
<a class="waves-effect waves-light btn-small btn-flat btn-floating right" href="{% url "home_resumoseit" %}?ano={{ tabela_resumo_seit.proximo_mes.year|safe }}&mes={{ tabela_resumo_seit.proximo_mes.month|safe }}" aria-label="{% trans "Avançar um mês" %}" data-target="card-resumoseit">
<a class="dashlink waves-effect waves-light btn-small btn-flat btn-floating right" href="{% url "home_resumoseit" %}?ano={{ tabela_resumo_seit.proximo_mes.year|safe }}&mes={{ tabela_resumo_seit.proximo_mes.month|safe }}" aria-label="{% trans "Avançar um mês" %}" data-target="card-resumoseit">
<i class="material-icons right">chevron_right</i>
</a>
</div>

2
sigi/static/js/dashboard.js

@ -17,7 +17,7 @@ function setlinks() {
$('.modal').modal();
$('.dropdown-trigger').dropdown();
$('.collapsible').collapsible();
$("a[data-target]").off('click').on('click', function(e) {
$("a.dashlink[data-target]").off('click').on('click', function(e) {
e.preventDefault();
var $this = $(this);
var target = $("#"+$this.attr('data-target'));

4
sigi/templates/sigi/snippets/base_card_chart.html

@ -5,10 +5,10 @@
{% if has_action_links %}
{% block action-links %}
<div id="{{ chart_name }}-action-links" class="card-links hide">
<a id="{{ chart_name }}-previlink" class="waves-effect waves-light btn-small btn-flat btn-floating left" href="#" data-target="{{ chart_name }}-chart">
<a id="{{ chart_name }}-previlink" class="dashlink waves-effect waves-light btn-small btn-flat btn-floating left" href="#" data-target="{{ chart_name }}-chart">
<i class="material-icons left">chevron_left</i>
</a>
<a id="{{ chart_name }}-nextlink" class="waves-effect waves-light btn-small btn-flat btn-floating right" href="#" data-target="{{ chart_name }}-chart">
<a id="{{ chart_name }}-nextlink" class="dashlink waves-effect waves-light btn-small btn-flat btn-floating right" href="#" data-target="{{ chart_name }}-chart">
<i class="material-icons right">chevron_right</i>
</a>
</div>

Loading…
Cancel
Save