@extends('layouts.admin') @section('css') @parent {!! Html::style('adminbsb_plugins/bootstrap-select/css/bootstrap-select.min.css') !!} @stop @section('content')

cloud Extranet/Partage de documents

{!! Form::model($document, array("files" => true, "class" => "form-horizontal")) !!}
@if($document != null) {!! Form::submit("Enregistrer et rester sur la page", array("class" => "btn btn-sm bg-teal waves-effect m-l-15 pull-right", "name" => "saveAndkeep")) !!} @endif {!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Depot\Controller\DepotController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect pull-right")) !!}

Détail d'un document

Éditer un document

{!! Form::text('titre', old('titre'), array("class" => "form-control", "placeholder" => "Titre du document", "required")) !!}
@foreach($depotCategories as $depotCategorie) {!! Form::checkbox('categories[]', $depotCategorie->id, $document ? isDepotCategorie($depotCategorie->id, $document->categories) : false, array("id" => "categorie-" . $depotCategorie->id, "class" => "filled-in chk-col-teal")) !!} @endforeach
@foreach($profils as $profil) {!! Form::checkbox('profils[]', $profil->id, $document ? isProfil($profil->id, $document->profils) : false, array("id" => "profil-" . $profil->id, "class" => "filled-in chk-col-teal")) !!} @endforeach
{!! Form::file('fiche', array("class" => "form-control")) !!}
@if($document && $document->fichier)
{{ $document->fichier }}
@endif

Image de couverture du document

Le seul format accepté est le .jpg
Le poids de votre image ne doit pas dépasser 5 Mo.

{!! Form::file('couverture', array("class" => "form-control")) !!}
@if($document && is_dir(public_path()."/plugins/depot/img/{$document->id}") && file_exists( public_path()."/plugins/depot/img/{$document->id}/couverture.jpg" ))
{!! Html::image('plugins/depot/img/' . $document->id . "/couverture.jpg", "", array("class" => "img-responsive", "width" => 300)) !!} delete_forever
@endif
{!! Form::hidden('id') !!} {!! Form::hidden('fichier') !!} @if($document) {!! Form::hidden('old_cat', $document->depot_categorie_id) !!} {!! Form::hidden('old_user', $document->user_id) !!} @endif {!! Form::close() !!} @stop @section('js') @parent {!! Html::script("adminbsb_plugins/bootstrap-select/js/bootstrap-select.min.js") !!} @stop