blob: 322ce6048957924f904e033010819c96ec6fad32 [file] [log] [blame]
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05301{#
Rushabh Mehta7edf8992012-12-25 18:18:17 +05302 requires, brand_html, top_bar_items, footer_items, copyright, content, address
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05303#}
4
Anand Doshi51146c02012-07-12 18:41:12 +05305{% extends "html/base.html" %}
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05306
7{% block body %}
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05308 <header>
Rushabh Mehta1c8ab8a2012-12-10 14:56:45 +05309 </header>
10 <div id="body_div">
11 <div class="navbar-wrapper">
Rushabh Mehta5f1d57e2012-12-27 14:05:02 +053012 <div class="navbar{% if top_bar_background=="Black" %} navbar-inverse{% endif %}"
Rushabh Mehta1c8ab8a2012-12-10 14:56:45 +053013 style="margin-bottom: 0px;">
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053014 <div class="navbar-inner">
15 <div class="container">
Rushabh Mehta7edf8992012-12-25 18:18:17 +053016 <a class="brand" href="index.html">{{ brand_html }}</a>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053017 <ul class="nav">
18 {% for page in top_bar_items %}
19 {% if not page.parent_label %}
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053020 <li data-label="{{ page.label }}"
21 {% if page.child_items %}
22 class="dropdown"
23 {% endif %}>
24 <a href="{{ page.url or '#' }}"
25 {% if page.child_items %}
26 class="dropdown-toggle"
27 onclick="return false;"
Rushabh Mehta0a0be772012-09-05 13:48:45 +053028 data-toggle="dropdown"
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053029 {% endif %}
30 {{ page.target or ''}}>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053031 {{ page.label }}
32 {% if page.child_items %}
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053033 <b class="caret"></b>
34 </a>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053035 <ul class="dropdown-menu">
36 {% for child in page.child_items %}
37 <li data-label="{{ child.label }}">
Rushabh Mehtafc19f252012-12-20 17:11:51 +053038 <a {% if child.indent %}
39 style="padding-left:
40 {{(int(child.indent)+1)*15 }}px"
41 {% endif %}
42 href="{{ child.url }}" {{ child.target or '' }}>
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053043 {{ child.label }}
44 </a>
45 </li>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053046 {% endfor %}
47 </ul>
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053048 {% else %}
49 </a>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053050 {% endif %}
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053051 </li>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053052 {% endif %}
53 {% endfor %}
54 </ul>
Rushabh Mehta55fd5f32012-09-26 19:00:02 +053055 <img src="lib/images/ui/spinner.gif" id="spinner"/>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053056 <ul class="nav pull-right">
Anand Doshi51146c02012-07-12 18:41:12 +053057 <li id="login-topbar-item"><a href="login.html">Login</a></li>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053058 </ul>
59 </div>
60 </div>
Rushabh Mehta1c8ab8a2012-12-10 14:56:45 +053061 </div>
62 </div>
63 <script>$('.dropdown-toggle').dropdown()</script>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053064 <div class="content" id="page-{{ name }}" style="display: block;">
65 {% block content %}
66 {% endblock %}
67 </div>
68 </div>
69 <footer><div class="web-footer">
70 <div class="web-footer-menu"><ul>
71 {% for item in footer_items %}
72 <li><a href="{{ item.url }}" {{ item.target }}
73 data-label="{{ item.label }}">{{ item.label }}</a></li>
74 {% endfor %}
75 </ul></div>
Anand Doshi51146c02012-07-12 18:41:12 +053076 {% if copyright %}
Rushabh Mehtac50f0882012-12-10 18:25:30 +053077 <div class="web-footer-copyright">&copy; {{ copyright }}</div>
Anand Doshi51146c02012-07-12 18:41:12 +053078 {% endif %}
Rushabh Mehta7edf8992012-12-25 18:18:17 +053079 {% if address %}
80 {{ address }}
81 {% endif %}
82 <p><a style="font-size: 90%;" href="attributions.html">ERPNext Powered</a></p>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053083 </div>
84 </footer>
85
86{% endblock %}