added missing icons

This commit is contained in:
Rushabh Mehta
2012-02-06 16:28:06 +05:30
parent a7e68f7cd7
commit e651648b1b
6 changed files with 117 additions and 117 deletions

View File

@@ -125,7 +125,7 @@ pscript.make_ac_tree = function() {
var imgsrc=null; var imgsrc=null;
var has_children = true; var has_children = true;
if(cl[i].group_or_ledger=='Ledger') { if(cl[i].group_or_ledger=='Ledger') {
var imgsrc = 'lib/images/icons/page.gif'; var imgsrc = 'lib/images/icons/page.png';
has_children = false; has_children = false;
} }
var t = tree.addNode(n, cl[i].account_name, imgsrc,tree.std_onclick, has_children ? tree.std_onexp : null); var t = tree.addNode(n, cl[i].account_name, imgsrc,tree.std_onclick, has_children ? tree.std_onexp : null);
@@ -138,7 +138,7 @@ pscript.make_ac_tree = function() {
var imgsrc=null; var imgsrc=null;
var has_children = true; var has_children = true;
if(cl[i].group_or_ledger=='Ledger') { if(cl[i].group_or_ledger=='Ledger') {
var imgsrc = 'lib/images/icons/page.gif'; var imgsrc = 'lib/images/icons/page.png';
has_children = false; has_children = false;
} }
var t = tree.addNode(n, cl[i].cost_center_name, imgsrc,tree.std_onclick, has_children ? tree.std_onexp : null); var t = tree.addNode(n, cl[i].cost_center_name, imgsrc,tree.std_onclick, has_children ? tree.std_onexp : null);

View File

@@ -858,7 +858,7 @@ RoleObj.prototype.make_label = function(tbl, ridx, cidx, role){
var t = make_table($td(tbl, ridx, cidx),1,2,null,['16px', null],{marginRight:'5px'}); var t = make_table($td(tbl, ridx, cidx),1,2,null,['16px', null],{marginRight:'5px'});
var ic = $a($td(t,0,0), 'img','',{cursor:'pointer', marginRight:'5px'}); var ic = $a($td(t,0,0), 'img','',{cursor:'pointer', marginRight:'5px'});
ic.src= 'lib/images/icons/help.gif'; ic.src= 'lib/images/icons/help.png';
ic.role = role; ic.role = role;
ic.onclick = function(){ ic.onclick = function(){

View File

@@ -140,7 +140,7 @@ SalesBrowser.prototype.make_tree = function() {
var has_children = true; var has_children = true;
if(cl[i].is_group=='No') { if(cl[i].is_group=='No') {
var imgsrc = 'lib/images/icons/page.gif'; var imgsrc = 'lib/images/icons/page.png';
has_children = false; has_children = false;
} }
var t = me.tree.addNode(n, cl[i].name, imgsrc,me.tree.std_onclick, has_children ? me.tree.std_onexp : null); var t = me.tree.addNode(n, cl[i].name, imgsrc,me.tree.std_onclick, has_children ? me.tree.std_onexp : null);
@@ -220,7 +220,7 @@ SalesBrowser.prototype.first_level_node = function(){
var has_children = true; var has_children = true;
if(cl[i].is_group=='No') { if(cl[i].is_group=='No') {
var imgsrc = 'lib/images/icons/page.gif'; var imgsrc = 'lib/images/icons/page.png';
has_children = false; has_children = false;
} }
me.tree_area.innerHTML = ''; me.tree_area.innerHTML = '';

View File

@@ -5,245 +5,245 @@
{ {
'creation': '2012-01-30 16:21:29', 'creation': '2012-01-30 16:21:29',
'docstatus': 0, 'docstatus': 0,
'modified': '2012-01-31 13:46:23', 'modified': '2012-02-06 16:15:29',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1327995660', '_last_update': u'1327997783',
'allow_attach': 1, 'allow_attach': 1,
'autoname': 'field:item', 'autoname': u'field:item',
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'A Product is shown on the website and is linked to an item.', 'description': u'A Product is shown on the website and is linked to an item.',
'doctype': 'DocType', 'doctype': 'DocType',
'max_attachments': 5, 'max_attachments': 5,
'module': 'Website', 'module': u'Website',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 10 'version': 11
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Product', 'parent': u'Product',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Product', 'parent': u'Product',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1, 'read': 1,
'role': 'Website Manager' 'role': u'Website Manager'
}, },
# DocType, Product # DocType, Product
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Product' 'name': u'Product'
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 0, 'permlevel': 0,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item', 'fieldname': u'item',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Item', 'label': u'Item',
'options': 'Item', 'options': u'Item',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'title', 'fieldname': u'title',
'fieldtype': 'Link', 'fieldtype': u'Data',
'label': 'Title', 'label': u'Title',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'published', 'fieldname': u'published',
'fieldtype': 'Check', 'fieldtype': u'Check',
'label': 'Published', 'label': u'Published',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Select Price List for the web. Leave blank to hide price.', 'description': u'Select Price List for the web. Leave blank to hide price.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'price_list', 'fieldname': u'price_list',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Price List', 'label': u'Price List',
'options': 'Price List', 'options': u'Price List',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Select shipping warehouse to show "In Stock" or "Out of Stock". To hide, leave blank', 'description': u'Select shipping warehouse to show "In Stock" or "Out of Stock". To hide, leave blank',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'warehouse', 'fieldname': u'warehouse',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Warehouse', 'label': u'Warehouse',
'options': 'Warehouse', 'options': u'Warehouse',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Image for listing (Width: 100px) (Attach First)', 'description': u'Image for listing (Width: 100px) (Attach First)',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'thumbnail_image', 'fieldname': u'thumbnail_image',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Thumbnail Image', 'label': u'Thumbnail Image',
'options': 'attach_files:', 'options': u'attach_files:',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Image for listing (Width: 300px) (Attach First)', 'description': u'Image for listing (Width: 300px) (Attach First)',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'full_image', 'fieldname': u'full_image',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Full Image', 'label': u'Full Image',
'options': 'attach_files:', 'options': u'attach_files:',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'short_description', 'fieldname': u'short_description',
'fieldtype': 'Text', 'fieldtype': u'Text',
'label': 'Short Description', 'label': u'Short Description',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Full description (formatted as markdown)', 'description': u'Full description (formatted as markdown)',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'long_description', 'fieldname': u'long_description',
'fieldtype': 'Code', 'fieldtype': u'Code',
'label': 'Long Description', 'label': u'Long Description',
'permlevel': 0, 'permlevel': 0,
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'page_name', 'fieldname': u'page_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'label': 'Page Name', 'label': u'Page Name',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'price', 'fieldname': u'price',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'hidden': 0, 'hidden': 0,
'label': 'Price', 'label': u'Price',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'sales', 'fieldname': u'sales',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'label': 'Sales', 'label': u'Sales',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'stock', 'fieldname': u'stock',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'label': 'Stock', 'label': u'Stock',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'currency', 'fieldname': u'currency',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Currency', 'label': u'Currency',
'options': 'Currency', 'options': u'Currency',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'file_list', 'fieldname': u'file_list',
'fieldtype': 'Text', 'fieldtype': u'Text',
'hidden': 1, 'hidden': 1,
'label': 'File List', 'label': u'File List',
'no_copy': 1, 'no_copy': 1,
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1

View File

@@ -1 +1 @@
358 359

6
wnf.py
View File

@@ -50,13 +50,13 @@ def setup_options():
parser.add_option("-d", "--db", parser.add_option("-d", "--db",
dest="db_name", dest="db_name",
help="Apply the patches on given db") help="Apply the patches on given db")
parser.add_option('-r', '--reload_doc', nargs=3, metavar = "module doctype docname", parser.add_option('--reload_doc', nargs=3, metavar = "module doctype docname",
help="reload doc") help="reload doc")
return parser.parse_args() return parser.parse_args()
def run(): def run():
sys.path.append('.') sys.path.append('lib')
sys.path.append('lib/py') sys.path.append('lib/py')
import webnotes import webnotes
import webnotes.defs import webnotes.defs
@@ -122,7 +122,7 @@ def run():
# reload # reload
elif options.reload_doc: elif options.reload_doc:
webnotes.modules.patch_handler.reload_doc(\ webnotes.modules.patch_handler.reload_doc(\
{"module":args[0], "dt":args[1], "dn":args[2]}) {"module":options.reload_doc[0], "dt":options.reload_doc[1], "dn":options.reload_doc[2]})
print '\n'.join(webnotes.modules.patch_handler.log_list) print '\n'.join(webnotes.modules.patch_handler.log_list)
# run all pending # run all pending