mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Ajout de la modification des event_type
This commit is contained in:
@@ -11,9 +11,24 @@ class ScheduleEditorController extends Controller
|
||||
return view('admin.schedule.editor.course');
|
||||
}
|
||||
|
||||
public function getCourseEmpty(int $niveau,int $periode)
|
||||
public function getCourseEmpty(int $niveau,int $periode,$event_type = 1)
|
||||
{
|
||||
return view('admin.schedule.editor.course',['periode' => $periode, 'niveau' => $niveau]);
|
||||
$eventType = \App\EventType::findOrFail($event_type);
|
||||
$data = $eventType->getScheduleModelData($niveau,$periode);
|
||||
$ocom = $data['ocom'];
|
||||
$name = $data['name'];
|
||||
$location = $data['location'];
|
||||
$instructor = $data['instructor'];
|
||||
$desc = $data['desc'];
|
||||
|
||||
return view('admin.schedule.editor.course',[
|
||||
'periode' => $periode,
|
||||
'niveau' => $niveau,
|
||||
'ocom' => $ocom,
|
||||
'name' => $name,
|
||||
'location' => $location,
|
||||
'instructor' => $instructor,
|
||||
'desc' => $desc]);
|
||||
}
|
||||
|
||||
public function getTemplate(int $id)
|
||||
|
||||
Reference in New Issue
Block a user