Add Priority field in issue webform and portal (#14967)
This commit is contained in:
parent
789ad180ea
commit
83dfc0a2b1
@ -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",
|
||||
|
@ -5,12 +5,29 @@
|
||||
<span class="indicator {{ "red" if doc.status=="Open" else "darkgrey" }}">
|
||||
{{ doc.name }}</span>
|
||||
</div>
|
||||
<div class="col-xs-6 items-preview ellipsis ellipsis-width">
|
||||
{{ doc.subject }}</div>
|
||||
|
||||
<div class="col-xs-5 items-preview ellipsis ellipsis-width">
|
||||
{{ doc.subject }}</div>
|
||||
<div class="col-xs-2 text-muted">
|
||||
<span class="indicator
|
||||
{% if doc.status == "Open" %}
|
||||
{% if doc.priority == "Medium" %}
|
||||
orange"> Medium
|
||||
{% elif doc.priority == "Low" %}
|
||||
yellow"> Low
|
||||
{% else %}
|
||||
red"> High
|
||||
{% endif %}
|
||||
{% elif doc.status == "Closed" %}
|
||||
green"> Closed
|
||||
{% else %}
|
||||
darkgrey"> {{ doc.status }}
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-xs-3 text-right small text-muted">
|
||||
{{ frappe.format_date(doc.modified) }}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user