From 83dfc0a2b11752c06f432f9a3065aee125f8546a Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Mon, 23 Jul 2018 11:14:00 +0530 Subject: [PATCH] Add Priority field in issue webform and portal (#14967) --- erpnext/support/web_form/issues/issues.json | 14 ++++++++++++- erpnext/templates/includes/issue_row.html | 23 ++++++++++++++++++--- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/erpnext/support/web_form/issues/issues.json b/erpnext/support/web_form/issues/issues.json index a8c7ab97e0..6d89d1180b 100644 --- a/erpnext/support/web_form/issues/issues.json +++ b/erpnext/support/web_form/issues/issues.json @@ -18,7 +18,7 @@ "is_standard": 1, "login_required": 1, "max_attachment_size": 0, - "modified": "2018-05-07 05:54:22.213127", + "modified": "2018-07-20 13:08:43.797886", "modified_by": "Administrator", "module": "Support", "name": "issues", @@ -84,6 +84,18 @@ "read_only": 0, "reqd": 0 }, + { + "default": "Medium", + "fieldname": "priority", + "fieldtype": "Select", + "hidden": 0, + "label": "Priority", + "max_length": 0, + "max_value": 0, + "options": "Low\nMedium\nHigh", + "read_only": 0, + "reqd": 1 + }, { "default": "1", "fieldname": "via_customer_portal", diff --git a/erpnext/templates/includes/issue_row.html b/erpnext/templates/includes/issue_row.html index eb5c0a4cc3..637fde26c5 100644 --- a/erpnext/templates/includes/issue_row.html +++ b/erpnext/templates/includes/issue_row.html @@ -5,12 +5,29 @@ {{ doc.name }} -
- {{ doc.subject }}
- +
+ {{ doc.subject }}
+
+ Medium + {% elif doc.priority == "Low" %} + yellow"> Low + {% else %} + red"> High + {% endif %} + {% elif doc.status == "Closed" %} + green"> Closed + {% else %} + darkgrey"> {{ doc.status }} + {% endif %} + +
{{ frappe.format_date(doc.modified) }}
+ \ No newline at end of file