@section('content') {{ Form::open(array('url' => 'admin/page/'.$id.'/gallery/add', 'role' => 'form', 'class' => 'form-horizontal')) }} @include('admin.partials.button')

Dodawanie albumu

@if ($show_language_tabs) @endif
@foreach ($languages as $key => $language) @if ($code = strtolower($language->code)) @endif
{{ Form::text('content['.$language->id.'][title]', @$album->contents[$code]->title, array('class' => Config::get('custom.form.input-class'), 'id' => 'title_' . $code)) }}
@if ($status = ((isset($album) && isset($album->contents[$code]) && $album->contents[$code]->active || !isset($album)) ? true : false)) @endif {{ Form::checkbox('content['.$language->id.'][active]', '1', $status, array('id' => 'active_' . $code)) }}
{{ Form::textarea('content['.$language->id.'][content]', @$album->contents[$code]->content, array('class' => Config::get('custom.form.input-class') . " editor", 'id' => 'content_' . $code)) }}
@endforeach
{{ Form::hidden('page_id', @$id) }} {{ Form::hidden('album_id', @$album->id) }} @include('admin.partials.button') {{ Form::close() }} @stop