blob: c6e07152321b6043082f25d1eff74351f1707c46 [file] [log] [blame]
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05301{% extends "outer.html" %}
2
3{% block title %}{{ title }}{% endblock %}
4
5{% block header %}
6 {{ super() }}
Rushabh Mehta96bf0b72012-06-15 17:29:03 +05307 {% if insert_code %}
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05308 <script>
9 window.page_name = "{{ name }}";
10
11 $(document).bind('app_ready', function() {
12 var _page = new wn.views.Page(window.page_name);
13
14 // page script
Anand Doshi72c945b2012-06-22 20:01:07 +053015 {% block javascript %}
Anand Doshi5d9fc722012-06-21 11:48:51 +053016 {{ javascript }}
Anand Doshi72c945b2012-06-22 20:01:07 +053017 {% endblock %}
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053018
19 // trigger onload
20 _page.trigger('onload');
21
22 // activate page
23 wn.container.change_to(window.page_name);
24 });
25 </script>
26 {% endif %}
Anand Doshi10bcf5e2012-06-26 18:54:10 +053027
28 {% block css %}
Rushabh Mehta96bf0b72012-06-15 17:29:03 +053029 {% if insert_style %}
Anand Doshi10bcf5e2012-06-26 18:54:10 +053030
Anand Doshi5d9fc722012-06-21 11:48:51 +053031 <style>{{ css }}</style>
Anand Doshi10bcf5e2012-06-26 18:54:10 +053032
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053033 {% endif %}
Anand Doshi10bcf5e2012-06-26 18:54:10 +053034 {% endblock %}
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053035{% endblock %}
36
37{% block content %}
38 {{ content }}
39{% endblock %}