mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
ALPHA 3.0.2
This commit is contained in:
@@ -329,5 +329,12 @@
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/js/calendar/calendar.js"></script>
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#event_desc',
|
||||
branding: false,
|
||||
menubar: 'edit view format'
|
||||
});
|
||||
</script>
|
||||
<div class="log"></div>
|
||||
@endsection
|
||||
@@ -16,7 +16,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (!\App\Config::find(1)->state)
|
||||
<div class="alert alert-danger" role="alert">
|
||||
Attention ! L'horaire n'est présentement pas visible par le publique ! <a href="/admin/config#schedule_public">Cliquer ici pour accéder aux options</a>
|
||||
</div>
|
||||
@endif
|
||||
<div class="calendar"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -84,7 +88,7 @@
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/calendar/delete', { id: pid } , function(data) {
|
||||
$.post('/api/calendar/delete?api_token='+api_token, { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
@@ -364,6 +364,13 @@
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/js/calendar/calendar.js"></script>
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#event_desc',
|
||||
branding: false,
|
||||
menubar: 'edit view format'
|
||||
});
|
||||
</script>
|
||||
<script>switchTypeWithoutOverride();checkBox()</script>
|
||||
<div class="log"></div>
|
||||
@endsection
|
||||
227
resources/views/admin/job/add.blade.php
Normal file
227
resources/views/admin/job/add.blade.php
Normal file
@@ -0,0 +1,227 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Messages au staff<a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
@foreach ($jobs as $job)
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="{{$job->name}}-tab" data-toggle="tab" href="#{{$job->name}}" role="tab" aria-controls="{{$job->name}}" aria-selected="false">{{$job->name}}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<form>
|
||||
<div class="tab-content pl-3 p-1" id="myTabContent">
|
||||
@foreach ($jobs as $job)
|
||||
<div class="tab-pane fade" id="{{$job->name}}" role="tabpanel" aria-labelledby="{{$job->name}}-tab">
|
||||
<h3>{{ $job->desc }}</h3>
|
||||
<div class="row form-group">
|
||||
<div class="col-12"><textarea name="desc_{{$job->id}}" id="desc_{{$job->id}}" rows="9" class="form-control"></textarea>
|
||||
<small class="form-text text-muted">Description du poste</small></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Niveau d'accès</label></div>
|
||||
<div class="col col-md-3">
|
||||
<select name="event_type" id="event_type" class="form-control">
|
||||
<option value="0">Cadet</option>
|
||||
<option value="regular">Staff</option>
|
||||
<option value="pilotage">Officer</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Horaire détaillé</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il consulter les détails de l'horaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification horaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des événements a l'horaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation horaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements a l'horaire.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Consultation messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il consulter les messages</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des messages</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les messages.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification article</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des articles</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Publication articles</label><small class="form-text text-muted"> L'utilisateur avec ce poste peux t-il autoriser la publication ou appouver des changements a un articles</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation articles</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les articles.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Consultation inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il consulter l'inventaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer l'inventaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les articles.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification utilisateur</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des utilisateurs</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation utilisateur</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les utilisateurs.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
<div class="card-footer">
|
||||
<button type="submit" class="btn btn-primary btn-sm">
|
||||
<i class="fa fa-dot-circle-o"></i> Submit
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</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('admin/dashboard.page_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('admin/dashboard.breadcrumb')}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#log-data').DataTable({
|
||||
"ordering": false,
|
||||
"order": [],
|
||||
"lengthMenu": [[3, 4, -1], [9, 12, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
|
||||
function deleteEvent(pid){
|
||||
swal({
|
||||
title: 'Êtes vous certain ?',
|
||||
text: "Vous ne pourrez annuler cette action",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Oui',
|
||||
cancelButtonText: 'Non'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/message/delete', { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
||||
swal(
|
||||
'Supprimé!',
|
||||
"Le message a été supprimé",
|
||||
'success'
|
||||
).then((result) => {
|
||||
if (result.value) {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=r82pabvd9arn3fjb1e2fsolf2xpixuv4hwfwart4cf1fb7mx"></script>
|
||||
@foreach ($jobs as $job)
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#desc_'+<?php echo $job->id?>,
|
||||
branding: false,
|
||||
menubar: 'edit view format'
|
||||
});
|
||||
</script>
|
||||
@endforeach
|
||||
|
||||
@endsection
|
||||
237
resources/views/admin/job/index.blade.php
Normal file
237
resources/views/admin/job/index.blade.php
Normal file
@@ -0,0 +1,237 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Messages au staff<a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
@foreach ($jobs as $job)
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="{{$job->name}}-tab" data-toggle="tab" href="#{{$job->name}}" role="tab" aria-controls="{{$job->name}}" aria-selected="false">{{$job->name}}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<form>
|
||||
<div class="tab-content pl-3 p-1" id="myTabContent">
|
||||
@foreach ($jobs as $job)
|
||||
<div class="tab-pane fade" id="{{$job->name}}" role="tabpanel" aria-labelledby="{{$job->name}}-tab">
|
||||
<h3>{{ $job->desc }}</h3>
|
||||
<div class="row form-group">
|
||||
<div class="col-12"><textarea name="{{$job->id}}_desc" name="{{$job->id}}_desc" rows="9" class="form-control"></textarea>
|
||||
<small class="form-text text-muted">Description du poste</small></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Niveau d'accès</label></div>
|
||||
<div class="col col-md-3">
|
||||
<select name="{{$job->id}}_event_type" name="{{$job->id}}_event_type" class="form-control">
|
||||
@switch($job->acces_level)
|
||||
@case(1)
|
||||
<option value="1">Staff</option>
|
||||
@break
|
||||
@case(2)
|
||||
<option value="2">Officer</option>
|
||||
@break
|
||||
@default
|
||||
<option value="0">Cadet</option>
|
||||
@endswitch
|
||||
<option value="0">Cadet</option>
|
||||
<option value="1">Staff</option>
|
||||
<option value="2">Officer</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Horaire détaillé</label><small class="form-text text-muted">|| {{$job->schedule_see}} || L'utilisateur avec ce poste peut t'il consulter les détails de l'horaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_schedule_see" name="{{$job->id}}_schedule_see" class="switch-input" @if($job->schedule_see == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification horaire</label><small class="form-text text-muted">|| {{$job->schedule_edit}} || L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des événements a l'horaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_schedule_edit" name="{{$job->id}}_schedule_edit" class="switch-input" @if($job->schedule_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation horaire</label><small class="form-text text-muted">|| {{$job->schedule_notify}} || L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements a l'horaire.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_schedule_notify" name="{{$job->id}}_schedule_notify" class="switch-input" @if($job->schedule_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Consultation messages</label><small class="form-text text-muted">|| {{$job->message_see}} || L'utilisateur avec ce poste peut t'il consulter les messages</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_message_see" name="{{$job->id}}_message_see" class="switch-input" @if($job->message_see == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des messages</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_message_edit" name="{{$job->id}}_message_edit" class="switch-input" @if($job->message_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation messages</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les messages.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_message_notify" name="{{$job->id}}_message_notify" class="switch-input" @if($job->message_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification article</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des articles</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_paper_edit" name="{{$job->id}}_paper_edit" class="switch-input" @if($job->paper_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Publication articles</label><small class="form-text text-muted"> L'utilisateur avec ce poste peux t-il autoriser la publication ou appouver des changements a un articles</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_paper_publish" name="{{$job->id}}_paper_publish" class="switch-input" @if($job->paper_publish == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation articles</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les articles.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_paper_notify" name="{{$job->id}}_paper_notify" class="switch-input" @if($job->paper_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Consultation inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il consulter l'inventaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_inventory_see" name="{{$job->id}}_inventory_see" class="switch-input" @if($job->inventory_see == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer l'inventaire</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_inventory_edit" name="{{$job->id}}_inventory_edit" class="switch-input" @if($job->inventory_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation inventaire</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les articles.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_inventory_notify" name="{{$job->id}}_inventory_notify" class="switch-input" @if($job->inventory_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Modification utilisateur</label><small class="form-text text-muted"> L'utilisateur avec ce poste peut t'il ajouter, modifier et supprimer des utilisateurs</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_user_edit" name="{{$job->id}}_user_edit" class="switch-input" @if($job->user_edit == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label">Notifiation utilisateur</label><small class="form-text text-muted"> L'utilisateur avec ce poste doit t-il recevoir des notifiation pour tous les changements en lien avec les utilisateurs.</small></div>
|
||||
<div class="col col-md-3" style="margin: auto;">
|
||||
<label for="disabled-input" class=" form-control-label"></label>
|
||||
<label class="switch switch-3d switch-primary mr-3" style="margin-left: 3rem;"><input name="{{$job->id}}_user_notify" name="{{$job->id}}_user_notify" class="switch-input" @if($job->user_notify == "1") checked="true" @endif type="checkbox"><span class="switch-label"></span><span class="switch-handle"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
<div class="card-footer">
|
||||
<button type="submit" class="btn btn-primary btn-sm">
|
||||
<i class="fa fa-dot-circle-o"></i> Submit
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</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('admin/dashboard.page_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('admin/dashboard.breadcrumb')}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/dataTables.buttons.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.bootstrap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/jszip.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/pdfmake.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/vfs_fonts.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.html5.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.print.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/buttons.colVis.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/data-table/datatables-init.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#log-data').DataTable({
|
||||
"ordering": false,
|
||||
"order": [],
|
||||
"lengthMenu": [[3, 4, -1], [9, 12, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
|
||||
function deleteEvent(pid){
|
||||
swal({
|
||||
title: 'Êtes vous certain ?',
|
||||
text: "Vous ne pourrez annuler cette action",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Oui',
|
||||
cancelButtonText: 'Non'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/job/delete?api_token='+api_token, { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
||||
swal(
|
||||
'Supprimé!',
|
||||
"Le message a été supprimé",
|
||||
'success'
|
||||
).then((result) => {
|
||||
if (result.value) {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=r82pabvd9arn3fjb1e2fsolf2xpixuv4hwfwart4cf1fb7mx"></script>
|
||||
@foreach ($jobs as $job)
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#desc_'+<?php echo $job->id?>,
|
||||
branding: false,
|
||||
menubar: 'edit view format'
|
||||
});
|
||||
</script>
|
||||
@endforeach
|
||||
|
||||
@endsection
|
||||
70
resources/views/admin/message/add.blade.php
Normal file
70
resources/views/admin/message/add.blade.php
Normal file
@@ -0,0 +1,70 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-sm-12 col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong> Ajouter un message </strong>
|
||||
</div>
|
||||
<div class="card-body card-block">
|
||||
<form action="/admin/message/add" method="POST" enctype="multipart/form-data" class="form-horizontal">
|
||||
|
||||
{{ csrf_field() }}
|
||||
|
||||
<div class="row form-group">
|
||||
<div class="col col-md-3"><label for="text-input" class=" form-control-label"> Titre du message</label></div>
|
||||
<div class="col-12 col-md-6"><input id="msg_title" name="msg_title" placeholder="Veuillez indiquer le titre du message" 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">Contenu du message</label></div>
|
||||
<div class="col-12 col-md-9"><textarea name="msg_body" id="msg_body" rows="9" class="form-control"></textarea>
|
||||
<small class="form-text text-muted">Veuillez écrire le message</small></div>
|
||||
</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>
|
||||
</form>
|
||||
</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>
|
||||
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=r82pabvd9arn3fjb1e2fsolf2xpixuv4hwfwart4cf1fb7mx"></script>
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#msg_body',
|
||||
branding: false,
|
||||
menubar: 'edit view format'
|
||||
});
|
||||
</script>
|
||||
<div class="log"></div>
|
||||
@endsection
|
||||
@@ -4,12 +4,10 @@
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong class="card-title">Activitées des utilisateurs <a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
<strong class="card-title">Messages au staff<a href="#"><i class="fa fa-question-circle" aria-hidden="true"></i>
|
||||
</a></strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<button type="button" class="btn btn-primary btn-lg btn-block">Afficher toutes les activitées</button>
|
||||
<hr>
|
||||
<table id="log-data" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -19,17 +17,25 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 0; ?>
|
||||
@while ($i < $messages->count())
|
||||
<tr>
|
||||
@for ($i = 0; $i < 3; $i++)
|
||||
<td>
|
||||
{{$messages[$i]->title}}
|
||||
<p>{{$messages[$i]->body}}</p>
|
||||
</td>
|
||||
@endfor
|
||||
</tr>
|
||||
@endwhile
|
||||
<?php
|
||||
$messages = $messages->sortByDesc('created_at');
|
||||
$messages = $messages->values();
|
||||
|
||||
$nbOfMsg = $messages->count();
|
||||
$nbOfRow = ceil($nbOfMsg/3);
|
||||
|
||||
for ($i=0; $i < $nbOfRow ; $i++) {
|
||||
echo '<tr>';
|
||||
for ($e=0; $e < 3 ; $e++) {
|
||||
if ($e+(3*$i) < $nbOfMsg) {
|
||||
echo '<td style="width:33%;"><a href="/admin/message/'.$messages[$e+(3*$i)]->id.'"><h3>'.$messages[$e+(3*$i)]->title.'</h3><br><h6>'.\App\User::find($messages[$e+(3*$i)]->user_id)->fullname().' - '.$messages[$e+(3*$i)]->created_at.'</h6><hr><div style="overflow:hidden;height:13.5rem;">'.$messages[$e+(3*$i)]->body.'</div></a><div class="float-right"><a href="/admin/message/edit/'.$messages[$e+(3*$i)]->id.'" type="button" class="btn btn-secondary"><i class="fa fa-cog"></i> Modifier</a><a type="button" class="btn btn-danger" onclick="deleteEvent('.$messages[$e+(3*$i)]->id.');"><i class="fa fa-times-circle" style="color:white;"></i></a></div></td>';
|
||||
} else {
|
||||
echo '<td></td>';
|
||||
}
|
||||
}
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -73,12 +79,47 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('#log-data').DataTable({
|
||||
"ordering": false,
|
||||
"lengthMenu": [[3, 4, -1], [9, 12, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
$(document).ready(function() {
|
||||
$('#log-data').DataTable({
|
||||
"ordering": false,
|
||||
"order": [],
|
||||
"lengthMenu": [[3, 4, -1], [9, 12, "All"]],
|
||||
});
|
||||
} );
|
||||
})(jQuery);
|
||||
|
||||
function deleteEvent(pid){
|
||||
swal({
|
||||
title: 'Êtes vous certain ?',
|
||||
text: "Vous ne pourrez annuler cette action",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Oui',
|
||||
cancelButtonText: 'Non'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/message/delete?api_token='+api_token, { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
|
||||
swal(
|
||||
'Supprimé!',
|
||||
"Le message a été supprimé",
|
||||
'success'
|
||||
).then((result) => {
|
||||
if (result.value) {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
46
resources/views/admin/message/show.blade.php
Normal file
46
resources/views/admin/message/show.blade.php
Normal file
@@ -0,0 +1,46 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-sm-12 col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<strong>{{ $message->title}} par {{ \App\User::find($message->user_id)->fullname() }} publié le {{$message->updated_at}}</strong>
|
||||
</div>
|
||||
<div class="card-body card-block">
|
||||
{!! $message->body !!}
|
||||
</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>Afficher un message</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">Message/Afficher</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: '#msg_body',
|
||||
branding: false,
|
||||
menubar: 'edit view format'
|
||||
});
|
||||
</script>
|
||||
<div class="log"></div>
|
||||
@endsection
|
||||
@@ -25,10 +25,9 @@
|
||||
<td>{{$item->fullname()}}</td>
|
||||
<td>{{\App\Rank::find($item->rank)->name}}</td>
|
||||
<td>{{\App\Job::find($item->job)->name}}</td>
|
||||
<td style="width: 12%;"><a href="/admin/user/edit/{{$item->id}}" type="button" class="btn btn-secondary"><i class="fa fa-cog"></i> Modifier</a><a type="button" class="btn btn-danger" onclick="deleteEvent(6);"><i class="fa fa-times-circle" style="color:white;"></i></a></td>
|
||||
<td style="width: 12%;"><a href="/admin/user/edit/{{$item->id}}" type="button" class="btn btn-secondary"><i class="fa fa-cog"></i> Modifier</a><a type="button" class="btn btn-danger" onclick="deleteEvent({{$item->id}});"><i class="fa fa-times-circle" style="color:white;"></i></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
@@ -96,7 +95,7 @@
|
||||
if (result.value) {
|
||||
|
||||
(function($) {
|
||||
$.post('/api/user/delete', { id: pid } , function(data) {
|
||||
$.post('/api/user/delete?api_token='+api_token, { id: pid } , function(data) {
|
||||
console.log('Delete');
|
||||
});
|
||||
|
||||
|
||||
90
resources/views/errors/404.blade.php
Normal file
90
resources/views/errors/404.blade.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<html lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Error</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
html, body {
|
||||
background-color: #fff;
|
||||
color: #636b6f;
|
||||
font-family: 'Raleway', sans-serif;
|
||||
font-weight: 100;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.full-height {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.position-ref {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36px;
|
||||
padding: 20px;
|
||||
}
|
||||
.loader{
|
||||
text-align: center;
|
||||
}
|
||||
.loader-bg{
|
||||
width: 70px;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
.loader-spinner {
|
||||
position: relative;
|
||||
border: 16px solid #f3f3f3;
|
||||
border-top: 16px solid #272c33;
|
||||
border-radius: 50%;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
animation: spin 2s linear infinite;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
top: -163px;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-center position-ref full-height">
|
||||
<div class="content">
|
||||
<div class="title">
|
||||
<h1 class="glitch" data-text="500" style="font-size: 20rem;margin:0px;">404</h1>
|
||||
</div>
|
||||
<div class="loader">
|
||||
<img class="loader-bg" src="/images/leaf_of_canada.png"></img>
|
||||
<div class="loader-spinner"></div>
|
||||
</div>
|
||||
<div class="title">
|
||||
Oups ... Il n'y a malheureusement rien là {{ $exception->getMessage() }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
||||
90
resources/views/errors/500.blade.php
Normal file
90
resources/views/errors/500.blade.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<html lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Error</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
html, body {
|
||||
background-color: #fff;
|
||||
color: #636b6f;
|
||||
font-family: 'Raleway', sans-serif;
|
||||
font-weight: 100;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.full-height {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.position-ref {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36px;
|
||||
padding: 20px;
|
||||
}
|
||||
.loader{
|
||||
text-align: center;
|
||||
}
|
||||
.loader-bg{
|
||||
width: 70px;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
.loader-spinner {
|
||||
position: relative;
|
||||
border: 16px solid #f3f3f3;
|
||||
border-top: 16px solid #272c33;
|
||||
border-radius: 50%;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
animation: spin 2s linear infinite;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
top: -163px;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-center position-ref full-height">
|
||||
<div class="content">
|
||||
<div class="title">
|
||||
<h1 class="glitch" data-text="500" style="font-size: 20rem;margin:0px;">500</h1>
|
||||
</div>
|
||||
<div class="loader">
|
||||
<img class="loader-bg" src="/images/leaf_of_canada.png"></img>
|
||||
<div class="loader-spinner"></div>
|
||||
</div>
|
||||
<div class="title">
|
||||
Oups ... Le serveur n'aime pas ça, svp laisser lui le temps de soufler {{ $exception->getMessage() }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
||||
@@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Espace Administration</title>
|
||||
<title>Espace Administratio</title>
|
||||
<meta name="description" content="Sufee Admin - HTML5 Admin Template">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
@@ -71,6 +71,10 @@
|
||||
<script src="assets/js/plugins.js"></script>
|
||||
<script src="assets/js/main.js"></script>
|
||||
|
||||
<script>
|
||||
var api_token = "<?php echo Auth::User->api_token ?>";
|
||||
</script>
|
||||
|
||||
@yield('javascript')
|
||||
|
||||
<script src="assets/js/lib/chart-js/Chart.bundle.js"></script>
|
||||
@@ -80,24 +84,6 @@
|
||||
<script src="assets/js/lib/vector-map/jquery.vmap.min.js"></script>
|
||||
<script src="assets/js/lib/vector-map/jquery.vmap.sampledata.js"></script>
|
||||
<script src="assets/js/lib/vector-map/country/jquery.vmap.world.js"></script>
|
||||
<script>
|
||||
( function ( $ ) {
|
||||
"use strict";
|
||||
|
||||
jQuery( '#vmap' ).vectorMap( {
|
||||
map: 'world_en',
|
||||
backgroundColor: null,
|
||||
color: '#ffffff',
|
||||
hoverOpacity: 0.7,
|
||||
selectedColor: '#1de9b6',
|
||||
enableZoom: true,
|
||||
showTooltip: true,
|
||||
values: sample_data,
|
||||
scaleColors: [ '#1de9b6', '#03a9f5' ],
|
||||
normalizeFunction: 'polynomial'
|
||||
} );
|
||||
} )( jQuery );
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
<script src="/assets/admin/assets/js/main.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@7.26.11/dist/sweetalert2.all.min.js"></script>
|
||||
|
||||
<script>
|
||||
var api_token = "<?php echo Auth::User()->api_token ?>";
|
||||
</script>
|
||||
|
||||
<script src="/assets/admin/assets/js/lib/chart-js/Chart.bundle.js"></script>
|
||||
<script src="/assets/admin/assets/js/dashboard.js"></script>
|
||||
@@ -12,3 +15,4 @@
|
||||
<script src="/assets/admin/assets/js/lib/vector-map/jquery.vmap.min.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/vector-map/jquery.vmap.sampledata.js"></script>
|
||||
<script src="/assets/admin/assets/js/lib/vector-map/country/jquery.vmap.world.js"></script>
|
||||
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=r82pabvd9arn3fjb1e2fsolf2xpixuv4hwfwart4cf1fb7mx"></script>
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-envelope"></i>{{ trans('admin/sidebar.msg_title')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="#">{{ trans('admin/sidebar.public_page_see')}}</a></li>
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="#">{{ trans('admin/sidebar.public_page_see')}}</a></li>
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="#">{{ trans('admin/sidebar.public_page_see')}}</a></li>
|
||||
<li><i class="menu-icon fa fa-eye "></i><a href="/admin/message">Afficher les messages</a></li>
|
||||
<li><i class="menu-icon fa fa-plus"></i><a href="/admin/message/add">Ajouter un message</a></li>
|
||||
<li><i class="menu-icon fa fa-times"></i><a href="/admin/message">Supprimer un message</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
@@ -38,11 +38,8 @@
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="#">{{ trans('admin/sidebar.public_page_see')}}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-calendar"></i>{{ trans('admin/sidebar.calendar_title')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="/admin/calendar">{{ trans('admin/sidebar.calendar_display')}}</a></li>
|
||||
</ul>
|
||||
<li>
|
||||
<a href="/admin/calendar"> <i class="menu-icon fa fa-calendar"></i>Horaire</a>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-cogs"></i>{{ trans('admin/sidebar.services_title')}}</a>
|
||||
@@ -55,18 +52,21 @@
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-area-chart"></i>{{ trans('admin/sidebar.stats_title')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/log">Liste des activitées</a></li>
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/">Vue d'ensemble</a></li>
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/log">Liste des activitées</a></li>
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/message">Message de la semaine</a></li>
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/stats/plan">Remise des plans de cours</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-users"></i>{{ trans('admin/sidebar.users_title')}}</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-user-secret"></i><a href="/admin/log">Activitées des utilisateurs</a></li>
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="/admin/users">Liste des utilisateurs</a></li>
|
||||
<li><i class="menu-icon fa fa-list"></i><a href="/admin/user">Liste des utilisateurs</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item-has-children dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-cogs"></i>{{ trans('admin/sidebar.config')}}</a>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="menu-icon fa fa-cogs"></i>Configuration</a>
|
||||
<ul class="sub-menu children dropdown-menu">
|
||||
<li><i class="menu-icon fa fa-cog"></i><a href="/admin/config">Général</a></li>
|
||||
<li><i class="menu-icon fa fa-building"></i><a href="/admin/config/local">Locaux</a></li>
|
||||
|
||||
@@ -140,10 +140,10 @@
|
||||
<footer id="footer">
|
||||
<ul class="icons">
|
||||
<li><a href="#" class="icon fa-twitter"><span class="label">Twitter</span></a></li>
|
||||
<li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
|
||||
<li><a href="https://www.facebook.com/cadetsdelairrimouski/" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
|
||||
<li><a href="#" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
|
||||
<li><a href="#" class="icon fa-dribbble"><span class="label">Dribbble</span></a></li>
|
||||
<li><a href="#" class="icon fa-envelope-o"><span class="label">Email</span></a></li>
|
||||
<li><a href="mailto:example@aaa.com" class="icon fa-envelope-o"><span class="label">Email</span></a></li>
|
||||
</ul>
|
||||
<ul class="copyright">
|
||||
<li>© Untitled</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
|
||||
|
||||
64
resources/views/vendor/notifications/email.blade.php
vendored
Normal file
64
resources/views/vendor/notifications/email.blade.php
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
@component('mail::message')
|
||||
{{-- Greeting --}}
|
||||
@if (! empty($greeting))
|
||||
# {{ $greeting }}
|
||||
@else
|
||||
@if ($level == 'error')
|
||||
# @lang('Whoops!')
|
||||
@else
|
||||
# @lang('Hello!')
|
||||
@endif
|
||||
@endif
|
||||
|
||||
{{-- Intro Lines --}}
|
||||
@foreach ($introLines as $line)
|
||||
{{ $line }}
|
||||
|
||||
@endforeach
|
||||
|
||||
{{-- Action Button --}}
|
||||
@isset($actionText)
|
||||
<?php
|
||||
switch ($level) {
|
||||
case 'success':
|
||||
$color = 'green';
|
||||
break;
|
||||
case 'error':
|
||||
$color = 'red';
|
||||
break;
|
||||
default:
|
||||
$color = 'blue';
|
||||
}
|
||||
?>
|
||||
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
|
||||
{{ $actionText }}
|
||||
@endcomponent
|
||||
@endisset
|
||||
|
||||
{{-- Outro Lines --}}
|
||||
@foreach ($outroLines as $line)
|
||||
{{ $line }}
|
||||
|
||||
@endforeach
|
||||
|
||||
{{-- Salutation --}}
|
||||
@if (! empty($salutation))
|
||||
{{ $salutation }}
|
||||
@else
|
||||
Cordialement,<br>{{ config('app.name') }}
|
||||
@endif
|
||||
|
||||
{{-- Subcopy --}}
|
||||
@isset($actionText)
|
||||
@component('mail::subcopy')
|
||||
@lang(
|
||||
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
|
||||
'into your web browser: [:actionURL](:actionURL)',
|
||||
[
|
||||
'actionText' => $actionText,
|
||||
'actionURL' => $actionUrl
|
||||
]
|
||||
)
|
||||
@endcomponent
|
||||
@endisset
|
||||
@endcomponent
|
||||
76
resources/views/william.blade.php
Normal file
76
resources/views/william.blade.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="lPHUGUCSLvaSRcwApSQAmNdRXiT2rEmbX8GjweRf">
|
||||
|
||||
<title>C-CMS</title>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://dev.c-cms.cf/js/app.js" defer></script>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,600" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Styles -->
|
||||
<link href="https://dev.c-cms.cf/css/app.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
|
||||
</head>
|
||||
<body style="background-color: #343a40 !important">
|
||||
<div id="app">
|
||||
<nav class="navbar navbar-expand-md navbar-light navbar-laravel" style="background:#272c33;">
|
||||
<div class="container">
|
||||
<a class="navbar-brand">
|
||||
<img src="/assets/admin/images/C-CMS_s.png" alt="Logo">
|
||||
</a>
|
||||
<div class="float-right" style="color:white;">Status <i class="fas fa-circle" style="color:green;"></i>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="py-4" style="margin-top: 11%">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
<div class="card-header">Escadron 697</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<img src="/images/leaf_of_canada.png" alt="logo" style="width:8rem">
|
||||
</div>
|
||||
<div class="col-md-9" style="margin:auto;">
|
||||
<a class="btn btn-primary btn-block" style="color:white;"><strong><i class="fas fa-sign-in-alt"></i> Connexion ...</strong></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
<div class="card-header">Escadron 736</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<img src="/images/leaf_of_canada.png" alt="logo" style="width:8rem">
|
||||
</div>
|
||||
<div class="col-md-9" style="margin:auto;">
|
||||
<a class="btn btn-primary btn-block" style="color:white;"><strong><i class="fas fa-sign-in-alt"></i> Connexion ...</strong></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user