added module pages and other css updates

This commit is contained in:
Rushabh Mehta
2012-02-21 17:26:50 +05:30
parent 6e156c748b
commit d025133b39
38 changed files with 1029 additions and 149 deletions

View File

@@ -14,7 +14,7 @@ erpnext.navbar.navbar = Class.extend({
$('.brand').html(wn.boot.website_settings.brand_html);
this.make_items();
$('.dropdown-toggle').dropdown();
pull-right },
},
make: function() {
$('header').append('<div class="navbar navbar-fixed-top">\
<div class="navbar-inner">\
@@ -54,7 +54,11 @@ pull-right },
$parent_li.addClass('dropdown');
$parent_li.find('a:first').addClass('dropdown-toggle')
.attr('data-toggle', 'dropdown')
.append('<b class="caret"></b>');
.attr('href', '')
.append('<b class="caret"></b>')
.click(function() {
return false;
});
$parent_li.append('<ul class="dropdown-menu"></ul>');
}
item.route = item.url || item.custom_page;
@@ -79,6 +83,7 @@ erpnext.Footer = Class.extend({
this.make_items();
},
make_items: function() {
alert(16);
var items = wn.boot.website_menus
for(var i=0;i<items.length;i++) {
var item = items[i];

View File

@@ -0,0 +1,28 @@
# Page, website-home
[
# These values are common in all dictionaries
{
'creation': '2012-02-21 13:23:51',
'docstatus': 0,
'modified': '2012-02-21 13:23:51',
'modified_by': u'Administrator',
'owner': u'Administrator'
},
# These values are common for all Page
{
'doctype': 'Page',
'module': u'Website',
'name': '__common__',
'page_name': u'website-home',
'standard': u'Yes',
'title': u'Website Home'
},
# Page, website-home
{
'doctype': 'Page',
'name': u'website-home'
}
]