diff --git a/frappe/boot.py b/frappe/boot.py
index bd9f524c11..5b7e50183a 100644
--- a/frappe/boot.py
+++ b/frappe/boot.py
@@ -75,14 +75,23 @@ def load_conf_settings(bootinfo):
def add_allowed_pages(bootinfo):
roles = frappe.get_roles()
- bootinfo.page_info = dict(frappe.db.sql("""select distinct parent, modified from `tabPage Role`
- where role in (%s)""" % ', '.join(['%s']*len(roles)), roles))
+ bootinfo.page_info = {}
+ for p in frappe.db.sql("""select distinct
+ tabPage.name, tabPage.modified, tabPage.title
+ from `tabPage Role`, `tabPage`
+ where `tabPage Role`.role in (%s)
+ and `tabPage Role`.parent = `tabPage`.name""" % ', '.join(['%s']*len(roles)),
+ roles, as_dict=True):
+
+ bootinfo.page_info[p.name] = {"modified":p.modified, "title":p.title}
# pages where role is not set are also allowed
- bootinfo.page_info.update(dict(frappe.db.sql("""select parent, modified
+ for p in frappe.db.sql("""select name, modified, title
from `tabPage` where
(select count(*) from `tabPage Role`
- where `tabPage Role`.parent=tabPage.name) = 0""")))
+ where `tabPage Role`.parent=tabPage.name) = 0""", as_dict=1):
+
+ bootinfo.page_info[p.name] = {"modified":p.modified, "title":p.title}
def load_translations(bootinfo):
if frappe.local.lang != 'en':
diff --git a/frappe/cli.py b/frappe/cli.py
index e961a83b77..da9458dfe8 100755
--- a/frappe/cli.py
+++ b/frappe/cli.py
@@ -286,13 +286,26 @@ def install(db_name, root_login="root", root_password=None, source_sql=None,
from frappe.installer import install_db, install_app, make_site_dirs
verbose = not quiet
+ try:
+ installed = frappe.get_installed_apps()
+ except Exception, e:
+ if e.args[0]!= 1146:
+ raise
+ installed = []
+
install_db(root_login=root_login, root_password=root_password, db_name=db_name, source_sql=source_sql,
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
make_site_dirs()
install_app("frappe", verbose=verbose, set_as_patched=not source_sql)
+
if frappe.conf.get("install_apps"):
for app in frappe.conf.install_apps:
install_app(app, verbose=verbose, set_as_patched=not source_sql)
+
+ if installed:
+ for app in installed:
+ install_app(app, verbose=verbose, set_as_patched=not source_sql)
+
frappe.destroy()
@cmd
diff --git a/frappe/core/doctype/file_data/file_data.json b/frappe/core/doctype/file_data/file_data.json
index c52506c032..3ea9d69c9f 100644
--- a/frappe/core/doctype/file_data/file_data.json
+++ b/frappe/core/doctype/file_data/file_data.json
@@ -1,255 +1,254 @@
{
- "_last_update": null,
- "_user_tags": null,
- "allow_attach": null,
- "allow_copy": null,
- "allow_email": null,
- "allow_import": 1,
- "allow_print": null,
- "allow_rename": null,
- "allow_trash": null,
- "autoname": "File.######",
- "change_log": null,
- "client_script": null,
- "client_script_core": null,
- "client_string": null,
- "colour": null,
- "creation": "2012-12-12 11:19:22",
- "custom": null,
- "default_print_format": null,
- "description": null,
- "docstatus": 0,
- "doctype": "DocType",
- "document_type": null,
- "dt_template": null,
+ "_last_update": null,
+ "_user_tags": null,
+ "allow_attach": null,
+ "allow_copy": null,
+ "allow_email": null,
+ "allow_import": 1,
+ "allow_print": null,
+ "allow_rename": null,
+ "allow_trash": null,
+ "autoname": "File.######",
+ "change_log": null,
+ "client_script": null,
+ "client_script_core": null,
+ "client_string": null,
+ "colour": null,
+ "creation": "2012-12-12 11:19:22",
+ "custom": null,
+ "default_print_format": null,
+ "description": null,
+ "docstatus": 0,
+ "doctype": "DocType",
+ "document_type": null,
+ "dt_template": null,
"fields": [
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "file_name",
- "fieldtype": "Data",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": 1,
- "label": "File Name",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": "file_name",
- "oldfieldtype": "Data",
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": 1,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "file_name",
+ "fieldtype": "Data",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": 1,
+ "label": "File Name",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": "file_name",
+ "oldfieldtype": "Data",
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": 1,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "file_url",
- "fieldtype": "Data",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": 1,
- "label": "File URL",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": 1,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "file_url",
+ "fieldtype": "Data",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": 1,
+ "label": "File URL",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": 1,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "attached_to_doctype",
- "fieldtype": "Link",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": 1,
- "label": "Attached To DocType",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": "DocType",
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": 1,
- "report_hide": null,
- "reqd": null,
- "search_index": 1,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "attached_to_doctype",
+ "fieldtype": "Link",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": 1,
+ "label": "Attached To DocType",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": "DocType",
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": 1,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": 1,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "attached_to_name",
- "fieldtype": "Data",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": 1,
- "label": "Attached To Name",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": 1,
- "report_hide": null,
- "reqd": null,
- "search_index": 1,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "attached_to_name",
+ "fieldtype": "Data",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": 1,
+ "label": "Attached To Name",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": 1,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": 1,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "file_size",
- "fieldtype": "Int",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": 1,
- "label": "File Size",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": 1,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "file_size",
+ "fieldtype": "Int",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": 1,
+ "label": "File Size",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": 1,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "content_hash",
- "fieldtype": "Data",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Content Hash",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": 1,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "content_hash",
+ "fieldtype": "Data",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Content Hash",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": 1,
+ "set_only_once": null,
+ "trigger": null,
"width": null
}
- ],
- "hide_heading": null,
- "hide_toolbar": null,
- "icon": "icon-file",
- "idx": 1,
- "in_create": 1,
- "in_dialog": null,
- "is_submittable": null,
- "is_transaction_doc": null,
- "issingle": null,
- "istable": null,
- "max_attachments": null,
- "menu_index": null,
- "modified": "2014-04-16 09:28:02.979858",
- "modified_by": "Administrator",
- "module": "Core",
- "name": "File Data",
- "name_case": null,
- "owner": "Administrator",
- "parent": null,
- "parent_node": null,
- "parentfield": null,
- "parenttype": null,
+ ],
+ "hide_heading": null,
+ "hide_toolbar": null,
+ "icon": "icon-file",
+ "idx": 1,
+ "in_create": 1,
+ "in_dialog": null,
+ "is_submittable": null,
+ "is_transaction_doc": null,
+ "issingle": null,
+ "istable": null,
+ "max_attachments": null,
+ "menu_index": null,
+ "modified": "2014-04-16 09:28:02.979858",
+ "modified_by": "Administrator",
+ "module": "Core",
+ "name": "File Data",
+ "name_case": null,
+ "owner": "Administrator",
+ "parent": null,
+ "parent_node": null,
+ "parentfield": null,
+ "parenttype": null,
"permissions": [
{
- "amend": null,
- "cancel": 0,
- "create": 1,
- "delete": 1,
- "email": 1,
- "export": null,
- "import": null,
- "match": null,
- "permlevel": 0,
- "print": 1,
- "read": 1,
- "report": null,
- "restrict": null,
- "restricted": null,
- "role": "System Manager",
- "submit": null,
+ "amend": null,
+ "cancel": 0,
+ "create": 1,
+ "delete": 1,
+ "email": 1,
+ "export": null,
+ "import": null,
+ "match": null,
+ "permlevel": 0,
+ "print": 1,
+ "read": 1,
+ "report": null,
+ "restrict": null,
+ "restricted": null,
+ "role": "System Manager",
+ "submit": null,
"write": 1
}
- ],
- "plugin": null,
- "print_outline": null,
- "read_only": 0,
- "read_only_onload": null,
- "search_fields": null,
- "section_style": null,
- "server_code": null,
- "server_code_compiled": null,
- "server_code_core": null,
- "server_code_error": null,
- "show_in_menu": null,
- "smallicon": null,
- "subject": null,
- "tag_fields": null,
- "title_field": null,
- "use_template": null,
+ ],
+ "plugin": null,
+ "print_outline": null,
+ "read_only": 0,
+ "read_only_onload": null,
+ "search_fields": null,
+ "server_code": null,
+ "server_code_compiled": null,
+ "server_code_core": null,
+ "server_code_error": null,
+ "show_in_menu": null,
+ "smallicon": null,
+ "subject": null,
+ "tag_fields": null,
+ "title_field": null,
+ "use_template": null,
"version": null
-}
\ No newline at end of file
+}
diff --git a/frappe/core/doctype/module_def/module_def.json b/frappe/core/doctype/module_def/module_def.json
index b046c7057b..2f1a89a4e1 100644
--- a/frappe/core/doctype/module_def/module_def.json
+++ b/frappe/core/doctype/module_def/module_def.json
@@ -1,162 +1,161 @@
{
- "_last_update": null,
- "_user_tags": null,
- "allow_attach": null,
- "allow_copy": null,
- "allow_email": null,
- "allow_import": null,
- "allow_print": null,
- "allow_rename": 1,
- "allow_trash": null,
- "autoname": "field:module_name",
- "change_log": null,
- "client_script": null,
- "client_script_core": null,
- "client_string": null,
- "colour": null,
- "creation": "2013-01-10 16:34:03",
- "custom": null,
- "default_print_format": null,
- "description": null,
- "docstatus": 0,
- "doctype": "DocType",
- "document_type": null,
- "dt_template": null,
+ "_last_update": null,
+ "_user_tags": null,
+ "allow_attach": null,
+ "allow_copy": null,
+ "allow_email": null,
+ "allow_import": null,
+ "allow_print": null,
+ "allow_rename": 1,
+ "allow_trash": null,
+ "autoname": "field:module_name",
+ "change_log": null,
+ "client_script": null,
+ "client_script_core": null,
+ "client_string": null,
+ "colour": null,
+ "creation": "2013-01-10 16:34:03",
+ "custom": null,
+ "default_print_format": null,
+ "description": null,
+ "docstatus": 0,
+ "doctype": "DocType",
+ "document_type": null,
+ "dt_template": null,
"fields": [
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "module_name",
- "fieldtype": "Data",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": 1,
- "label": "Module Name",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": "module_name",
- "oldfieldtype": "Data",
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "module_name",
+ "fieldtype": "Data",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": 1,
+ "label": "Module Name",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": "module_name",
+ "oldfieldtype": "Data",
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "app_name",
- "fieldtype": "Data",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": 1,
- "label": "App Name",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": 1,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "app_name",
+ "fieldtype": "Data",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": 1,
+ "label": "App Name",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": 1,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
}
- ],
- "hide_heading": null,
- "hide_toolbar": null,
- "icon": "icon-sitemap",
- "idx": 1,
- "in_create": null,
- "in_dialog": null,
- "is_submittable": null,
- "is_transaction_doc": null,
- "issingle": null,
- "istable": null,
- "max_attachments": null,
- "menu_index": null,
- "modified": "2014-04-07 13:00:27.894115",
- "modified_by": "Administrator",
- "module": "Core",
- "name": "Module Def",
- "name_case": null,
- "owner": "Administrator",
- "parent": null,
- "parent_node": null,
- "parentfield": null,
- "parenttype": null,
+ ],
+ "hide_heading": null,
+ "hide_toolbar": null,
+ "icon": "icon-sitemap",
+ "idx": 1,
+ "in_create": null,
+ "in_dialog": null,
+ "is_submittable": null,
+ "is_transaction_doc": null,
+ "issingle": null,
+ "istable": null,
+ "max_attachments": null,
+ "menu_index": null,
+ "modified": "2014-04-07 13:00:27.894115",
+ "modified_by": "Administrator",
+ "module": "Core",
+ "name": "Module Def",
+ "name_case": null,
+ "owner": "Administrator",
+ "parent": null,
+ "parent_node": null,
+ "parentfield": null,
+ "parenttype": null,
"permissions": [
{
- "amend": 0,
- "cancel": 0,
- "create": 1,
- "delete": 1,
- "email": 1,
- "export": null,
- "import": null,
- "match": null,
- "permlevel": 0,
- "print": 1,
- "read": 1,
- "report": 1,
- "restrict": null,
- "restricted": null,
- "role": "Administrator",
- "submit": 0,
+ "amend": 0,
+ "cancel": 0,
+ "create": 1,
+ "delete": 1,
+ "email": 1,
+ "export": null,
+ "import": null,
+ "match": null,
+ "permlevel": 0,
+ "print": 1,
+ "read": 1,
+ "report": 1,
+ "restrict": null,
+ "restricted": null,
+ "role": "Administrator",
+ "submit": 0,
"write": 1
- },
+ },
{
- "amend": null,
- "cancel": null,
- "create": 1,
- "delete": 1,
- "email": null,
- "export": null,
- "import": null,
- "match": null,
- "permlevel": 0,
- "print": null,
- "read": 1,
- "report": null,
- "restrict": null,
- "restricted": null,
- "role": "System Manager",
- "submit": null,
+ "amend": null,
+ "cancel": null,
+ "create": 1,
+ "delete": 1,
+ "email": null,
+ "export": null,
+ "import": null,
+ "match": null,
+ "permlevel": 0,
+ "print": null,
+ "read": 1,
+ "report": null,
+ "restrict": null,
+ "restricted": null,
+ "role": "System Manager",
+ "submit": null,
"write": 1
}
- ],
- "plugin": null,
- "print_outline": null,
- "read_only": null,
- "read_only_onload": null,
- "search_fields": null,
- "section_style": null,
- "server_code": null,
- "server_code_compiled": null,
- "server_code_core": null,
- "server_code_error": null,
- "show_in_menu": null,
- "smallicon": null,
- "subject": null,
- "tag_fields": null,
- "title_field": null,
- "use_template": null,
+ ],
+ "plugin": null,
+ "print_outline": null,
+ "read_only": null,
+ "read_only_onload": null,
+ "search_fields": null,
+ "server_code": null,
+ "server_code_compiled": null,
+ "server_code_core": null,
+ "server_code_error": null,
+ "show_in_menu": null,
+ "smallicon": null,
+ "subject": null,
+ "tag_fields": null,
+ "title_field": null,
+ "use_template": null,
"version": null
-}
\ No newline at end of file
+}
diff --git a/frappe/installer.py b/frappe/installer.py
index 2dc37116d1..a9c8c7c2e4 100755
--- a/frappe/installer.py
+++ b/frappe/installer.py
@@ -94,7 +94,7 @@ def install_app(name, verbose=False, set_as_patched=True):
if name in installed_apps:
print "App Already Installed"
- frappe.msgprint(_("App Already Installed"))
+ frappe.msgprint("App {0} already installed".format(name))
return
if name != "frappe":
diff --git a/frappe/public/js/frappe/desk.js b/frappe/public/js/frappe/desk.js
index b538a5fbd2..5198032471 100644
--- a/frappe/public/js/frappe/desk.js
+++ b/frappe/public/js/frappe/desk.js
@@ -139,8 +139,8 @@ frappe.Application = Class.extend({
if(localStorage["page_info"]) {
frappe.boot.allowed_pages = [];
page_info = JSON.parse(localStorage["page_info"]);
- $.each(frappe.boot.page_info, function(name, modified) {
- if(page_info[name]!=modified) {
+ $.each(frappe.boot.page_info, function(name, p) {
+ if(page_info[name].modified != p.modified) {
delete localStorage["_page:" + name];
}
frappe.boot.allowed_pages.push(name);
diff --git a/frappe/public/js/frappe/ui/messages.js b/frappe/public/js/frappe/ui/messages.js
index 7b7184d50a..a70e52d30c 100644
--- a/frappe/public/js/frappe/ui/messages.js
+++ b/frappe/public/js/frappe/ui/messages.js
@@ -105,7 +105,7 @@ function msgprint(msg, title) {
}
// Floating Message
-function show_alert(txt, add_class) {
+function show_alert(txt, seconds) {
if(!$('#dialog-container').length) {
$('
').appendTo('body');
}
@@ -113,13 +113,13 @@ function show_alert(txt, add_class) {
$('
').appendTo('#dialog-container');
}
- var div = $('
')
+ var div = $('
')
.appendTo('#alert-container')
div.find('.close').click(function() {
$(this).parent().remove();
return false;
});
- div.delay(7000).fadeOut(500);
+ div.delay(seconds ? seconds * 1000 : 4000).fadeOut(300);
return div;
}
diff --git a/frappe/public/js/frappe/ui/toolbar/search.js b/frappe/public/js/frappe/ui/toolbar/search.js
index 2713d75646..52b8cb2151 100644
--- a/frappe/public/js/frappe/ui/toolbar/search.js
+++ b/frappe/public/js/frappe/ui/toolbar/search.js
@@ -33,24 +33,7 @@ frappe.search = {
frappe.search.options.sort(function(a, b) {
return a.match.length - b.match.length; });
- frappe.search.options.push({
- value: __("Help on Search"),
- onclick: function() {
- var txt = '
\
- | '+__("Make a new record")+' | '+
- __("new type of document")+' |
\
- | '+__("List a document type")+' | '+
- __("document type..., e.g. customer")+' |
\
- | '+__("Search in a document type")+' | '+
- __("text in document type")+' |
\
- | '+__("Open a module or tool")+' | '+
- __("module name...")+' |
\
- | '+__("Calculate")+' | '+
- __("e.g. (55 + 434) / 4 or =Math.sin(Math.PI/2)...")+' |
\
-
'
- msgprint(txt, "Search Help");
- }
- });
+ frappe.search.add_help();
response(frappe.search.options);
},
@@ -78,7 +61,36 @@ frappe.search = {
.data('item.autocomplete', d)
.html('
' + html + '
')
.appendTo(ul);
- };;
+ };
+
+ frappe.search.make_page_title_map();
+ },
+ add_help: function() {
+ frappe.search.options.push({
+ value: __("Help on Search"),
+ onclick: function() {
+ var txt = '
\
+ | '+__("Make a new record")+' | '+
+ __("new type of document")+' |
\
+ | '+__("List a document type")+' | '+
+ __("document type..., e.g. customer")+' |
\
+ | '+__("Search in a document type")+' | '+
+ __("text in document type")+' |
\
+ | '+__("Open a module or tool")+' | '+
+ __("module name...")+' |
\
+ | '+__("Calculate")+' | '+
+ __("e.g. (55 + 434) / 4 or =Math.sin(Math.PI/2)...")+' |
\
+
'
+ msgprint(txt, "Search Help");
+ }
+ });
+ },
+ make_page_title_map: function() {
+ frappe.search.pages = {};
+ $.each(frappe.boot.page_info, function(name, p) {
+ frappe.search.pages[p.title] = p;
+ p.name = name;
+ });
},
find: function(list, txt, process) {
var ret = null;
@@ -98,7 +110,7 @@ frappe.search.verbs = [
// search in list if current
function(txt) {
var route = frappe.get_route();
- if(route[0]==="List") {
+ if(route[0]==="List" && txt.indexOf(" in") === -1) {
frappe.search.options.push({
value: __('Find {0} in {1}', ["
"+txt+"", "
" + route[1] + ""]),
route_options: {"name": ["like", "%" + txt + "%"]},
@@ -135,10 +147,10 @@ frappe.search.verbs = [
// pages
function(txt) {
- frappe.search.find(keys(frappe.boot.page_info), txt, function(match) {
+ frappe.search.find(keys(frappe.search.pages), txt, function(match) {
return {
value: __("Open {0}", ["
"+match+""]),
- route: [match]
+ route: [frappe.search.pages[match].route || frappe.search.pages[match].name]
}
});
},
diff --git a/frappe/public/js/frappe/ui/toolbar/toolbar.js b/frappe/public/js/frappe/ui/toolbar/toolbar.js
index 4b999b6a0f..77eaaa8f6f 100644
--- a/frappe/public/js/frappe/ui/toolbar/toolbar.js
+++ b/frappe/public/js/frappe/ui/toolbar/toolbar.js
@@ -45,7 +45,7 @@ frappe.ui.toolbar.Toolbar = Class.extend({
placeholder="' + __("Search or type a command") + '" \
style="padding: 2px 6px; height: 24px; margin-top: 5px; \
margin-left: 10px; background-color: #ddd; \
- min-width: 250px; \
+ min-width: 230px; \
border-radius: 10px;">\
\
\
@@ -132,7 +132,7 @@ frappe.ui.toolbar.Toolbar = Class.extend({
},
set_user_name: function() {
$('#toolbar-user-name').html('
');
+ +frappe.user_info().image+'" style="max-width: 24px; max-height: 24px; margin: -2px 0px;">');
},
make_user_menu: function() {
diff --git a/frappe/public/js/frappe/views/grid_report.js b/frappe/public/js/frappe/views/grid_report.js
index fb36df5ace..9f684f9150 100644
--- a/frappe/public/js/frappe/views/grid_report.js
+++ b/frappe/public/js/frappe/views/grid_report.js
@@ -104,6 +104,7 @@ frappe.views.GridReport = Class.extend({
$.extend(this, opts);
this.wrapper = $('').appendTo(this.parent);
+ this.appframe.parent.find(".appframe").css({"padding-top": "0px"});
if(this.filters) {
this.make_filters();
@@ -353,8 +354,7 @@ frappe.views.GridReport = Class.extend({
this.round_off_data();
this.prepare_data_view();
// plot might need prepared data
- this.wrapper.find(".processing").toggle(true);
- this.wrapper.find(".processing").delay(2000).fadeOut(300);
+ show_alert("Updated", 2);
this.render();
this.render_plot && this.render_plot();
},
@@ -370,12 +370,6 @@ frappe.views.GridReport = Class.extend({
this.plot_area = $('
').appendTo(this.wrapper);
- // print / export
- $('
').appendTo(this.wrapper);
-
this.appframe.add_primary_action(__("Export"), function() { return me.export(); }, "icon-download");
// grid wrapper
diff --git a/frappe/website/doctype/web_page/web_page.json b/frappe/website/doctype/web_page/web_page.json
index 7abf288051..6e2052bde8 100644
--- a/frappe/website/doctype/web_page/web_page.json
+++ b/frappe/website/doctype/web_page/web_page.json
@@ -1,647 +1,646 @@
{
- "_last_update": null,
- "_user_tags": null,
- "allow_attach": 1,
- "allow_copy": null,
- "allow_email": null,
- "allow_import": null,
- "allow_print": null,
- "allow_rename": null,
- "allow_trash": null,
- "autoname": null,
- "change_log": null,
- "client_script": null,
- "client_script_core": null,
- "client_string": null,
- "colour": null,
- "creation": "2013-03-28 10:35:30",
- "custom": null,
- "default_print_format": null,
- "description": "Page to show on the website\n",
- "docstatus": 0,
- "doctype": "DocType",
- "document_type": "Transaction",
- "dt_template": null,
+ "_last_update": null,
+ "_user_tags": null,
+ "allow_attach": 1,
+ "allow_copy": null,
+ "allow_email": null,
+ "allow_import": null,
+ "allow_print": null,
+ "allow_rename": null,
+ "allow_trash": null,
+ "autoname": null,
+ "change_log": null,
+ "client_script": null,
+ "client_script_core": null,
+ "client_string": null,
+ "colour": null,
+ "creation": "2013-03-28 10:35:30",
+ "custom": null,
+ "default_print_format": null,
+ "description": "Page to show on the website\n",
+ "docstatus": 0,
+ "doctype": "DocType",
+ "document_type": "Transaction",
+ "dt_template": null,
"fields": [
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "section_title",
- "fieldtype": "Section Break",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Title",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "section_title",
+ "fieldtype": "Section Break",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Title",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": "Title / headline of your page",
- "fieldname": "title",
- "fieldtype": "Data",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Title",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": 1,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": "Title / headline of your page",
+ "fieldname": "title",
+ "fieldtype": "Data",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Title",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": 1,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": "Page url name (auto-generated)",
- "fieldname": "page_name",
- "fieldtype": "Data",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": 1,
- "label": "Page Name",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": 0,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": "Page url name (auto-generated)",
+ "fieldname": "page_name",
+ "fieldtype": "Data",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": 1,
+ "label": "Page Name",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": 0,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "parent_website_route",
- "fieldtype": "Link",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Parent Website Page",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": "Website Route",
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "parent_website_route",
+ "fieldtype": "Link",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Parent Website Page",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": "Website Route",
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "published",
- "fieldtype": "Check",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Published",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "published",
+ "fieldtype": "Check",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Published",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "cb1",
- "fieldtype": "Column Break",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": null,
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "cb1",
+ "fieldtype": "Column Break",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": null,
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": "50%"
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": "Description for page header.",
- "fieldname": "description",
- "fieldtype": "Small Text",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Description",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": "Description for page header.",
+ "fieldname": "description",
+ "fieldtype": "Small Text",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Description",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": "Page content",
- "fieldname": "sb1",
- "fieldtype": "Section Break",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Content",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": "Page content",
+ "fieldname": "sb1",
+ "fieldtype": "Section Break",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Content",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": "Begin this page with a slideshow of images",
- "fieldname": "slideshow",
- "fieldtype": "Link",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Slideshow",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": "Website Slideshow",
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": "Begin this page with a slideshow of images",
+ "fieldname": "slideshow",
+ "fieldtype": "Link",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Slideshow",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": "Website Slideshow",
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": "Content in markdown format that appears on the main side of your page",
- "fieldname": "main_section",
- "fieldtype": "Text Editor",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Main Section",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": "Content in markdown format that appears on the main side of your page",
+ "fieldname": "main_section",
+ "fieldtype": "Text Editor",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Main Section",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": "eval:!doc.__islocal",
- "description": "Link to other pages in the side bar and next section",
- "fieldname": "sb2",
- "fieldtype": "Section Break",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "More",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": "eval:!doc.__islocal",
+ "description": "Link to other pages in the side bar and next section",
+ "fieldname": "sb2",
+ "fieldtype": "Section Break",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "More",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": "HTML for header section. Optional",
- "fieldname": "header",
- "fieldtype": "Text",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Header",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": "HTML for header section. Optional",
+ "fieldname": "header",
+ "fieldtype": "Text",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Header",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "enable_comments",
- "fieldtype": "Check",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Enable Comments",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "enable_comments",
+ "fieldtype": "Check",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Enable Comments",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "text_align",
- "fieldtype": "Select",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Text Align",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": "Left\nCenter\nRight",
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "text_align",
+ "fieldtype": "Select",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Text Align",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": "Left\nCenter\nRight",
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "custom_javascript",
- "fieldtype": "Section Break",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Custom Javascript",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "custom_javascript",
+ "fieldtype": "Section Break",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Custom Javascript",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": "Add code as <script>",
- "fieldname": "insert_code",
- "fieldtype": "Check",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Insert Code",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": "Add code as <script>",
+ "fieldname": "insert_code",
+ "fieldtype": "Check",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Insert Code",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": "insert_code",
- "description": null,
- "fieldname": "javascript",
- "fieldtype": "Code",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Javascript",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": "Javascript",
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": "insert_code",
+ "description": null,
+ "fieldname": "javascript",
+ "fieldtype": "Code",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Javascript",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": "Javascript",
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "custom_css",
- "fieldtype": "Section Break",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Custom CSS",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "custom_css",
+ "fieldtype": "Section Break",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Custom CSS",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": null,
- "description": null,
- "fieldname": "insert_style",
- "fieldtype": "Check",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "Insert Style",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": null,
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": null,
+ "description": null,
+ "fieldname": "insert_style",
+ "fieldtype": "Check",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "Insert Style",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": null,
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
- },
+ },
{
- "allow_on_submit": null,
- "default": null,
- "depends_on": "insert_style",
- "description": null,
- "fieldname": "css",
- "fieldtype": "Code",
- "hidden": null,
- "ignore_restrictions": null,
- "in_filter": null,
- "in_list_view": null,
- "label": "CSS",
- "no_column": null,
- "no_copy": null,
- "oldfieldname": null,
- "oldfieldtype": null,
- "options": "CSS",
- "permlevel": 0,
- "print_hide": null,
- "print_width": null,
- "read_only": null,
- "report_hide": null,
- "reqd": null,
- "search_index": null,
- "set_only_once": null,
- "trigger": null,
+ "allow_on_submit": null,
+ "default": null,
+ "depends_on": "insert_style",
+ "description": null,
+ "fieldname": "css",
+ "fieldtype": "Code",
+ "hidden": null,
+ "ignore_restrictions": null,
+ "in_filter": null,
+ "in_list_view": null,
+ "label": "CSS",
+ "no_column": null,
+ "no_copy": null,
+ "oldfieldname": null,
+ "oldfieldtype": null,
+ "options": "CSS",
+ "permlevel": 0,
+ "print_hide": null,
+ "print_width": null,
+ "read_only": null,
+ "report_hide": null,
+ "reqd": null,
+ "search_index": null,
+ "set_only_once": null,
+ "trigger": null,
"width": null
}
- ],
- "hide_heading": null,
- "hide_toolbar": null,
- "icon": "icon-file-alt",
- "idx": 1,
- "in_create": null,
- "in_dialog": null,
- "is_submittable": null,
- "is_transaction_doc": null,
- "issingle": null,
- "istable": null,
- "max_attachments": 20,
- "menu_index": null,
- "modified": "2014-04-18 09:06:25.922741",
- "modified_by": "Administrator",
- "module": "Website",
- "name": "Web Page",
- "name_case": null,
- "owner": "Administrator",
- "parent": null,
- "parent_node": null,
- "parentfield": null,
- "parenttype": null,
+ ],
+ "hide_heading": null,
+ "hide_toolbar": null,
+ "icon": "icon-file-alt",
+ "idx": 1,
+ "in_create": null,
+ "in_dialog": null,
+ "is_submittable": null,
+ "is_transaction_doc": null,
+ "issingle": null,
+ "istable": null,
+ "max_attachments": 20,
+ "menu_index": null,
+ "modified": "2014-04-18 09:06:25.922741",
+ "modified_by": "Administrator",
+ "module": "Website",
+ "name": "Web Page",
+ "name_case": null,
+ "owner": "Administrator",
+ "parent": null,
+ "parent_node": null,
+ "parentfield": null,
+ "parenttype": null,
"permissions": [
{
- "amend": null,
- "cancel": 0,
- "create": 1,
- "delete": 1,
- "email": 1,
- "export": null,
- "import": null,
- "match": null,
- "permlevel": 0,
- "print": 1,
- "read": 1,
- "report": 1,
- "restrict": null,
- "restricted": null,
- "role": "Website Manager",
- "submit": 0,
+ "amend": null,
+ "cancel": 0,
+ "create": 1,
+ "delete": 1,
+ "email": 1,
+ "export": null,
+ "import": null,
+ "match": null,
+ "permlevel": 0,
+ "print": 1,
+ "read": 1,
+ "report": 1,
+ "restrict": null,
+ "restricted": null,
+ "role": "Website Manager",
+ "submit": 0,
"write": 1
}
- ],
- "plugin": null,
- "print_outline": null,
- "read_only": null,
- "read_only_onload": null,
- "search_fields": null,
- "section_style": null,
- "server_code": null,
- "server_code_compiled": null,
- "server_code_core": null,
- "server_code_error": null,
- "show_in_menu": null,
- "smallicon": null,
- "subject": null,
- "tag_fields": null,
- "title_field": null,
- "use_template": null,
+ ],
+ "plugin": null,
+ "print_outline": null,
+ "read_only": null,
+ "read_only_onload": null,
+ "search_fields": null,
+ "server_code": null,
+ "server_code_compiled": null,
+ "server_code_core": null,
+ "server_code_error": null,
+ "show_in_menu": null,
+ "smallicon": null,
+ "subject": null,
+ "tag_fields": null,
+ "title_field": null,
+ "use_template": null,
"version": null
-}
\ No newline at end of file
+}