2012-06-15 08:30:06 +00:00
|
|
|
{% extends "outer.html" %}
|
|
|
|
|
|
|
|
{% block title %}{{ title }}{% endblock %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
{{ super() }}
|
2012-06-15 11:59:03 +00:00
|
|
|
{% if insert_code %}
|
2012-06-15 08:30:06 +00:00
|
|
|
<script>
|
|
|
|
window.page_name = "{{ name }}";
|
|
|
|
|
|
|
|
$(document).bind('app_ready', function() {
|
|
|
|
var _page = new wn.views.Page(window.page_name);
|
|
|
|
|
|
|
|
// page script
|
2012-06-22 14:31:07 +00:00
|
|
|
{% block javascript %}
|
2012-06-21 06:18:51 +00:00
|
|
|
{{ javascript }}
|
2012-06-22 14:31:07 +00:00
|
|
|
{% endblock %}
|
2012-06-15 08:30:06 +00:00
|
|
|
|
|
|
|
// trigger onload
|
|
|
|
_page.trigger('onload');
|
|
|
|
|
|
|
|
// activate page
|
|
|
|
wn.container.change_to(window.page_name);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2012-06-26 13:24:10 +00:00
|
|
|
|
|
|
|
{% block css %}
|
2012-06-15 11:59:03 +00:00
|
|
|
{% if insert_style %}
|
2012-06-26 13:24:10 +00:00
|
|
|
|
2012-06-21 06:18:51 +00:00
|
|
|
<style>{{ css }}</style>
|
2012-06-26 13:24:10 +00:00
|
|
|
|
2012-06-15 08:30:06 +00:00
|
|
|
{% endif %}
|
2012-06-26 13:24:10 +00:00
|
|
|
{% endblock %}
|
2012-06-15 08:30:06 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{{ content }}
|
|
|
|
{% endblock %}
|