added about us page and settings

This commit is contained in:
Rushabh Mehta
2012-12-27 16:50:24 +05:30
33 changed files with 571 additions and 316 deletions

View File

@@ -0,0 +1,18 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import webnotes
from website.utils import url_for_website
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
def onload(self):
"""load employee"""
emp_list = []
for d in self.doclist.get({"doctype":"About Us Team Member"}):
emp = webnotes.doc("Employee", d.employee)
emp.image = url_for_website(emp.image)
emp_list.append(emp)
self.doclist += emp_list

View File

@@ -0,0 +1,98 @@
[
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-27 14:24:35",
"modified_by": "Administrator",
"modified": "2012-12-27 15:51:11"
},
{
"issingle": 1,
"description": "Settings for the About Us Page",
"doctype": "DocType",
"module": "Website",
"document_type": "Master",
"name": "__common__"
},
{
"name": "__common__",
"parent": "About Us Settings",
"doctype": "DocField",
"parenttype": "DocType",
"permlevel": 0,
"parentfield": "fields"
},
{
"parent": "About Us Settings",
"read": 1,
"name": "__common__",
"create": 1,
"doctype": "DocPerm",
"write": 1,
"parenttype": "DocType",
"role": "Website Manager",
"permlevel": 0,
"parentfield": "permissions"
},
{
"name": "About Us Settings",
"doctype": "DocType"
},
{
"description": "Introduce your company to the website visitor.",
"doctype": "DocField",
"label": "Company Introduction",
"fieldname": "company_introduction",
"fieldtype": "Text Editor"
},
{
"doctype": "DocField",
"label": "Company History",
"fieldname": "sb0",
"fieldtype": "Section Break"
},
{
"description": "\"Company History\"",
"doctype": "DocField",
"label": "Company History Heading",
"fieldname": "company_history_heading",
"fieldtype": "Data"
},
{
"doctype": "DocField",
"label": "Company History",
"fieldname": "company_history",
"fieldtype": "Table",
"options": "Company History"
},
{
"doctype": "DocField",
"label": "Team Members",
"fieldname": "sb1",
"fieldtype": "Section Break"
},
{
"description": "\"Team Members\" or \"Management\"",
"doctype": "DocField",
"label": "Team Members Heading",
"fieldname": "team_members_heading",
"fieldtype": "Data"
},
{
"doctype": "DocField",
"label": "Team Members",
"fieldname": "team_members",
"fieldtype": "Table",
"options": "About Us Team Member"
},
{
"description": "More content for the bottom of the page.",
"doctype": "DocField",
"label": "Footer",
"fieldname": "footer",
"fieldtype": "Text Editor"
},
{
"doctype": "DocPerm"
}
]

View File

@@ -0,0 +1,8 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl

View File

@@ -0,0 +1,35 @@
[
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-27 14:28:45",
"modified_by": "Administrator",
"modified": "2012-12-27 14:49:44"
},
{
"istable": 1,
"name": "__common__",
"doctype": "DocType",
"module": "Website"
},
{
"parent": "About Us Team Member",
"doctype": "DocField",
"name": "__common__",
"label": "Employee",
"width": "300px",
"parenttype": "DocType",
"options": "Employee",
"fieldname": "employee",
"fieldtype": "Link",
"permlevel": 0,
"parentfield": "fields"
},
{
"name": "About Us Team Member",
"doctype": "DocType"
},
{
"doctype": "DocField"
}
]

View File

@@ -0,0 +1,8 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl

View File

@@ -0,0 +1,40 @@
[
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-27 14:25:38",
"modified_by": "Administrator",
"modified": "2012-12-27 14:25:38"
},
{
"istable": 1,
"name": "__common__",
"doctype": "DocType",
"module": "Website"
},
{
"name": "__common__",
"parent": "Company History",
"doctype": "DocField",
"parenttype": "DocType",
"permlevel": 0,
"parentfield": "fields"
},
{
"name": "Company History",
"doctype": "DocType"
},
{
"doctype": "DocField",
"label": "Year",
"fieldname": "year",
"fieldtype": "Data"
},
{
"doctype": "DocField",
"label": "Highlight",
"width": "300px",
"fieldname": "highlight",
"fieldtype": "Text"
}
]