changes
This commit is contained in:
@@ -343,6 +343,14 @@ $transition-speed: .25s;
|
||||
.fa { opacity: .5; }
|
||||
}
|
||||
|
||||
.fc_task_date {
|
||||
font-size: 11px;
|
||||
color: #6366f1;
|
||||
font-weight: 600;
|
||||
margin-bottom: 3px;
|
||||
.fa { opacity: .5; }
|
||||
}
|
||||
|
||||
.fc_task_detail {
|
||||
font-size: 11px;
|
||||
color: $body-color;
|
||||
|
||||
@@ -241,6 +241,9 @@ function groupTasks(tasksData, localInstanceId, visibleTechIds) {
|
||||
const src = task.x_fc_sync_source || localInstanceId || "";
|
||||
task._sourceLabel = src ? src.charAt(0).toUpperCase() + src.slice(1) : "";
|
||||
task._sourceColor = SOURCE_COLORS[src] || "#6c757d";
|
||||
task._dateLabel = task.scheduled_date
|
||||
? new Date(task.scheduled_date + "T12:00:00").toLocaleDateString(undefined, { weekday: 'short', month: 'short', day: 'numeric' })
|
||||
: "No date";
|
||||
task._hasCoords = task.address_lat && task.address_lng && task.address_lat !== 0 && task.address_lng !== 0;
|
||||
groups[g].tasks.push(task);
|
||||
groups[g].count++;
|
||||
|
||||
@@ -109,6 +109,11 @@
|
||||
<span><i class="fa fa-clock-o me-1"/><t t-esc="task._timeRange"/></span>
|
||||
</div>
|
||||
|
||||
<!-- Date -->
|
||||
<div class="fc_task_date">
|
||||
<i class="fa fa-calendar me-1"/><t t-esc="task._dateLabel"/>
|
||||
</div>
|
||||
|
||||
<!-- Technician + address -->
|
||||
<div class="fc_task_detail">
|
||||
<span><i class="fa fa-user me-1"/><t t-esc="task._techName"/></span>
|
||||
|
||||
Reference in New Issue
Block a user