moved bootstrap_messages on base template
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
{% load bootstrap3 %}{% bootstrap_messages %}
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
{% include "suivi/signalement_form.html" with form=signalement_form %}
|
{% include "suivi/signalement_form.html" with form=signalement_form %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
{% load bootstrap3 %}<li class="app-menu">
|
{% load bootstrap3 %}
|
||||||
|
<li class="app-menu">
|
||||||
<a href="{% url 'sujets:liste' %}">Liste des sujets
|
<a href="{% url 'sujets:liste' %}">Liste des sujets
|
||||||
<span class="pull-right">{% bootstrap_icon "list" %}</span></a>
|
<span class="pull-right">{% bootstrap_icon "list" %}</span></a>
|
||||||
</li>
|
</li>
|
||||||
{% if search_form %}
|
{% if search_form %}
|
||||||
<form class="navbar-form app-menu" method="POST" action="search/">
|
<form class="nav navbar-form app-menu text-center" method="POST" action="search/">
|
||||||
{% bootstrap_form search_form show_label=False %}
|
{% bootstrap_form search_form show_label=False %}
|
||||||
{% bootstrap_button 'Chercher' button_type='submit' %}
|
{% bootstrap_button 'Chercher' button_type='submit' %}
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -3,9 +3,11 @@
|
|||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
<head>
|
<head>
|
||||||
<title>{% block title %}La maraude{% endblock %}</title>
|
<title>{% block title %}La maraude{% endblock %}</title>
|
||||||
{# Load Bootstrap CSS and JavaScript #}{% bootstrap_css %}{% bootstrap_javascript %}
|
{% bootstrap_css %}{% bootstrap_javascript %}
|
||||||
{# Side Navbar from http://www.samrayner.com/bootstrap-side-navbar/inverse.html #}<link href="/static/bootstrap/navbar-fixed-side.css" rel="stylesheet" />
|
<!-- Side Navbar from http://www.samrayner.com/bootstrap-side-navbar/inverse.html -->
|
||||||
{% if stylesheets %}{% for stylesheet in stylesheets %}<link rel="stylesheet" type="text/css" href="{% static stylesheet %}" />{% endfor %}{% endif %}
|
<link href="/static/bootstrap/navbar-fixed-side.css" rel="stylesheet" />
|
||||||
|
{% if stylesheets %}{% for stylesheet in stylesheets %}
|
||||||
|
<link rel="stylesheet" type="text/css" href="{% static stylesheet %}" />{% endfor %}{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
@@ -15,6 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-sm-8 col-md-8 col-lg-10">
|
<div class="col-sm-8 col-md-8 col-lg-10">
|
||||||
<h1 class="page-header">{% block page_header %}{% endblock %}</h1>
|
<h1 class="page-header">{% block page_header %}{% endblock %}</h1>
|
||||||
|
{% bootstrap_messages %}
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}{{ page_title }}{% endblock %}
|
{% block title %}{{ page_title }}{% endblock %}
|
||||||
{% block page_header %}<span style="color:#980300;">{{ page_header }}</span> <small>{{ page_header_small }}</small>{% endblock %}
|
|
||||||
|
|
||||||
|
{% block page_header %}
|
||||||
|
<span style="color:#980300;">{{ page_header }}</span>
|
||||||
|
<small>{{ page_header_small }}</small>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}{% include content_template %}{% endblock %}
|
{% block content %}
|
||||||
|
{% include content_template %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user