Refactor task status handling and update styles for task views; add support for 'faktury' status

This commit is contained in:
2024-12-15 11:11:47 +01:00
parent 65d366cc7d
commit 8c42e65d57
12 changed files with 89 additions and 28 deletions

View File

@@ -67,7 +67,7 @@
<h3>Status</h3>
<div class="current_status">
<select name="task_status" class="form-control" task_id="<?= $this -> task['id'];?>">
<? foreach ( \factory\Tasks::$statuses as $key => $status ):?>
<? foreach ( \factory\Tasks::get_statuses() as $key => $status ):?>
<option value="<?= $key;?>" <? if ( $this -> task['status'] == $key ):?>selected="selected"<? endif;?>><?= $status;?></option>
<? endforeach;?>
</select>