mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
ALPHA 3.0.1f
This commit is contained in:
@@ -6,14 +6,72 @@ return [
|
||||
|--------------------------------------------------------------------------
|
||||
| Calendar Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
|General Translation
|
||||
*/
|
||||
|
||||
'nothing_today' => "Il n'y a rien a l'horaire pour cette date",
|
||||
'admin_page_title' => "Horaire",
|
||||
'admin_breadcrumb' => "Horaire",
|
||||
'add_to_schedule' => "Ajouter une activité a l'horaire",
|
||||
'begin_at' => "Commence a ",
|
||||
'end_at' => " et termine a ",
|
||||
|
||||
/** Admin Display Page */
|
||||
'admin_page_title' => "Horaire",
|
||||
'admin_breadcrumb' => "Horaire",
|
||||
|
||||
/** Admin Add Page */
|
||||
'add_title' => "Ajouter a l'horaire",
|
||||
'add_breadcrumb' => "Horaire/Ajouter",
|
||||
/** Event Type */
|
||||
'add_form_event_type' => "Type d'évenement",
|
||||
'add_form_event_type_pilotage' => "Activité complémentaire - Pilotage",
|
||||
'add_form_event_type_dril' => "Activité complémentaire - Précidrill",
|
||||
'add_form_event_type_music' => "Activité complémentaire - Musique",
|
||||
'add_form_event_type_biathlon' => "Activité complémentaire - Biathlon",
|
||||
'add_form_event_type_marksmanship' => "Activité complémentaire - Tir",
|
||||
'add_form_event_type_founding' => "Financement",
|
||||
'add_form_event_type_volunteer' => "Bénévolat",
|
||||
'add_form_event_type_other' => "Autre",
|
||||
'add_form_event_type_instruction' => "Soirée d'instruction régulière",
|
||||
'add_form_event_type_select' => "Choisir le type d'évenement",
|
||||
/** Event Name */
|
||||
'add_form_event_name' => "Nom de l'évenement",
|
||||
'add_form_event_name_placeholder' => "Nom",
|
||||
'add_form_event_name_help' => "Veuillez indiquer le nom de l'événement.",
|
||||
|
||||
/** Event Date */
|
||||
'add_form_event_date' => "Date de l'evenement",
|
||||
|
||||
/** Event Time */
|
||||
'add_form_event_time_begin' => "Heure de début",
|
||||
'add_form_event_time_begin_help' => "Veuillez indiquer l'heure de début.",
|
||||
'add_form_event_time_end' => "Heure de fin",
|
||||
'add_form_event_time_end_help' => "Veuillez indiquer l'heure de fin.",
|
||||
|
||||
/** Event Location */
|
||||
'add_form_event_place' => "Lieux de l'évenement",
|
||||
'add_form_event_place_placeholder' => "Ex: Escadron (540 Rue St Germain E, Rimouski, QC G5L 1E9)",
|
||||
'add_form_event_place_help' => "Veuillez indiquer le lieux de l'évenement.",
|
||||
|
||||
/** Event Mandatory */
|
||||
'add_form_event_mandatory' => "Evenement obligatoire",
|
||||
'add_form_event_mandatory_help' => "L'evenement est-il obligatoire pour tous les cadets ?",
|
||||
|
||||
/** Event description */
|
||||
'add_form_event_desc' => "Description",
|
||||
'add_form_event_desc_placeholder' => "Écriver ici ...",
|
||||
'add_form_event_desc_help' => "Veuillez entrer ici une courte description de l'événement ainsi que toutes autres informations utiles",
|
||||
|
||||
/** Regular day event */
|
||||
'reg_p1' => "Première période",
|
||||
'reg_p2' => "Deuxième période",
|
||||
'reg_classe_name' => "Nom du cours",
|
||||
'reg_ocom' => "OCOM",
|
||||
'reg_plan_done' => "Plan de cours remis?",
|
||||
'reg_instructor_name' => "Instructeur",
|
||||
'reg_location' => "Local",
|
||||
|
||||
/**
|
||||
* Translation for the pilotage activity
|
||||
*/
|
||||
'pilotage_title' => "Cours de pilotage",
|
||||
];
|
||||
|
||||
175
resources/views/admin/calendar/calendar_add.blade.php
Normal file
175
resources/views/admin/calendar/calendar_add.blade.php
Normal file
@@ -0,0 +1,175 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-sm-12 col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong> {{ trans('calendar.add_title')}} </strong> {{ ucfirst(strftime("%A le %e %B %Y", strtotime($RequestDate))) }}
|
||||
</div>
|
||||
<div class="card-body card-block">
|
||||
<form action="" method="post" enctype="multipart/form-data" class="form-horizontal">
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="select" class=" form-control-label"> {{ trans('calendar.add_form_event_type')}} </label></div>
|
||||
<div class="col-12 col-md-9">
|
||||
<select name="event_type" id="event_type" class="form-control" onchange="switchType()">
|
||||
<option value="null"> {{trans('calendar.add_form_event_type_select')}} </option>
|
||||
<option value="regular"> {{trans('calendar.add_form_event_type_instruction')}} </option>
|
||||
<option value="pilotage"> {{trans('calendar.add_form_event_type_pilotage')}} </option>
|
||||
<option value="drill"> {{trans('calendar.add_form_event_type_dril')}} </option>
|
||||
<option value="music"> {{trans('calendar.add_form_event_type_music')}} </option>
|
||||
<option value="biathlon"> {{trans('calendar.add_form_event_type_biathlon')}} </option>
|
||||
<option value="marksmanship"> {{trans('calendar.add_form_event_type_marksmanship')}} </option>
|
||||
<option value="founding"> {{trans('calendar.add_form_event_type_founding')}} </option>
|
||||
<option value="volunteer"> {{trans('calendar.add_form_event_type_volunteer')}} </option>
|
||||
<option value="other"> {{trans('calendar.add_form_event_type_other')}} </option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label"> {{ trans('calendar.add_form_event_name') }}</label></div>
|
||||
<div class="col-12 col-md-6"><input id="event_name" name="event_name" placeholder="{{ trans('calendar.add_form_event_name_placeholder')}}" class="form-control" type="text"><small class="form-text text-muted"> {{trans('calendar.add_form_event_name_help')}}</small></div>
|
||||
<div class="col col-md-3">
|
||||
<label for="disabled-input" class=" form-control-label"> {{ trans("calendar.add_form_event_mandatory")}} </label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="is_event_mandatory" name="is_event_mandatory" class="switch-input" checked="true" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<small class="form-text text-muted"> {{trans('calendar.add_form_event_mandatory_help')}}</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="disabled-input" class=" form-control-label"> {{ trans("calendar.add_form_event_date")}} </label></div>
|
||||
<div class="col-12 col-md-9"><input id="event_date" name="event_date" readonly class="form-control" value="{{ $RequestDate}}" type="text"></div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="disabled-input" class=" form-control-label"> {{ trans("calendar.add_form_event_time_begin")}} </label></div>
|
||||
<div class="col-12 col-md-4"><input id="event_begin_time" name="event_begin_time" class="form-control" type="time"><small class="form-text text-muted"> {{trans('calendar.add_form_event_time_begin_help')}}</small></div>
|
||||
<div class="col col-md-1"><label for="disabled-input" class=" form-control-label"> {{ trans("calendar.add_form_event_time_end")}} </label></div>
|
||||
<div class="col-12 col-md-4"><input id="event_end_time" name="event_end_time" class="form-control" type="time"><small class="form-text text-muted"> {{trans('calendar.add_form_event_time_end_help')}}</small></div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label"> {{ trans('calendar.add_form_event_place') }}</label></div>
|
||||
<div class="col-12 col-md-9"><input id="event_location" name="event_location" placeholder="{{ trans('calendar.add_form_event_place_placeholder')}}" class="form-control" type="text"><small class="form-text text-muted"> {{trans('calendar.add_form_event_name_help')}}</small></div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="textarea-input" class=" form-control-label">{{ trans('calendar.add_form_event_desc')}}</label></div>
|
||||
<div class="col-12 col-md-9"><textarea name="event_desc" id="event_desc" rows="9" placeholder="{{ trans('calendar.add_form_event_desc_placeholder') }}" class="form-control"></textarea>
|
||||
<small class="form-text text-muted"> {{trans('calendar.add_form_event_desc_help')}}</small></div>
|
||||
</div>
|
||||
|
||||
<!-- Special section ONLY for regular event type -->
|
||||
|
||||
<div class="row form-group">
|
||||
<button type="button" class="btn btn-primary btn-lg col-md-4 col-sm-12 active">Niveau 1</button>
|
||||
<button type="button" class="btn btn-primary btn-lg col-md-4 col-sm-12">Niveau 2</button>
|
||||
<button type="button" class="btn btn-primary btn-lg col-md-4 col-sm-12">Niveau 3</button>
|
||||
</div>
|
||||
<div id="grade_1">
|
||||
<!-- First periode -->
|
||||
<div>
|
||||
<h3> {{ trans('calendar.reg_p1') }} </h3>
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2"><label class=" form-control-label"> {{ trans('calendar.reg_classe_name')}} </label></div>
|
||||
<div class="col-md-5"><input id="n1_p1_name" name="n1_p1_name" placeholder="{{ trans('calendar.reg_classe_name')}}" class="form-control" type="text"><small class="form-text text-muted"> {{trans('calendar.reg_classe_name_help')}}</small></div>
|
||||
<div class="col-md-1"><label for="select" class=" form-control-label"> {{ trans('calendar.reg_ocom')}} </label></div>
|
||||
<div class="col-md-4"><input id="n1_p1_ocom" name="n1_p1_ocom" placeholder="{{ trans('calendar.reg_ocom')}}" class="form-control" type="text"><small class="form-text text-muted"> {{trans('calendar.reg_ocom_help')}}</small></div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2"><label class=" form-control-label"> {{ trans('calendar.reg_instructor_name')}} </label></div>
|
||||
<div class="col-md-3">
|
||||
<select name="n1_p1_instructor" id="n1_p1_instructor" class="form-control">
|
||||
@foreach ($Userslist as $user)
|
||||
<option value=" {{ $user->id }}"> {{ $user->lastname." ".$user->firstname}} </option>
|
||||
@endforeach
|
||||
</select>
|
||||
<small class="form-text text-muted"> {{trans('calendar.reg_classe_name_help')}}</small>
|
||||
</div>
|
||||
<div class="col-md-1"><label for="select" class=" form-control-label"> {{ trans('calendar.reg_location')}} </label></div>
|
||||
<div class="col-md-3">
|
||||
<select name="n1_p1_local" id="n1_p1_local" class="form-control">
|
||||
@foreach ($LocalsList as $local)
|
||||
<option value=" {{ $local->id }}"> {{ $local->name}} </option>
|
||||
@endforeach
|
||||
</select>
|
||||
<small class="form-text text-muted"> {{trans('calendar.reg_classe_name_help')}}</small>
|
||||
</div>
|
||||
<div class="col col-md-2">
|
||||
<label for="disabled-input" class=" form-control-label"> {{ trans("calendar.reg_plan_done")}} </label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="n1_p1_plandone" name="n1_p1_plandone" class="switch-input" checked="false" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<small class="form-text text-muted"> {{trans('calendar.reg_plan_done_help')}}</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Second periode -->
|
||||
<div>
|
||||
<h3> {{ trans('calendar.reg_p2') }} </h3>
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2"><label class=" form-control-label"> {{ trans('calendar.reg_classe_name')}} </label></div>
|
||||
<div class="col-md-5"><input id="n1_p2_name" name="n1_p2_name" placeholder="{{ trans('calendar.reg_classe_name')}}" class="form-control" type="text"><small class="form-text text-muted"> {{trans('calendar.reg_classe_name_help')}}</small></div>
|
||||
<div class="col-md-1"><label for="select" class=" form-control-label"> {{ trans('calendar.reg_ocom')}} </label></div>
|
||||
<div class="col-md-4"><input id="n1_p2_ocom" name="n1_p2_ocom" placeholder="{{ trans('calendar.reg_ocom')}}" class="form-control" type="text"><small class="form-text text-muted"> {{trans('calendar.reg_ocom_help')}}</small></div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col-md-2"><label class=" form-control-label"> {{ trans('calendar.reg_instructor_name')}} </label></div>
|
||||
<div class="col-md-3">
|
||||
<select name="n1_p2_instructor" id="n1_p2_instructor" class="form-control">
|
||||
@foreach ($Userslist as $user)
|
||||
<option value=" {{ $user->id }}"> {{ $user->lastname." ".$user->firstname}} </option>
|
||||
@endforeach
|
||||
</select>
|
||||
<small class="form-text text-muted"> {{trans('calendar.reg_classe_name_help')}}</small>
|
||||
</div>
|
||||
<div class="col-md-1"><label for="select" class=" form-control-label"> {{ trans('calendar.reg_location')}} </label></div>
|
||||
<div class="col-md-3">
|
||||
<select name="n1_p2_local" id="n1_p2_local" class="form-control">
|
||||
@foreach ($LocalsList as $local)
|
||||
<option value=" {{ $local->id }}"> {{ $local->name}} </option>
|
||||
@endforeach
|
||||
</select>
|
||||
<small class="form-text text-muted"> {{trans('calendar.reg_classe_name_help')}}</small>
|
||||
</div>
|
||||
<div class="col col-md-2">
|
||||
<label for="disabled-input" class=" form-control-label"> {{ trans("calendar.reg_plan_done")}} </label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input id="n1_p2_plandone" name="n1_p2_plandone" class="switch-input" checked="false" type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
<small class="form-text text-muted"> {{trans('calendar.reg_plan_done_help')}}</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<button type="submit" class="btn btn-primary btn-sm">
|
||||
<i class="fa fa-dot-circle-o"></i> Submit
|
||||
</button>
|
||||
<button type="reset" class="btn btn-danger btn-sm">
|
||||
<i class="fa fa-ban"></i> Reset
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>{{ trans('calendar.add_title')}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">{{ trans('calendar.add_breadcrumb')}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/js/calendar/calendar.js"></script>
|
||||
<div class="log"></div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user