blob: fcd65f955f8ddfbd3b6135047714f9575f12678e [file] [log] [blame]
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05301{#
2 requires, brand, top_bar_items, footer_items, copyright, content
3#}
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 Mehta60ec6ba2012-12-19 10:16:58 +053012 <div class="navbar navbar-inverse"
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">
16 <a class="brand" href="index.html">{{ brand }}</a>
17 <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>
64
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053065 <div class="content" id="page-{{ name }}" style="display: block;">
66 {% block content %}
67 {% endblock %}
68 </div>
69 </div>
70 <footer><div class="web-footer">
71 <div class="web-footer-menu"><ul>
72 {% for item in footer_items %}
73 <li><a href="{{ item.url }}" {{ item.target }}
74 data-label="{{ item.label }}">{{ item.label }}</a></li>
75 {% endfor %}
76 </ul></div>
Anand Doshi51146c02012-07-12 18:41:12 +053077 {% if copyright %}
Rushabh Mehtac50f0882012-12-10 18:25:30 +053078 <div class="web-footer-copyright">&copy; {{ copyright }}</div>
Anand Doshi51146c02012-07-12 18:41:12 +053079 {% endif %}
Rushabh Mehtac50f0882012-12-10 18:25:30 +053080 <div class="web-footer-powered">Powered by <a href="https://erpnext.com">ERPNext.com</a></div>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053081 </div>
82 </footer>
83
84{% endblock %}