Compare commits
2 commits
cf11cf2975
...
ea96d02bcf
Author | SHA1 | Date | |
---|---|---|---|
|
ea96d02bcf | ||
|
58ba487565 |
2 changed files with 17 additions and 5 deletions
|
@ -35,7 +35,7 @@ class ApiController extends YesWikiController
|
|||
$eleveController->del($clef_action[0]);
|
||||
}
|
||||
}
|
||||
// return ApiResponse($data);
|
||||
// return new ApiResponse($data);
|
||||
return $this->wiki->redirect('?Eleves', 200);
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,19 @@ class ApiController extends YesWikiController
|
|||
|
||||
$controle = new Controle($parameters['intitule'], $parameters['matiere'], $parameters['coef'], $eleves);
|
||||
$controle->createNotes($noteManager);
|
||||
// return ApiResponse($controle);
|
||||
// return new ApiResponse($controle);
|
||||
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);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
<form class="form-horizontal" action="" method="post">
|
||||
<form class="form-horizontal" action="?api/meeo/absence" method="post">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="eleve">Eleve:</label>
|
||||
<div class="col-sm-10">
|
||||
|
@ -12,13 +12,13 @@
|
|||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="date_debut_absence">Debut:</label>
|
||||
<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 class="form-group">
|
||||
<label class="control-label col-sm-2" for="date_fin_absence">Fin:</label>
|
||||
<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 class="form-group">
|
||||
|
|
Loading…
Reference in a new issue