Debut BD Cours

This commit is contained in:
George Frederick "Buzz" Beurling
2020-03-10 20:38:43 -04:00
parent 763e00435c
commit 7433051f85
16 changed files with 3956 additions and 55400 deletions

View File

@@ -142,6 +142,14 @@ class EventController extends Controller
}
$course->save();
$ocom = \App\OCOM::where('ocom','=',request('ocom_n'.$l.'_p'.$p))->first();
if ($ocom != null)
{
$foo = $ocom->courses();
$foo->push($course);
$ocom->saveCourses($foo);
}
}
}
}

View File

@@ -12,11 +12,11 @@ class OCOMController extends Controller
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function index()
{
//
return view('admin.ocom.index',['ocoms' => OCOM::all()]);
}
/**
@@ -640,6 +640,18 @@ X20,\"Participer à des activités
$newocom->ocom = $ocom[0];
$newocom->oren = $oren[0];
if ($newocom->ocom[0] == 'C' || $newocom->ocom[0] == 'c')
{
$newocom->complementary = true;
}
else
{
$newocom->complementary = false;
}
$newocom->course_id = '';
$newocom->objectif_competence = $obj_competence;
$newocom->objectif_rendement = $orens[$oren[0]];
$newocom->save();
@@ -662,12 +674,12 @@ X20,\"Participer à des activités
/**
* Display the specified resource.
*
* @param \App\OCOM $oCOM
* @return \Illuminate\Http\Response
* @param $OCOM
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function show(OCOM $oCOM)
public function show($OCOM)
{
//
return view('admin.ocom.show',['ocom' => OCOM::find($OCOM)]);
}
/**