implemented storing of tasks extended fields

This commit is contained in:
2025-07-25 14:38:11 +02:00
parent 10eff7a88f
commit 8dfa3c7a46
2 changed files with 21 additions and 9 deletions

View File

@@ -15,7 +15,12 @@
let task = $state({
name : '',
description : { source : '', rendered : '' },
members : {}
members : {},
estimated_time: null,
start_date: null,
due_date: null,
show_closed: false,
no_index: false
});
let router = useTinyRouter();
@@ -120,7 +125,7 @@
{t('estimated_time')}
</th>
<td>
<input type="number" /> {t('hours')}
<input type="number" bind:value={task.estimated_time} /> {t('hours')}
</td>
</tr>
<tr>
@@ -128,7 +133,7 @@
{t('start_date')}
</th>
<td>
<input type="date" />
<input type="date" bind:value={task.start_date} />
</td>
</tr>
<tr>
@@ -136,7 +141,7 @@
{t('due_date')}
</th>
<td>
<input type="date" />
<input type="date" bind:value={task.due_date} />
</td>
</tr>
<tr>
@@ -145,7 +150,7 @@
</th>
<td>
<label>
<input type="checkbox" >
<input type="checkbox" bind:checked={task.show_closed} >
{t('display_closed_tasks')}
</label>
</td>
@@ -156,7 +161,7 @@
</th>
<td>
<label>
<input type="checkbox" >
<input type="checkbox" bind:checked={task.no_index} >
{t('hide_on_index_page')}
</label>
</td>