Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 1 | {# |
| 2 | requires, brand, top_bar_items, footer_items, copyright, content |
| 3 | #} |
| 4 | |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 5 | {% extends "html/base.html" %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 6 | |
| 7 | {% block body %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 8 | <header> |
Rushabh Mehta | 1c8ab8a | 2012-12-10 14:56:45 +0530 | [diff] [blame] | 9 | </header> |
| 10 | <div id="body_div"> |
| 11 | <div class="navbar-wrapper"> |
Rushabh Mehta | e109fa4 | 2012-12-19 10:14:59 +0530 | [diff] [blame^] | 12 | <div class="navbar" |
Rushabh Mehta | 1c8ab8a | 2012-12-10 14:56:45 +0530 | [diff] [blame] | 13 | style="margin-bottom: 0px;"> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 14 | <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 Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 20 | <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 Mehta | 0a0be77 | 2012-09-05 13:48:45 +0530 | [diff] [blame] | 28 | data-toggle="dropdown" |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 29 | {% endif %} |
| 30 | {{ page.target or ''}}> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 31 | {{ page.label }} |
| 32 | {% if page.child_items %} |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 33 | <b class="caret"></b> |
| 34 | </a> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 35 | <ul class="dropdown-menu"> |
| 36 | {% for child in page.child_items %} |
| 37 | <li data-label="{{ child.label }}"> |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 38 | <a href="{{ child.url }}" {{ child.target or '' }}> |
| 39 | {{ child.label }} |
| 40 | </a> |
| 41 | </li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 42 | {% endfor %} |
| 43 | </ul> |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 44 | {% else %} |
| 45 | </a> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 46 | {% endif %} |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 47 | </li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 48 | {% endif %} |
| 49 | {% endfor %} |
| 50 | </ul> |
Rushabh Mehta | 55fd5f3 | 2012-09-26 19:00:02 +0530 | [diff] [blame] | 51 | <img src="lib/images/ui/spinner.gif" id="spinner"/> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 52 | <ul class="nav pull-right"> |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 53 | <li id="login-topbar-item"><a href="login.html">Login</a></li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 54 | </ul> |
| 55 | </div> |
| 56 | </div> |
Rushabh Mehta | 1c8ab8a | 2012-12-10 14:56:45 +0530 | [diff] [blame] | 57 | </div> |
| 58 | </div> |
| 59 | <script>$('.dropdown-toggle').dropdown()</script> |
| 60 | |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 61 | <div class="content" id="page-{{ name }}" style="display: block;"> |
| 62 | {% block content %} |
| 63 | {% endblock %} |
| 64 | </div> |
| 65 | </div> |
| 66 | <footer><div class="web-footer"> |
| 67 | <div class="web-footer-menu"><ul> |
| 68 | {% for item in footer_items %} |
| 69 | <li><a href="{{ item.url }}" {{ item.target }} |
| 70 | data-label="{{ item.label }}">{{ item.label }}</a></li> |
| 71 | {% endfor %} |
| 72 | </ul></div> |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 73 | {% if copyright %} |
Rushabh Mehta | c50f088 | 2012-12-10 18:25:30 +0530 | [diff] [blame] | 74 | <div class="web-footer-copyright">© {{ copyright }}</div> |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 75 | {% endif %} |
Rushabh Mehta | c50f088 | 2012-12-10 18:25:30 +0530 | [diff] [blame] | 76 | <div class="web-footer-powered">Powered by <a href="https://erpnext.com">ERPNext.com</a></div> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 77 | </div> |
| 78 | </footer> |
| 79 | |
| 80 | {% endblock %} |