Unverified Commit be816359 authored by David Beniamine's avatar David Beniamine
Browse files

Log buttons

parent 43ec78e4
......@@ -56,7 +56,10 @@ if(!isset($action)){
<input type="hidden" name="action" value="upgradeAllApt">
<input type="submit" value="Mettre à jour tous les postes avec mises à jour APT" title="Mettre à jour tous les postes (config + APT)">
</form>
<form action="index.php" method="post">
<input type="hidden" name="action" value="getLogAll">
<input type="submit" value="Télécharger le dernier log de mise à jour" title="Télécharger le dernier log de mise à jour">
</form>
<h2> Gestion des postes </h2>
<div class="table-responsive">
<table class="table-striped table-bordered table-hover" style="text-align:center;">
......@@ -115,6 +118,11 @@ if(!isset($action)){
<input type="hidden" name="mac" value="<?php echo $entry[1]?>;">
<input type="submit" value="Mise à jour config + APT" title="Mettre à jour + apt">
</form>
<form action="index.php" method="post">
<input type="hidden" name="action" value="getLog">
<input type="hidden" name="mac" value="<?php echo $entry[1]?>;">
<input type="submit" value="Log de mise à jour" title="Télécharger le dernier log de mise à jour">
</form>
<?php
echo "</td></tr>";
}
......@@ -178,13 +186,18 @@ if(!isset($action)){
case "upgradeAllApt" :
echo "I should upgradeAllApt machines, not implemented yet";
breaK;
case "getLogAll" :
echo "I should download all logs, not implemented yet";
break;
case "upgrade" :
echo "I should upgrade $mac, not implemented yet";
break;
case "upgradeAPT" :
echo "I should upgrade $mac with apt, not implemented yet";
break;
case "getLog" :
echo "I should download logs for $mac, not implemented yet";
break;
}
}
?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment