Compare commits

..

No commits in common. "ea96d02bcf4b8d5f998a89eeecb80d99908dee60" and "cf11cf2975b469e4471ea5ae3550151a8fe7171a" have entirely different histories.

2 changed files with 5 additions and 17 deletions

View file

@ -35,7 +35,7 @@ class ApiController extends YesWikiController
$eleveController->del($clef_action[0]); $eleveController->del($clef_action[0]);
} }
} }
// return new ApiResponse($data); // return ApiResponse($data);
return $this->wiki->redirect('?Eleves', 200); return $this->wiki->redirect('?Eleves', 200);
} }
@ -56,19 +56,7 @@ class ApiController extends YesWikiController
$controle = new Controle($parameters['intitule'], $parameters['matiere'], $parameters['coef'], $eleves); $controle = new Controle($parameters['intitule'], $parameters['matiere'], $parameters['coef'], $eleves);
$controle->createNotes($noteManager); $controle->createNotes($noteManager);
// return new ApiResponse($controle); // return ApiResponse($controle);
return $this->wiki->redirect('?Bulletin', 200); return $this->wiki->redirect('?Bulletin', 200);
} }
/**
* @Route("/api/meeo/absence",methods={"POST"},options={"acl":{"public"}})
*/
public function absence(Request $request) {
// $noteManager = $this->getService(NoteManager::class);
$content = $request->getContent();
parse_str($content, $parameters);
return new ApiResponse($parameters);
// return $this->wiki->redirect('?Bulletin', 200);
}
} }

View file

@ -1,4 +1,4 @@
<form class="form-horizontal" action="?api/meeo/absence" method="post"> <form class="form-horizontal" action="" method="post">
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-2" for="eleve">Eleve:</label> <label class="control-label col-sm-2" for="eleve">Eleve:</label>
<div class="col-sm-10"> <div class="col-sm-10">
@ -12,13 +12,13 @@
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-2" for="date_debut_absence">Debut:</label> <label class="control-label col-sm-2" for="date_debut_absence">Debut:</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input class="form-control" type="datetime-local" id="date_debut_absence" name="date_debut_absence" required/> <input class="form-control" type="datetime-local" id="date_debut_absence" name"date_debut_absence" required/>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="control-label col-sm-2" for="date_fin_absence">Fin:</label> <label class="control-label col-sm-2" for="date_fin_absence">Fin:</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input class="form-control" type="datetime-local" id="date_fin_absence" name="date_fin_absence"/> <input class="form-control" type="datetime-local" id="date_fin_absence" name"date_fin_absence"/>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">