mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Debut BD Cours
This commit is contained in:
21
resources/assets/js/app.js
vendored
21
resources/assets/js/app.js
vendored
@@ -1,22 +1 @@
|
||||
|
||||
/**
|
||||
* First we will load all of this project's JavaScript dependencies which
|
||||
* includes Vue and other libraries. It is a great starting point when
|
||||
* building robust, powerful web applications using Vue and Laravel.
|
||||
*/
|
||||
|
||||
require('./bootstrap');
|
||||
|
||||
window.Vue = require('vue');
|
||||
|
||||
/**
|
||||
* Next, we will create a fresh Vue application instance and attach it to
|
||||
* the page. Then, you may begin adding components to this application
|
||||
* or customize the JavaScript scaffolding to fit your unique needs.
|
||||
*/
|
||||
|
||||
Vue.component('example-component', require('./components/ExampleComponent.vue'));
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app'
|
||||
});
|
||||
|
||||
75
resources/views/admin/ocom/index.blade.php
Normal file
75
resources/views/admin/ocom/index.blade.php
Normal file
@@ -0,0 +1,75 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header card-header-primary">
|
||||
<h4 class="card-title">Liste des cours</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="content">
|
||||
<p>Liste des cours dans la base de données</p>
|
||||
<table class="table table-striped table-no-bordered table-hover dataTable dtr-inline" id="table" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 4.5rem">Status</th>
|
||||
<th style="width: 4.5rem">OREN</th>
|
||||
<th style="width: 4.5rem">OCOM</th>
|
||||
<th style="width: 7rem">Nb Periode</th>
|
||||
<th>Objectif de rendement</th>
|
||||
<th>Objectif de compétence</th>
|
||||
<th style="width: 6rem"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($ocoms as $ocom)
|
||||
<tr class="cursor" onclick="navigate({{$ocom->id}})">
|
||||
<td class="text-center">
|
||||
@if($ocom->course_id != "")
|
||||
<div data-toggle="tooltip" data-placement="right" title="Le cours a été donné">
|
||||
<i class="fas fa-check-circle fa-2x text-success"></i>
|
||||
</div>
|
||||
@else
|
||||
<div data-toggle="tooltip" data-placement="right" title="Le cours n'a jamais été donné">
|
||||
<i class="fas fa-times-circle fa-2x text-warning"></i>
|
||||
</div>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{$ocom->oren}}</td>
|
||||
<td>{{$ocom->ocom}}</td>
|
||||
<td>{{$ocom->nbPeriode}}</td>
|
||||
<td>{{$ocom->objectif_rendement}}</td>
|
||||
<td>{{$ocom->objectif_competence}}</td>
|
||||
<td>
|
||||
<button class="btn btn-primary btn-fab btn-fab-mini btn-round">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button class="btn btn-danger btn-fab btn-fab-mini btn-round">
|
||||
<i class="material-icons">delete</i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<a class="navbar-brand">Base de données des cours</a>
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script>
|
||||
$('.tooltip').tooltip('enable')
|
||||
$(document).ready(function() {
|
||||
$('#table').DataTable({
|
||||
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
|
||||
"ordering" : true,
|
||||
});
|
||||
} );
|
||||
</script>
|
||||
@endsection
|
||||
84
resources/views/admin/ocom/show.blade.php
Normal file
84
resources/views/admin/ocom/show.blade.php
Normal file
@@ -0,0 +1,84 @@
|
||||
@extends('layouts.admin.main')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header card-header-primary">
|
||||
<h4 class="card-title">{{$ocom->ocom.' / '.$ocom->objectif_competence}}</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<label>OREN</label>
|
||||
<p>{{$ocom->oren}}</p>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>OCOM</label>
|
||||
<p>{{$ocom->ocom}}</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Objectif de compétence</label>
|
||||
<p>{{$ocom->objectif_competence}}</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Nombre de période</label>
|
||||
<p>{{$ocom->nbPeriode}}</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Objectif de rendement</label>
|
||||
<p>{{$ocom->objectif_rendement}}</p>
|
||||
</div>
|
||||
<div class="col-md-8 text-right">
|
||||
<button type="button" class="btn btn-warning">Modifier</button>
|
||||
<button type="button" class="btn btn-danger">Supprimer</button>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label>Index des périodes</label>
|
||||
@if($ocom->course_id == "")
|
||||
<p class="text-center text-muted">Le cours n'est jamais donnée</p>
|
||||
@else
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Date</th>
|
||||
<th>Instructeur</th>
|
||||
<th>Niveau</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($ocom->courses() as $course)
|
||||
<tr>
|
||||
<th>{{$course->id}}</th>
|
||||
<td>{{$course->event->date_begin}}</td>
|
||||
<td>{{$course->instructor()}}</td>
|
||||
<td>{{$course->level}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<a class="navbar-brand" href="/admin/ocom">Base de données des cours</a> / {{$ocom->ocom}}
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script>
|
||||
$('.tooltip').tooltip('enable')
|
||||
$(document).ready(function() {
|
||||
$('#table').DataTable({
|
||||
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
|
||||
"ordering" : true,
|
||||
});
|
||||
} );
|
||||
</script>
|
||||
@endsection
|
||||
@@ -13,7 +13,7 @@ foreach (Auth::user()->unreadNotifications as $notification) {
|
||||
<i class="material-icons design_bullet-list-67 visible-on-sidebar-mini">view_list</i>
|
||||
</button>
|
||||
</div>
|
||||
<a class="navbar-brand">@yield('breadcrumb')</a>
|
||||
@yield('breadcrumb')
|
||||
</div>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
|
||||
@@ -43,3 +43,5 @@
|
||||
</script>
|
||||
|
||||
<script src="https://cloud.tinymce.com/stable/tinymce.min.js?apiKey=r82pabvd9arn3fjb1e2fsolf2xpixuv4hwfwart4cf1fb7mx"></script>
|
||||
|
||||
<script src="/js/app.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user