[design] list views

This commit is contained in:
Rushabh Mehta
2015-01-05 17:38:48 +05:30
parent 9b955feff8
commit e1cb0ae738
53 changed files with 1587 additions and 1767 deletions

View File

@@ -63,7 +63,7 @@
"fieldname": "customer",
"fieldtype": "Link",
"in_filter": 1,
"in_list_view": 1,
"in_list_view": 0,
"label": "Customer",
"oldfieldname": "customer",
"oldfieldtype": "Link",
@@ -162,7 +162,7 @@
"fieldtype": "Select",
"hidden": 0,
"in_filter": 1,
"in_list_view": 1,
"in_list_view": 0,
"label": "Warranty / AMC Status",
"options": "\nUnder Warranty\nOut of Warranty\nUnder AMC\nOut of AMC",
"permlevel": 0
@@ -396,7 +396,7 @@
"icon": "icon-bug",
"idx": 1,
"is_submittable": 0,
"modified": "2015-01-01 14:30:00.857711",
"modified": "2015-01-05 16:21:50.525893",
"modified_by": "Administrator",
"module": "Support",
"name": "Customer Issue",
@@ -419,5 +419,6 @@
],
"search_fields": "status,customer,customer_name,territory",
"sort_field": "modified",
"sort_order": "DESC"
"sort_order": "DESC",
"title_field": "customer_name"
}

View File

@@ -1,24 +0,0 @@
<div class="row" style="max-height: 30px;">
<div class="col-xs-12">
<div class="text-ellipsis">
{%= list.get_avatar_and_id(doc) %}
<span style="margin-right: 8px;" class="filterable"
data-filter="customer,=,{%= doc.customer %}">
{%= doc.customer %}</span>
<span class="label
label-{%= frappe.utils.guess_style(doc.status) %} filterable"
data-filter="status,=,{%= doc.status %}">
{%= doc.status %}
</span>
{% if(doc.item_code) { %}
<span class="label label-default filterable"
data-filter="item_code,=,{%= doc.item_code %}">
{%= doc.item_code %}
</span>
{% } %}
</div>
</div>
</div>

View File

@@ -27,7 +27,7 @@
"fieldname": "subject",
"fieldtype": "Data",
"in_filter": 1,
"in_list_view": 1,
"in_list_view": 0,
"label": "Subject",
"permlevel": 0,
"report_hide": 0,
@@ -217,7 +217,7 @@
],
"icon": "icon-ticket",
"idx": 1,
"modified": "2014-11-28 12:11:31.275053",
"modified": "2015-01-05 16:16:58.927957",
"modified_by": "Administrator",
"module": "Support",
"name": "Issue",

View File

@@ -1,18 +0,0 @@
<div class="row" style="max-height: 30px;">
<div class="col-xs-10">
<div class="text-ellipsis">
{%= list.get_avatar_and_id(doc) %}
<span class="label label-{%= frappe.utils.guess_style(doc.status) %} filterable"
data-filter="status,=,{%= doc.status %}">
{%= doc.status %}
</span>
</div>
</div>
<div class="col-xs-2">
<div class="text-ellipsis">
<span class="filterable text-muted small" style="margin-right: 8px;"
data-filter="raised_by,=,{%= doc.raised_by %}">
{%= doc.raised_by %}</span>
</div>
</div>
</div>

View File

@@ -1,16 +1,15 @@
<div class="row" style="max-height: 30px;">
<div class="col-xs-10">
<div class="col-xs-12 col-sm-9">
<div class="text-ellipsis">
{%= list.get_avatar_and_id(doc) %}
<span class="label
label-{%= cint(doc.email_sent) ? "success" : "warning" %} filterable"
data-filter="email_sent,=,{%= cint(doc.email_sent) ? __("Yes") : __("No") %}">
{%= cint(doc.email_sent) ? __("Sent") : __("Not Sent") %}
</span>
<span class="label label-info filterable"
data-filter="send_to_type,=,{%= doc.send_to_type %}">
{%= doc.send_to_type %}
</span>
</div>
</div>
<div class="col-sm-3 hidden-xs">
{% if (!doc.email_sent) { %}
<span class="indicator orange filterable"
data-filter="email_sent,=,No">
{%= __("Not Sent") %}
</span>
{% } %}
</div>
</div>