added Search form, not working yet

This commit is contained in:
Arthur Gerbaud
2016-08-24 19:26:07 +02:00
parent 6405baa945
commit 9c8fa6ca1d
5 changed files with 63 additions and 5 deletions

View File

@@ -1,9 +1,14 @@
{% load bootstrap3 %}
<li class="app-menu">
{% load bootstrap3 %}<li class="app-menu">
<a href="{% url 'sujets:liste' %}">Liste des sujets
<span class="pull-right">{% bootstrap_icon "list" %}</span></a>
</li>
{% if user.is_superuser %}{% load bootstrap3 %}
{% if search_form %}
<form class="navbar-form app-menu" method="POST" action="search/">
{% bootstrap_form search_form show_label=False %}
{% bootstrap_button 'Chercher' button_type='submit' %}
</form>
{% endif %}
{% if user.is_superuser %}
<li class="dropdown app-menu">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Administration <b class="caret"></b>