mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
April 9 update
This commit is contained in:
@@ -108,4 +108,7 @@
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
<small class="float-right mr-4">Dernière mise à jour {{date('r')}}</small>
|
||||
<small class="float-right mr-4">Dernière mise à jour {{date('r')}}</small>
|
||||
<script>
|
||||
updateHeader('{{$permission['p']}}');
|
||||
</script>
|
||||
@@ -11,7 +11,7 @@
|
||||
<button id="refreshbtn" type="button" onclick="refreshFolder()" class="border-0 bg-transparent ml-3 hover-spin cursor active-spin no-outline" style="margin-bottom: -10px;margin-top: -2px;font-size: 1.1rem"><i class="fas fa-sync-alt"></i></button>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm d-flex justify-content-end offset-md-7 mt-2 mt-sm-0">
|
||||
<div class="dropdown mr-md-2">
|
||||
<div class="dropdown mr-md-2 d-none" id="createDropdown">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-plus"></i> Nouveau
|
||||
</button>
|
||||
@@ -19,13 +19,12 @@
|
||||
<a class="dropdown-item" data-toggle="modal" data-target="#createFolderModal"><i class="fas fa-folder mr-3"></i> Dossier</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dropdown">
|
||||
<div class="dropdown d-none" id="uploadDropdown">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-upload"></i> Téléverser
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a class="dropdown-item" data-toggle="modal" data-target="#uploadFileModal"><i class="fas fa-file mr-3"></i> Fichier</a>
|
||||
<a class="dropdown-item" href="#"><i class="fas fa-folder mr-3"></i> Dossier</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -141,6 +140,10 @@
|
||||
<script src="/js/plugins/jquery.contextMenu.min.js"></script>
|
||||
<script src="/js/plugins/drive-explorer.js"></script>
|
||||
<script>
|
||||
@if(isset($mode))
|
||||
init("{{$folder}}","{{$mode}}");
|
||||
@else
|
||||
init("{{$folder}}");
|
||||
@endif
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5>Permission des grades</h5>
|
||||
<table class="table table-striped w-100">
|
||||
<table class="table table-striped table-responsive w-100">
|
||||
<thead class="table-dark">
|
||||
<tr class="text-center">
|
||||
<td class="text-left" style="width: 25%">Grade</td>
|
||||
@@ -17,9 +17,9 @@
|
||||
<td>Écriture</td>
|
||||
<td>Gestion</td>
|
||||
<td style="width: 6rem;">
|
||||
<a href="/admin/ocom/edit" class="btn btn-primary btn-fab btn-fab-mini btn-round m-0">
|
||||
<button class="btn btn-primary btn-fab btn-fab-mini btn-round m-0" onclick="addPermission('{{$dir->id}}','rank')">
|
||||
<i class="material-icons">add</i>
|
||||
</a>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -101,7 +101,7 @@
|
||||
<button class="btn btn-primary btn-fab btn-fab-mini btn-round" onclick="editPermission('{{$dir->id}}','rank','{{$key}}')">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button class="btn btn-danger btn-fab btn-fab-mini btn-round">
|
||||
<button class="btn btn-danger btn-fab btn-fab-mini btn-round" onclick="deletePermission('{{$dir->id}}','rank','{{$key}}')">
|
||||
<i class="material-icons">delete</i>
|
||||
</button>
|
||||
</td>
|
||||
@@ -111,7 +111,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h5 class="mt-5">Permission des postes</h5>
|
||||
<table class="table table-striped w-100">
|
||||
<table class="table table-striped table-responsive w-100">
|
||||
<thead class="table-dark">
|
||||
<tr class="text-center">
|
||||
<td class="text-left" style="width: 25%">Poste</td>
|
||||
@@ -119,9 +119,9 @@
|
||||
<td>Écriture</td>
|
||||
<td>Gestion</td>
|
||||
<td style="width: 6rem;">
|
||||
<a href="/admin/ocom/edit" class="btn btn-primary btn-fab btn-fab-mini btn-round m-0">
|
||||
<button class="btn btn-primary btn-fab btn-fab-mini btn-round m-0" onclick="addPermission('{{$dir->id}}','job')">
|
||||
<i class="material-icons">add</i>
|
||||
</a>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -163,7 +163,7 @@
|
||||
<button class="btn btn-primary btn-fab btn-fab-mini btn-round" onclick="editPermission('{{$dir->id}}','job','{{$key}}')">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button class="btn btn-danger btn-fab btn-fab-mini btn-round">
|
||||
<button class="btn btn-danger btn-fab btn-fab-mini btn-round" onclick="deletePermission('{{$dir->id}}','job','{{$key}}')">
|
||||
<i class="material-icons">delete</i>
|
||||
</button>
|
||||
</td>
|
||||
@@ -172,7 +172,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h5 class="mt-5">Permission des utilisateurs</h5>
|
||||
<table class="table table-striped w-100">
|
||||
<table class="table table-striped table-responsive w-100">
|
||||
<thead class="table-dark">
|
||||
<tr class="text-center">
|
||||
<td class="text-left" style="width: 25%">Utilisateurs</td>
|
||||
@@ -180,9 +180,9 @@
|
||||
<td>Écriture</td>
|
||||
<td>Gestion</td>
|
||||
<td style="width: 6rem;">
|
||||
<a href="/admin/ocom/edit" class="btn btn-primary btn-fab btn-fab-mini btn-round m-0">
|
||||
<button class="btn btn-primary btn-fab btn-fab-mini btn-round m-0" onclick="addPermission('{{$dir->id}}','user')">
|
||||
<i class="material-icons">add</i>
|
||||
</a>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -224,7 +224,7 @@
|
||||
<button class="btn btn-primary btn-fab btn-fab-mini btn-round" onclick="editPermission('{{$dir->id}}','user','{{$key}}')">
|
||||
<i class="material-icons">edit</i>
|
||||
</button>
|
||||
<button class="btn btn-danger btn-fab btn-fab-mini btn-round">
|
||||
<button class="btn btn-danger btn-fab btn-fab-mini btn-round" onclick="deletePermission('{{$dir->id}}','user','{{$key}}')">
|
||||
<i class="material-icons">delete</i>
|
||||
</button>
|
||||
</td>
|
||||
@@ -235,6 +235,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@csrf
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bd-example-modal-lg">Large modal</button>
|
||||
|
||||
<div id="permissionModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
|
||||
@@ -258,10 +259,6 @@
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
Fichier / Google Drive
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script src="/js/plugins/jquery.ui.position.min.js"></script>
|
||||
<script src="/js/plugins/jquery.contextMenu.min.js"></script>
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Modification des permissions</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<form action="/admin/drive/{{$folder->id}}/addpermission/{{$s}}" method="post">
|
||||
<input id="csrf" type="hidden" name="_token" value="">
|
||||
@method('patch')
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
@if($s == 'rank')
|
||||
<select class="selectpicker" name="id" data-style="btn btn-primary btn-round" title="Grade" required>
|
||||
@foreach($list as $l)
|
||||
<option value="{{$l->id}}">{{$l->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@elseif($s == 'job')
|
||||
<select class="selectpicker" name="id" data-style="btn btn-primary btn-round" title="Poste" required>
|
||||
@foreach($list as $l)
|
||||
<option value="{{$l->id}}">{{$l->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@else
|
||||
<select class="selectpicker" name="id" data-style="btn btn-primary btn-round" title="Utilisateur" required>
|
||||
@foreach($list as $l)
|
||||
<option value="{{$l->id}}">{{$l->fullname()}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="togglebutton row">
|
||||
<div class="col-3">
|
||||
<label>
|
||||
<input name="read" type="checkbox">
|
||||
<span class="toggle"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label>Peux consulter les fichiers a l'intérieur du dossier</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="togglebutton row">
|
||||
<div class="col-3">
|
||||
<label>
|
||||
<input name="write" type="checkbox">
|
||||
<span class="toggle"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label>Peux modifier les fichiers a l'intérieur du dossier</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="togglebutton row">
|
||||
<div class="col-3">
|
||||
<label>
|
||||
<input name="perm" type="checkbox">
|
||||
<span class="toggle"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label>Peux gérer le dossier</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Sauvegarder</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
|
||||
</div>
|
||||
<script>
|
||||
$('select').selectpicker();
|
||||
</script>
|
||||
</form>
|
||||
@@ -5,7 +5,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<form action="/admin/drive/{{$folder->id}}/permission/{{$s}}/{{$subject->id}}" method="post">
|
||||
@csrf
|
||||
<input id="csrf" type="hidden" name="_token" value="">
|
||||
@method('patch')
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="togglebutton row">
|
||||
<div class="col-3">
|
||||
<label>
|
||||
<input type="checkbox" @if(strpos($perm,'r') !== false) checked @endif>
|
||||
<input name="read" type="checkbox" @if(strpos($perm,'r') !== false) checked @endif>
|
||||
<span class="toggle"></span>
|
||||
</label>
|
||||
</div>
|
||||
@@ -39,7 +39,7 @@
|
||||
<div class="togglebutton row">
|
||||
<div class="col-3">
|
||||
<label>
|
||||
<input type="checkbox" @if(strpos($perm,'w') !== false) checked @endif>
|
||||
<input name="write" type="checkbox" @if(strpos($perm,'w') !== false) checked @endif>
|
||||
<span class="toggle"></span>
|
||||
</label>
|
||||
</div>
|
||||
@@ -52,7 +52,7 @@
|
||||
<div class="togglebutton row">
|
||||
<div class="col-3">
|
||||
<label>
|
||||
<input type="checkbox" @if(strpos($perm,'p') !== false) checked @endif>
|
||||
<input name="perm" type="checkbox" @if(strpos($perm,'p') !== false) checked @endif>
|
||||
<span class="toggle"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user