|
|
@ -68,7 +68,7 @@
|
|
|
|
<input type="hidden" name="listId" value="'.$l->get_id().'"></input>
|
|
|
|
<input type="hidden" name="listId" value="'.$l->get_id().'"></input>
|
|
|
|
<input type="hidden" name="action" value="pageTache"></input>
|
|
|
|
<input type="hidden" name="action" value="pageTache"></input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form method="post" action="index.php">
|
|
|
|
</form>
|
|
|
|
<table class="table mb-4">
|
|
|
|
<table class="table mb-4">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -81,13 +81,31 @@
|
|
|
|
# IF NO TASKS, display NO TASKS
|
|
|
|
# IF NO TASKS, display NO TASKS
|
|
|
|
if(!empty($l->get_taches())){
|
|
|
|
if(!empty($l->get_taches())){
|
|
|
|
foreach($l->get_taches() as $t){
|
|
|
|
foreach($l->get_taches() as $t){
|
|
|
|
|
|
|
|
if(!$t->get_isDone()){
|
|
|
|
|
|
|
|
echo '
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>'.$t->get_titre().'</td>
|
|
|
|
|
|
|
|
<td>'.$t->get_priorite().'</td>';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
echo '
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td><del>'.$t->get_titre().'</del></td>
|
|
|
|
|
|
|
|
<td><del>'.$t->get_priorite().'</del></td>';
|
|
|
|
|
|
|
|
}
|
|
|
|
echo '
|
|
|
|
echo '
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>'.$t->get_titre().'</td>
|
|
|
|
|
|
|
|
<td>'.$t->get_priorite().'</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<button type="submit" class="btn btn-success ms-1">✔</button>
|
|
|
|
<form action="index.php" method="post" class="d-inline-block">
|
|
|
|
<button type="submit" class="btn btn-danger">✖</button>
|
|
|
|
<button type="submit" class="btn btn-success ms-1">✔
|
|
|
|
|
|
|
|
<input type="hidden" name="idT" value="'.$t->get_id().'"></input>
|
|
|
|
|
|
|
|
<input type="hidden" name="action" value="isDone">
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form action="index.php" method="post" class="d-inline-block">
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-danger">✖
|
|
|
|
|
|
|
|
<input type="hidden" name="idT" value="'.$t->get_id().'"></input>
|
|
|
|
|
|
|
|
<input type="hidden" name="action" value="supprimerTache">
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
</tr>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|