Moved sidebar block menu for 'maraudes' and 'notes' inside a dropdown in navbar
This commit is contained in:
@@ -6,9 +6,3 @@
|
|||||||
<li><a href="{% url "maraudes:index" %}">{{ date }}</a></li>
|
<li><a href="{% url "maraudes:index" %}">{{ date }}</a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block sidebar %}
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-body">
|
|
||||||
{% include "maraudes/menu.html" %}
|
|
||||||
</div>
|
|
||||||
</div>{% endblock %}
|
|
||||||
|
|||||||
@@ -1,25 +1,31 @@
|
|||||||
{% load navbar %}
|
{% load navbar %}
|
||||||
<ul class="nav nav-pills nav-stacked text-right">
|
<ul class="dropdown-menu">
|
||||||
<li role="presentation" {% active namespace="maraudes" viewname="index" %}>
|
<li role="presentation" {% active namespace="maraudes" viewname="index" %}>
|
||||||
<a href="{% url "maraudes:index" %}">Tableau de bord
|
<a href="{% url "maraudes:index" %}">
|
||||||
<span class="glyphicon glyphicon-dashboard"></span>
|
<span class="glyphicon glyphicon-dashboard"></span>
|
||||||
|
Tableau de bord
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation" {% active namespace="maraudes" viewname="create" %}
|
<li role="presentation" {% active namespace="maraudes" viewname="create" %}
|
||||||
{% if not prochaine_maraude.date == date %} class="disabled">
|
{% if not prochaine_maraude.date == date %} class="disabled">
|
||||||
<a href="#">Compte-rendu
|
<a href="#">
|
||||||
<span class="glyphicon glyphicon-pencil"></span></a>
|
<span class="glyphicon glyphicon-pencil"></span>
|
||||||
|
Compte-rendu
|
||||||
|
</a>
|
||||||
</li> {% else %}>
|
</li> {% else %}>
|
||||||
<a href="{% if prochaine_maraude.est_terminee %}
|
<a href="{% if prochaine_maraude.est_terminee %}
|
||||||
{% url 'notes:details-maraude' pk=prochaine_maraude.pk %}
|
{% url 'notes:details-maraude' pk=prochaine_maraude.pk %}
|
||||||
{%else%}
|
{%else%}
|
||||||
{% url 'maraudes:create' pk=prochaine_maraude.pk %}
|
{% url 'maraudes:create' pk=prochaine_maraude.pk %}
|
||||||
{% endif %}">Compte-rendu
|
{% endif %}">
|
||||||
<span class="glyphicon glyphicon-pencil"></span></a>
|
<span class="glyphicon glyphicon-pencil"></span>
|
||||||
|
Compte-rendu
|
||||||
|
</a>
|
||||||
</li> {% endif %}
|
</li> {% endif %}
|
||||||
<li role="presentation" {% active namespace="maraudes" viewname="planning" %}>
|
<li role="presentation" {% active namespace="maraudes" viewname="planning" %}>
|
||||||
<a href="{% url "maraudes:planning" %}">Planning
|
<a href="{% url "maraudes:planning" %}">
|
||||||
<span class="glyphicon glyphicon-calendar"></span>
|
<span class="glyphicon glyphicon-calendar"></span>
|
||||||
|
Planning
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -7,8 +7,4 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
<div class="panel panel-default">
|
{% endblock %}
|
||||||
<div class="panel-body">
|
|
||||||
{% include "notes/menu.html" %}
|
|
||||||
</div>
|
|
||||||
</div>{% endblock %}
|
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
{% load navbar %}
|
{% load navbar %}
|
||||||
<ul class="nav nav-pills nav-stacked text-right">
|
<ul class="dropdown-menu">
|
||||||
<li role="presentation" {% active namespace="notes" viewname="liste-sujet" %}>
|
<li {% active namespace="notes" viewname="liste-sujet" %}>
|
||||||
<a href="{% url "notes:liste-sujet" %}">Par sujet
|
<a href="{% url "notes:liste-sujet" %}">
|
||||||
<span class="glyphicon glyphicon-user"></span>
|
<span class="glyphicon glyphicon-user"></span>
|
||||||
|
Par sujet
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation" {% active namespace="notes" viewname="liste-maraude" %}>
|
<li {% active namespace="notes" viewname="liste-maraude" %}>
|
||||||
<a href="{% url "notes:liste-maraude" %}">Par maraude
|
<a href="{% url "notes:liste-maraude" %}">
|
||||||
<span class="glyphicon glyphicon-road"></span>
|
<span class="glyphicon glyphicon-road"></span>
|
||||||
|
Par maraude
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -30,8 +30,14 @@
|
|||||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||||
<ul class="nav navbar-nav navbar-left">
|
<ul class="nav navbar-nav navbar-left">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li {% active namespace="maraudes" %}><a href="{% url "maraudes:index" %}">{% bootstrap_icon "road" %} Maraudes</a></li>
|
<li class="dropdown">
|
||||||
<li {% active namespace="notes" %}><a href="{% url "notes:index" %}">{% bootstrap_icon "pencil" %} Notes</a></li>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{% bootstrap_icon "road" %} Maraudes</span></a>
|
||||||
|
{% include "maraudes/menu.html" %}
|
||||||
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{% bootstrap_icon "pencil" %} Notes</span></a>
|
||||||
|
{% include "notes/menu.html" %}
|
||||||
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li {% active namespace="statistiques" %}><a href="{% url "statistiques:index" %}">{% bootstrap_icon "stats" %} Statistiques</a></li>
|
<li {% active namespace="statistiques" %}><a href="{% url "statistiques:index" %}">{% bootstrap_icon "stats" %} Statistiques</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user