mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
[added] web-forms
This commit is contained in:
0
erpnext/projects/web_form/__init__.py
Normal file
0
erpnext/projects/web_form/__init__.py
Normal file
0
erpnext/projects/web_form/tasks/__init__.py
Normal file
0
erpnext/projects/web_form/tasks/__init__.py
Normal file
3
erpnext/projects/web_form/tasks/tasks.js
Normal file
3
erpnext/projects/web_form/tasks/tasks.js
Normal file
@@ -0,0 +1,3 @@
|
||||
frappe.ready(function() {
|
||||
// bind events here
|
||||
})
|
||||
84
erpnext/projects/web_form/tasks/tasks.json
Normal file
84
erpnext/projects/web_form/tasks/tasks.json
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"allow_comments": 1,
|
||||
"allow_delete": 1,
|
||||
"allow_edit": 1,
|
||||
"allow_multiple": 1,
|
||||
"breadcrumbs": "[{\"title\":\"Tasks\", \"name\":\"tasks\"}]",
|
||||
"creation": "2016-06-24 15:50:33.091287",
|
||||
"doc_type": "Task",
|
||||
"docstatus": 0,
|
||||
"doctype": "Web Form",
|
||||
"idx": 0,
|
||||
"is_standard": 1,
|
||||
"login_required": 1,
|
||||
"modified": "2016-06-24 16:11:10.935835",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Projects",
|
||||
"name": "tasks",
|
||||
"owner": "Administrator",
|
||||
"published": 1,
|
||||
"route": "tasks",
|
||||
"success_url": "/projects?project=Collaborative Project Management",
|
||||
"title": "Task",
|
||||
"web_form_fields": [
|
||||
{
|
||||
"fieldname": "project",
|
||||
"fieldtype": "Link",
|
||||
"hidden": 0,
|
||||
"label": "Project",
|
||||
"options": "Project",
|
||||
"read_only": 1,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "subject",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 0,
|
||||
"label": "Subject",
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "status",
|
||||
"fieldtype": "Select",
|
||||
"hidden": 0,
|
||||
"label": "Status",
|
||||
"options": "Open\nClosed\nCancelled",
|
||||
"read_only": 0,
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "description",
|
||||
"fieldtype": "Text",
|
||||
"hidden": 0,
|
||||
"label": "Details",
|
||||
"read_only": 0,
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "priority",
|
||||
"fieldtype": "Select",
|
||||
"hidden": 0,
|
||||
"label": "Priority",
|
||||
"options": "Low\nMedium\nHigh\nUrgent",
|
||||
"read_only": 0,
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "exp_start_date",
|
||||
"fieldtype": "Date",
|
||||
"hidden": 0,
|
||||
"label": "Expected Start Date",
|
||||
"read_only": 0,
|
||||
"reqd": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "exp_end_date",
|
||||
"fieldtype": "Date",
|
||||
"hidden": 0,
|
||||
"label": "Expected End Date",
|
||||
"read_only": 0,
|
||||
"reqd": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
7
erpnext/projects/web_form/tasks/tasks.py
Normal file
7
erpnext/projects/web_form/tasks/tasks.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
|
||||
def get_context(context):
|
||||
# do your magic here
|
||||
pass
|
||||
Reference in New Issue
Block a user