You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.4 KiB

<!DOCTYPE html>
<html>
<head>
<title>Ajouter une Tache</title>
<link rel="stylesheet" href="Style/bootstrap.css">
<link rel="stylesheet" href="Style/add.css">
</head>
<body>
<div class="container">
<h2>Modify a task</h2>
<form method="post" name="addTask" id="addTask">
<div class="group">
<input type="text" name="name" value="<?=$dataView[0]->getName()?>" required>
<span class="highlight"></span>
<span class="bar"></span>
</div>
<div class="group">
<input type="text" name="content" value="<?=$dataView[0]->getContent()?>" required>
<span class="highlight"></span>
<span class="bar"></span>
</div>
<?php
if ($dataView[0]->getCompleted()){
?>
<div class="check">
<text>Complete</text>
<input type="checkbox" name="completed" checked/>
</div>
<?php
}
else{
?>
<div class="check">
<text>Complete</text>
<input type="checkbox" name="completed"/>
</div>
<?php
}
if(!empty($dVueEreur)){
echo '<h4 id="error">'.$dVueEreur[0].'</h4>';
}
?>
<input type="submit" value="Submit"/>
<input type="hidden" name='task' value="<?=$dataView[0]->getId()?>"/>
<input type="hidden" name='list' value="<?=$dataView[1]?>"/>
<input type="hidden" name="action" value="modifyTask"/>
</form>
</div>
</body>