mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Ajout de la BD OCOM
This commit is contained in:
@@ -9,6 +9,19 @@
|
||||
<div class="card-body">
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-1 text-center align-middle p-3">
|
||||
@if($ocom->wasGiven() != false)
|
||||
<div data-toggle="tooltip" data-placement="right" title="Le cours a été donné cette année">
|
||||
<p class="d-none">1</p>
|
||||
<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 pas été donné cette année">
|
||||
<p class="d-none">0</p>
|
||||
<i class="fas fa-times-circle fa-2x text-warning"></i>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label>OREN</label>
|
||||
<p>{{$ocom->oren}}</p>
|
||||
@@ -21,7 +34,7 @@
|
||||
<label>Objectif de compétence</label>
|
||||
<p>{{$ocom->objectif_competence}}</p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-3">
|
||||
<label>Nombre de période</label>
|
||||
<p>{{$ocom->nbPeriode}}</p>
|
||||
</div>
|
||||
@@ -30,15 +43,15 @@
|
||||
<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>
|
||||
<a href="/admin/ocom/edit/{{$ocom->id}}" class="btn btn-warning">Modifier</a>
|
||||
<button type="button" class="btn btn-danger" onclick="deleteOCOM('{{$ocom->id}}')">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>
|
||||
<p class="text-center text-muted">Le cours n'a jamais été donnée</p>
|
||||
@else
|
||||
<table class="table table-striped">
|
||||
<table id="table" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
@@ -72,12 +85,14 @@
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/js/ocom.js"></script>
|
||||
<script>
|
||||
$('.tooltip').tooltip('enable')
|
||||
$(document).ready(function() {
|
||||
$('#table').DataTable({
|
||||
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
|
||||
"ordering" : true,
|
||||
"order": [[1, "asc"]]
|
||||
});
|
||||
} );
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user