#423 Add scope data attributes

This commit is contained in:
Daniel Brendel
2025-08-07 23:24:30 +02:00
parent 154b7d454c
commit 90a7e688c4
2 changed files with 2 additions and 2 deletions

View File

@@ -417,7 +417,7 @@
@if ($task->get('due_date') !== null)
<span class="{{ ((new DateTime($task->get('due_date'))) < (new DateTime())) ? 'is-task-overdue' : '' }}">{{ date('Y-m-d', strtotime($task->get('due_date'))) }}</span>
<span class="is-task-recurring" data-time="{{ $task->get('recurring_time') ?? '' }}"><i class="far fa-clock {{ ((!$task->get('recurring_time')) ? 'is-hidden' : '') }}"></i></span>
<span class="is-task-recurring" data-time="{{ $task->get('recurring_time') ?? '' }}" data-scope="{{ $task->get('recurring_scope') ?? '' }}"><i class="far fa-clock {{ ((!$task->get('recurring_time')) ? 'is-hidden' : '') }}"></i></span>
@endif
</div>

View File

@@ -187,7 +187,7 @@
<div class="task-footer-due" id="task-item-due-{{ $task->get('id') }}">
@if ($task->get('due_date') !== null)
<span class="{{ ((new DateTime($task->get('due_date'))) < (new DateTime())) ? 'is-task-overdue' : '' }}">{{ date('Y-m-d', strtotime($task->get('due_date'))) }}</span>
<span class="is-task-recurring" data-time="{{ $task->get('recurring_time') ?? '' }}"><i class="far fa-clock {{ ((!$task->get('recurring_time')) ? 'is-hidden' : '') }}"></i></span>
<span class="is-task-recurring" data-time="{{ $task->get('recurring_time') ?? '' }}" data-scope="{{ $task->get('recurring_scope') ?? '' }}"><i class="far fa-clock {{ ((!$task->get('recurring_time')) ? 'is-hidden' : '') }}"></i></span>
@endif
</div>