Gantt milestones (#3370)
This commit is contained in:
parent
aa16e8adf5
commit
6dcfd8fdb3
4 changed files with 28 additions and 2 deletions
|
|
@ -214,7 +214,8 @@
|
|||
"public/css/list.css",
|
||||
"public/css/calendar.css",
|
||||
"public/css/role_editor.css",
|
||||
"public/css/filter_dashboard.css"
|
||||
"public/css/filter_dashboard.css",
|
||||
"public/css/gantt.css"
|
||||
],
|
||||
"js/list.min.js": [
|
||||
"public/js/frappe/ui/listing.html",
|
||||
|
|
|
|||
6
frappe/public/css/gantt.css
Normal file
6
frappe/public/css/gantt.css
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
.gantt .bar-milestone .bar {
|
||||
fill: #FD8B8B;
|
||||
}
|
||||
.gantt .bar-milestone .bar-progress {
|
||||
fill: #FC4F51;
|
||||
}
|
||||
|
|
@ -137,7 +137,7 @@ frappe.views.GanttView = frappe.views.ListRenderer.extend({
|
|||
var label = item[field_map.title];
|
||||
}
|
||||
|
||||
return {
|
||||
var r = {
|
||||
start: item[field_map.start],
|
||||
end: item[field_map.end],
|
||||
name: label,
|
||||
|
|
@ -146,6 +146,12 @@ frappe.views.GanttView = frappe.views.ListRenderer.extend({
|
|||
progress: progress,
|
||||
dependencies: item.depends_on_tasks || ""
|
||||
};
|
||||
|
||||
if(item.is_milestone) {
|
||||
r['custom_class'] = 'bar-milestone';
|
||||
};
|
||||
|
||||
return r
|
||||
});
|
||||
},
|
||||
get_item: function(name) {
|
||||
|
|
|
|||
13
frappe/public/less/gantt.less
Normal file
13
frappe/public/less/gantt.less
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
@import "variables.less";
|
||||
|
||||
// gantt
|
||||
.gantt {
|
||||
.bar-milestone {
|
||||
.bar {
|
||||
fill: @red-light;
|
||||
}
|
||||
.bar-progress {
|
||||
fill: @red;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue