ldc-dam/resources/views/layouts/media_edit.blade.php
2019-08-09 10:51:42 +02:00

290 lines
11 KiB
PHP

@section('media_edit')
<div id="form_media" style="display: none;" >
<header class="group">
<a href="#" class="tabbtn form_media_preview active" data-tab="0">Aperçu</a>
<a href="#" class="tabbtn form_media_edit" data-tab="1">Edition</a>
@if (Auth::user()->hasRole([config('roles.const.CONTRIBUTEUR'), config('roles.const.ADMIN'), config('roles.const.REDACTEUR')]))
<a href="#" class="tabbtn form_media_retouch" data-tab="2">Retouche</a>
@endif
<a href="#" class="tabbtn form_media_links" data-tab="3">Vignettes</a>
<a href="#" class="tabbtn form_media_history" data-tab="4">Historique</a>
<a href="#" class="form_media_close"><i class="fal fa-times"></i></a>
<a href="#" class="form_media_download" title="Téléchargez ce média"><i class="fas fa-arrow-circle-down"></i></a>
<a href="#" class="form_media_replace" title="Chargez un autre média"><i class="fas fa-file-upload"></i></a>
</header>
<div class="main_content">
<div class="tab tab_preview active"></div>
<div class="tab tab_edit">
<div class="tab_content">
<div class="wrapper">
<h3>Informations générales</h3>
<form class="form_edit_media" action="#" method="post">
<div class="row arcadia_fields">
<label for="arcadia_id">Code Arcadia</label>
<div class="">
<input type="number" value="" id="arcadia_id" name="arcadia_id" readonly >
@if (Auth::user()->hasRole(config('roles.const.ADMIN')))
<button class="btn btn-square ml-10 btn-arcadia-link" type="button" name="button"><i class="far fa-link"></i> Lien avec Arcadia</button>
@endif
</div>
</div>
<div class="row">
<label for="libelle">Intitulé <span>*</span></label>
<input type="text" value="" id="libelle" name="libelle" required >
</div>
<div class="row">
<label for="typesujet">Sujet <span>*</span></label>
<input id="sujetLibelle" type="text" value="" name="sujetLibelle" readonly >
</div>
<div class="row">
<label for="typemedias">Type de média</label>
<select id="typemedias" name="typemedias" disabled >
@foreach ($typemedias as $typemedia)
<option value="{{$typemedia->codeTypemedia}}" >{{$typemedia->libelle}}</option>
@endforeach
</select>
</div>
<div class="row">
<label for="typevues">Type de vue</label>
<select id="typevues" name="typevues"></select>
</div>
<div class="row">
<label for="variantes">Type de variante</label>
<select id="variantes" name="variantes"></select>
</div>
<div class="row">
<label for="langues">Langue</label>
<select id="langues" name="langues">
@foreach ($langues as $langue)
<option value="{{$langue->langue_id}}" >{{$langue->libelle}}</option>
@endforeach
</select>
</div>
<div class="row">
<label for="commentaire">Commentaire</label>
<textarea id="commentaire" name="commentaire" ></textarea>
</div>
<div class="row">
<label for="version">Version <span>*</span></label>
<input type="number" id="version" name="version" required >
</div>
<div class="row">
<label for="created_at">Date de création</label>
<input type="text" id="created_at" name="created_at" readonly >
</div>
<div class="row">
<label for="published_at">Créé par</label>
<input type="text" id="created_by" name="created_by" readonly >
</div>
<div class="row">
<label for="updated_at">Date de modification</label>
<input type="text" id="updated_at" name="updated_at" readonly >
</div>
<div class="row">
<label for="published_at">Date de publication</label>
<input type="date" id="published_at" name="published_at" >
</div>
<div class="row">
<label for="statut">Statut</label>
<select id="statut" name="statut">
<option value="0">Brouillon</option>
<option value="1">Public</option>
<option value="2">Public étendu</option>
</select>
</div>
</form>
</div>
<div class="wrapper arcadia_fields">
<h3>Informations liées au sujet</h3>
<div class="row societe_form dataform">
<label for="societe">Société</label>
<div class="selector_form selector_societes">
<input type="text" class="selector_filter" name="search" value="" placeholder="Rechercher..." autocomplete="off">
<div class="selector_list">
<ul class="selector_choices" >
@foreach ($societes as $societe)
<li data-value="{{$societe->id}}" >{{$societe->libelle}}</li>
@endforeach
</ul>
<ul class="selector_values" >
</ul>
<input class="selector_dataValues" type="hidden" name="societes" value="">
</div>
</div>
</div>
<div class="row marque_form dataform">
<label for="marque">Marque</label>
<div class="selector_form selector_marques">
<input type="text" class="selector_filter" name="search" value="" placeholder="Rechercher..." autocomplete="off">
<div class="selector_list">
<ul class="selector_choices" >
@foreach ($marques as $marque)
<li data-value="{{$marque->codMarq}}" >{{$marque->libMarq}}</li>
@endforeach
</ul>
<ul class="selector_values" >
</ul>
<input class="selector_dataValues" type="hidden" name="marques" value="">
</div>
</div>
</div>
<div class="row_xl article_form">
<label for="tag">Articles associées</label>
<div class="article_selector">
<table>
<thead>
<tr>
<th>No Article</th>
<th>Famille Vente</th>
<th>Marque</th>
<th>Gencod Administratif</th>
<th>Gencod Symbolise</th>
<th>Gencod Poids</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr><td colspan="7"></td></tr>
</tfoot>
</table><br/>
<button class="add_article btn btn-black btn-square floatr" type="button" name="button"><i class="far fa-plus"></i> Ajouter</button>
<input id="articles" type="hidden" name="articles" value="">
</div>
<table class="hidden_row" style="display:none;">
<tr>
<td class="col_lib"></td>
<td class="col_famVente"></td>
<td class="col_marque"></td>
<td class="col_gencodAdm"></td>
<td class="col_gencodSymb"></td>
<td class="col_gencodPds"></td>
<td><a href="#" class="remove_article" data-id=""><i class="far fa-times"></i></a></td>
</tr>
</table>
</div>
</div>
<div class="wrapper">
<h3>Tags & étiquettes</h3>
<div class="row">
<label for="tag">Nuage de tags</label>
<div class="cloud_tag_plugin">
<textarea id="tag-editor"></textarea>
</div>
</div>
<div class="row">
<label for="etiquettes">Etiquette</label>
<select id="etiquettes" name="etiquettes">
@foreach ($etiquettes as $etiquette)
<option value="{{$etiquette->etiquette_id}}" >{{$etiquette->libelle}}</option>
@endforeach
</select>
</div>
</div>
<div class="wrapper">
<h3>Informations techniques</h3>
<div class="row">
<label for="extension">Extension</label>
<input type="text" id="extension" name="extension" readonly >
</div>
<div class="row">
<label for="copyrights">Copyright</label>
<select id="copyrights" name="copyrights">
@foreach ($copyrights as $copyright)
<option value="{{$copyright->copyright_id}}" >{{$copyright->libelle}}</option>
@endforeach
</select>
</div>
<div class="row">
<label for="largeur">Largeur</label>
<input type="text" id="largeur" name="largeur" readonly >
</div>
<div class="row">
<label for="hauteur">Hauteur</label>
<input type="text" id="hauteur" name="hauteur" readonly >
</div>
<div class="row">
<label for="resolution">Résolution</label>
<input type="text" id="resolution" name="resolution" readonly >
</div>
<div class="row">
<label for="largeur_mm">Largeur en mm</label>
<input type="text" id="largeur_mm" name="largeur_mm" readonly >
</div>
<div class="row">
<label for="hauteur_mm">Hauteur en mm</label>
<input type="text" id="hauteur_mm" name="hauteur_mm" readonly >
</div>
</div>
</div>
<div class="button_bar">
<a href="#" class="btn btn-black mr-10 btn_tab_edit_cancel">Fermer</a>
@if (Auth::user()->hasRole([config('roles.const.CONTRIBUTEUR'), config('roles.const.ADMIN'), config('roles.const.REDACTEUR')]))
<button class="btn btn_tab_edit_save" type="button" name="button">Sauvegarder</button>
@endif
</div>
</div>
@if (Auth::user()->hasRole([config('roles.const.CONTRIBUTEUR'), config('roles.const.ADMIN'), config('roles.const.REDACTEUR')]))
<div class="tab tab_retouch"></div>
@endif
<div class="tab tab_links">
<div class="tab_content">
<div class="wrapper">
<h3>Liens vers les vignettes</h3>
<table class="table_links">
<thead>
<tr>
<th>FORMAT</th>
<th>URL</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<td colspan="2">
</td>
</tr>
</tfoot>
</table>
<div class="row_copy_hidden" style="display:none;">
<table>
<tr>
<td class="link_libelle"></td>
<td class="link_input"><input type="text" readonly value="" name="" ><i class="fal fa-copy" ></i></td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="tab tab_history">
<div class="tab_content">
<div class="wrapper">
<h3>Historique des actions</h3>
<table>
<thead>
<tr>
<th>DATE</th>
<th>UTILISATEUR</th>
<th>TYPE</th>
<th>COMMENTAIRE</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<td colspan="4">
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection