@extends('layouts.admin') @section('content')

camera Galerie photos

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

Album photos

Éditer un album photos

{!! Form::text('libelle', old('libelle'), array("class" => "form-control", "placeholder" => "Nom de l'album photos", "required")) !!}
{!! Form::text('soustitre', old('soustitre'), array("class" => "form-control", "placeholder" => "Sous-titre")) !!}
@foreach($tags as $tag) {!! Form::checkbox('tags[]', $tag->id, $galerie ? isTag($tag->id, $galerie->tags) : false, array("id" => "tag-{$tag->id}", "class" => "filled-in chk-col-teal")) !!} @endforeach
{!! Form::checkbox('page_accueil', 1, old('page_accueil'), array("id" => 'page_accueil', "class" => "filled-in chk-col-teal")) !!}

Description de l'album photos

{!! Form::textarea('description', old('description'), array('style' => 'width: 100%', "class" => "editor")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Galerie\Controller\GalerieController@admin') . "'", "class" => "btn btn-sm bg-orange m-t-15 waves-effect")) !!} {!! Form::submit("Enregistrer et rester sur la page", array("class" => "btn btn-sm bg-teal waves-effect m-l-15 m-t-15 pull-right", "name" => "saveAndkeep")) !!}
@if(count(getAllLangues()) > 1) @foreach (getAllLangues() as $langue) @if($langue->suffixe != "fre")
{!! Form::submit("Enregistrer et rester sur la page", array("class" => "btn btn-sm bg-teal waves-effect m-l-15 pull-right", "name" => "saveAndkeep")) !!} {!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Galerie\Controller\GalerieController@admin') . "'", "class" => "btn btn-sm bg-orange waves-effect pull-right")) !!}

Album photos

Éditer un album photos

{!! Form::text($langue->suffixe . '_libelle', getTranslation("Galerie", "libelle", $galerie ? $galerie->id : null, $galerie ? $galerie->libelle : null, $langue->suffixe), array("class" => "form-control", "placeholder" => "Nom de l'album photos")) !!}
{!! Form::text($langue->suffixe . '_soustitre', getTranslation("Galerie", "soustitre", $galerie ? $galerie->id : null, $galerie ? $galerie->soustitre : null, $langue->suffixe), array("class" => "form-control", "placeholder" => "Sous-titre")) !!}

Description de l'album photos

{!! Form::textarea($langue->suffixe . '_description', getTranslation("Galerie", "description", $galerie ? $galerie->id : null, $galerie ? $galerie->description : null, $langue->suffixe), array('style' => 'width: 100%', "class" => "editor")) !!}
{!! Form::reset('Annuler', array("onclick" => "window.location = '" . action('\Plugins\Galerie\Controller\GalerieController@admin') . "'", "class" => "btn btn-sm bg-orange m-t-15 waves-effect")) !!} {!! Form::submit("Enregistrer et rester sur la page", array("class" => "btn btn-sm bg-teal waves-effect m-l-15 m-t-15 pull-right", "name" => "saveAndkeep")) !!}
@endif @endforeach @endif

Couverture de la galerie

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($galerie)
{!! Html::image('plugins/galerie/img/' . $galerie->id . "/couverture.jpg", "", array("class" => "img-responsive", "width" => 300)) !!} delete_forever
@endif
{!! Form::hidden('id') !!} {!! Form::close() !!}
@stop @section('js') @parent {!! Html::script("js/tinymce/tinymce.min.js") !!} @stop