brotherton-erpnext/website/templates/html/page.html

36 lines
607 B
HTML
Raw Normal View History

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