diff --git a/frappe/__init__.py b/frappe/__init__.py
index 91f2a06eaa..b42e8cc114 100644
--- a/frappe/__init__.py
+++ b/frappe/__init__.py
@@ -13,7 +13,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template
-__version__ = '8.0.5'
+__version__ = '8.0.6'
__title__ = "Frappe Framework"
local = Local()
diff --git a/frappe/custom/doctype/custom_script/custom_script.json b/frappe/custom/doctype/custom_script/custom_script.json
index 8485f0fe86..644fcb7986 100644
--- a/frappe/custom/doctype/custom_script/custom_script.json
+++ b/frappe/custom/doctype/custom_script/custom_script.json
@@ -1,5 +1,6 @@
{
"allow_copy": 0,
+ "allow_guest_to_view": 0,
"allow_import": 1,
"allow_rename": 0,
"autoname": "CustomScript.####",
@@ -24,6 +25,7 @@
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
+ "in_global_search": 0,
"in_list_view": 1,
"in_standard_filter": 1,
"label": "DocType",
@@ -55,6 +57,7 @@
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
+ "in_global_search": 0,
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Script Type",
@@ -84,8 +87,9 @@
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
- "in_filter": 0,
- "in_list_view": 1,
+ "in_filter": 0,
+ "in_global_search": 0,
+ "in_list_view": 0,
"in_standard_filter": 0,
"label": "Script",
"length": 0,
@@ -115,6 +119,7 @@
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
+ "in_global_search": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"label": "Sample",
@@ -133,19 +138,19 @@
"unique": 0
}
],
+ "has_web_view": 0,
"hide_heading": 0,
"hide_toolbar": 0,
"icon": "fa fa-glass",
"idx": 1,
"image_view": 0,
"in_create": 0,
- "in_dialog": 0,
"is_submittable": 0,
"issingle": 0,
"istable": 0,
"max_attachments": 0,
- "modified": "2016-12-29 14:40:24.037012",
- "modified_by": "Administrator",
+ "modified": "2017-04-03 18:07:28.138437",
+ "modified_by": "faris@erpnext.com",
"module": "Custom",
"name": "Custom Script",
"owner": "Administrator",
@@ -160,7 +165,6 @@
"export": 0,
"if_owner": 0,
"import": 0,
- "is_custom": 0,
"permlevel": 0,
"print": 1,
"read": 1,
@@ -181,7 +185,6 @@
"export": 0,
"if_owner": 0,
"import": 0,
- "is_custom": 0,
"permlevel": 0,
"print": 1,
"read": 1,
@@ -196,7 +199,8 @@
"quick_entry": 0,
"read_only": 0,
"read_only_onload": 0,
+ "show_name_in_global_search": 0,
"sort_order": "ASC",
"track_changes": 1,
"track_seen": 0
-}
\ No newline at end of file
+}
diff --git a/frappe/geo/country_info.json b/frappe/geo/country_info.json
index d92b65afa1..deac9f2532 100644
--- a/frappe/geo/country_info.json
+++ b/frappe/geo/country_info.json
@@ -846,7 +846,7 @@
"currency_fraction": "Cent",
"currency_fraction_units": 100,
"currency_symbol": "\u20ac",
- "number_format": "#,###.##",
+ "number_format": "# ###,##",
"timezones": [
"Europe/Paris"
]
diff --git a/frappe/public/build.json b/frappe/public/build.json
index 1eb86dc32a..fd32fceae6 100755
--- a/frappe/public/build.json
+++ b/frappe/public/build.json
@@ -139,6 +139,7 @@
"public/js/frappe/ui/toolbar/search.js",
"public/js/frappe/ui/toolbar/search.html",
"public/js/frappe/ui/toolbar/search_header.html",
+ "public/js/frappe/ui/toolbar/search_utils.js",
"public/js/frappe/ui/toolbar/about.js",
"public/js/frappe/ui/toolbar/navbar.html",
"public/js/frappe/ui/toolbar/toolbar.js",
@@ -213,7 +214,7 @@
],
"js/list.min.js": [
"public/js/frappe/ui/listing.html",
-
+
"public/js/frappe/ui/base_list.js",
"public/js/frappe/model/indicator.js",
@@ -238,7 +239,7 @@
"public/js/frappe/list/list_item_row_head.html",
"public/js/frappe/list/list_item_subject.html",
"public/js/frappe/list/list_permission_footer.html",
-
+
"public/js/frappe/list/list_renderer.js",
"public/js/frappe/views/gantt/gantt_view.js",
"public/js/frappe/views/calendar/calendar.js",
@@ -256,7 +257,7 @@
"public/js/frappe/views/inbox/inbox_no_result.html",
"public/js/frappe/views/inbox/inbox_view_item_row.html",
"public/js/frappe/views/inbox/inbox_view_item_main_head.html",
-
+
"public/js/frappe/views/kanban/kanban_board.html",
"public/js/frappe/views/kanban/kanban_column.html",
"public/js/frappe/views/kanban/kanban_card.html"
diff --git a/frappe/public/css/desk.css b/frappe/public/css/desk.css
index 15009748f7..e2fe3a6d14 100644
--- a/frappe/public/css/desk.css
+++ b/frappe/public/css/desk.css
@@ -677,13 +677,100 @@ fieldset[disabled] .form-control {
}
.search-dialog .modal-dialog {
width: 768px;
- height: 500px;
+}
+.search-dialog .search-header {
+ display: flex;
+ align-items: center;
+ padding: 5px;
}
.search-dialog .modal-body {
padding: 0px 15px;
}
-.search-dialog input.form-control,
-.search-dialog .input-group-addon {
+.search-dialog .empty-state {
+ color: #d4d9dd;
+ height: 500px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+}
+.search-dialog .empty-state .status-icon {
+ font-size: 40px;
+ position: relative;
+ margin-bottom: 10px;
+}
+.search-dialog .empty-state p {
+ font-size: 15px;
+ display: block;
+}
+.search-dialog .empty-state .cover {
+ color: white;
+ font-size: 6px;
+ position: absolute;
+}
+@keyframes twinkle {
+ 0% {
+ opacity: 1;
+ }
+ 50% {
+ opacity: 0;
+ }
+ 100% {
+ opacity: 1;
+ }
+}
+@-o-keyframes twinkle {
+ 0% {
+ opacity: 1;
+ }
+ 50% {
+ opacity: 0;
+ }
+ 100% {
+ opacity: 1;
+ }
+}
+@-moz-keyframes twinkle {
+ 0% {
+ opacity: 1;
+ }
+ 50% {
+ opacity: 0;
+ }
+ 100% {
+ opacity: 1;
+ }
+}
+@-webkit-keyframes twinkle {
+ 0% {
+ opacity: 1;
+ }
+ 50% {
+ opacity: 0;
+ }
+ 100% {
+ opacity: 1;
+ }
+}
+.search-dialog .twinkle-one {
+ -webkit-animation: twinkle 1.5s ease infinite;
+ -moz-animation: twinkle 1.5s ease infinite;
+ -o-animation: twinkle 1.5s ease infinite;
+ animation: twinkle 1.5s ease infinite;
+}
+.search-dialog .twinkle-two {
+ -webkit-animation: twinkle 1.5s ease infinite 0.5s;
+ -moz-animation: twinkle 1.5s ease infinite 0.5s;
+ -o-animation: twinkle 1.5s ease infinite 0.5s;
+ animation: twinkle 1.5s ease infinite 0.5s;
+}
+.search-dialog .twinkle-three {
+ -webkit-animation: twinkle 1.5s ease infinite 1s;
+ -moz-animation: twinkle 1.5s ease infinite 1s;
+ -o-animation: twinkle 1.5s ease infinite 1s;
+ animation: twinkle 1.5s ease infinite 1s;
+}
+.search-dialog input.form-control {
border: none;
border-left-style: none;
}
@@ -691,9 +778,6 @@ fieldset[disabled] .form-control {
outline: none;
box-shadow: none;
}
-.search-dialog .input-group-addon {
- background-color: #FFF;
-}
.search-dialog .layout-side-section,
.search-dialog .layout-main-section {
height: 500px;
@@ -712,6 +796,7 @@ fieldset[disabled] .form-control {
align-items: center;
justify-content: space-between;
padding-left: 20px;
+ background-color: #ffffff;
}
.search-dialog .layout-side-section .nav li a i {
visibility: hidden;
@@ -719,23 +804,9 @@ fieldset[disabled] .form-control {
.search-dialog .layout-side-section .nav .active i {
visibility: visible;
}
-.search-dialog .results-area .search-intro-placeholder {
- color: #d4d9dd;
- height: inherit;
- display: flex;
- justify-content: center;
- align-items: center;
-}
-.search-dialog .results-area .search-intro-placeholder span {
- text-align: center;
-}
-.search-dialog .results-area .search-intro-placeholder span i {
- font-size: 64px;
- display: block;
-}
-.search-dialog .results-area .search-intro-placeholder span p {
- font-size: 15px;
- display: block;
+.search-dialog .layout-side-section .nav .select a,
+.search-dialog .layout-side-section .nav a:hover {
+ background-color: #f7fafc;
}
.search-dialog .results-area .single-link a {
color: #36414c;
@@ -748,6 +819,9 @@ fieldset[disabled] .form-control {
font-family: 'Octicons';
content: '\f0a4';
}
+.search-dialog .module-section .result {
+ margin-bottom: 5px;
+}
.search-dialog .full-list .result {
margin-top: 15px;
}
@@ -772,6 +846,27 @@ fieldset[disabled] .form-control {
.search-dialog .more-results {
display: none;
}
+.search-dialog .result p {
+ margin-top: 5px;
+ margin-bottom: 5px;
+}
+.search-dialog .result .result-image {
+ display: inline-block;
+ margin-right: 10px;
+ height: 60px;
+ width: 60px;
+ background-color: #fafbfc;
+}
+.search-dialog .result .result-image .flex-text {
+ display: flex;
+ height: 60px;
+ align-items: center;
+ justify-content: center;
+}
+.search-dialog .result .result-image span {
+ font-size: 30px;
+ color: #d1d8dd;
+}
@media (max-width: 767px) {
.search-dialog .modal-dialog {
width: auto;
@@ -785,21 +880,12 @@ fieldset[disabled] .form-control {
margin: 0px;
border-top: none;
}
- .search-dialog .layout-side-section .sidebar-menu {
- margin: 30px 0px;
- }
}
@media (min-width: 600px) {
.search-dialog .results-area .back-link {
display: none;
}
}
-.result p {
- margin-top: 0.2em;
-}
-.search-result {
- margin-bottom: 24px;
-}
.note-editor.note-frame .note-editing-area .note-editable {
color: #36414C;
}
diff --git a/frappe/public/css/list.css b/frappe/public/css/list.css
index 8e88423d78..8bc696f113 100644
--- a/frappe/public/css/list.css
+++ b/frappe/public/css/list.css
@@ -420,6 +420,7 @@
.list-item input[type=checkbox] {
margin: 0;
margin-right: 5px;
+ flex: 0 0 12px;
}
.list-item .liked-by,
.list-item .liked-by-filter-button {
diff --git a/frappe/public/js/frappe/list/list_item_subject.html b/frappe/public/js/frappe/list/list_item_subject.html
index 2e9a5c04dc..41a18e9e04 100644
--- a/frappe/public/js/frappe/list/list_item_subject.html
+++ b/frappe/public/js/frappe/list/list_item_subject.html
@@ -11,7 +11,7 @@
{{ (_liked_by.length > 99 ? "99+" : _liked_by.length) || "" }}
-{{ strip_html(_title) }}
diff --git a/frappe/public/js/frappe/list/list_renderer.js b/frappe/public/js/frappe/list/list_renderer.js
index 51dde1da1e..fa250fd1c6 100644
--- a/frappe/public/js/frappe/list/list_renderer.js
+++ b/frappe/public/js/frappe/list/list_renderer.js
@@ -447,9 +447,6 @@ frappe.views.ListRenderer = Class.extend({
data._title = strip_html(data[title_field] || data.name);
data._full_title = data._title;
- if (data._title.length > 35) {
- data._title = data._title.slice(0, 35) + '...';
- }
data._workflow = null;
if (this.workflow_state_fieldname) {
diff --git a/frappe/public/js/frappe/ui/toolbar/awesome_bar.js b/frappe/public/js/frappe/ui/toolbar/awesome_bar.js
index e0ca6516fb..339aeee48d 100644
--- a/frappe/public/js/frappe/ui/toolbar/awesome_bar.js
+++ b/frappe/public/js/frappe/ui/toolbar/awesome_bar.js
@@ -9,11 +9,6 @@ frappe.search.AwesomeBar = Class.extend({
var $input = $(element);
var input = $input.get(0);
- this.search = new frappe.search.UnifiedSearch();
- this.global = new frappe.search.GlobalSearch();
- this.nav = new frappe.search.NavSearch();
- this.help = new frappe.search.HelpSearch();
-
this.options = [];
this.global_results = [];
@@ -23,32 +18,22 @@ frappe.search.AwesomeBar = Class.extend({
autoFirst: true,
list: [],
filter: function (text, term) {
+ this.get_item(text.value).boo = "foo";
return true;
},
data: function (item, input) {
- var label = item.label + "%%%" + item.value + "%%%" +
- (item.description || "") + "%%%" + (item.index || "")
- + "%%%" + (item.type || "") + "%%%" + (item.prefix || "");
return {
- label: label,
+ label: (item.index || ""),
value: item.value
};
},
item: function(item, term) {
- var d = item;
- var parts = item.split("%%%"),
- d = { label: parts[0], value: parts[1], description: parts[2],
- type: parts[4], prefix: parts[5]};
-
- if(d.prefix) {
- var html = "" + __((d.prefix + ' ' + d.label)) + "";
- } else if(d.type) {
- var html = "" + __((d.label + ' ' + d.type)) + "";
- } else {
- var html = "" + __(d.label || d.value) + "";
- }
+ var d = this.get_item(item.value);
+ var name = d.prefix ? __(d.prefix + ' ' + (d.label || d.value)) :
+ __(d.label || d.value);
+ var html = '' + name + '';
if(d.description && d.value!==d.description) {
- html += '
' + __(d.description) + '';
+ html += '
' + __(d.description) + '';
}
return $('