{{-- CityHub - Communal service - Add template --}}

{{ $title }}


{{ Form::open(array('route' => $route, 'role' => 'form', 'class' => 'form-horizontal', 'autocomplete' => 'off')) }} @if ($mode == 'edit') {{ Form::hidden('id', $template->id, array('id' => 'id')) }} @endif
{{ Form::select('city', $cities, isset($template->city_id) ? $template->city_id : null, array('class' => 'form-control', 'id' => 'city')) }} @if (isset($errors) && ($errors->first('city') != '' || $errors->first('city') != null))

{{ $errors->first('city') }}

@endif
{{ Form::text('name', isset($template->name) ? $template->name : null, array('class' => 'form-control', 'id' => 'name')) }} @if (isset($errors) && ($errors->first('name') != '' || $errors->first('name') != null))

{{ $errors->first('name') }}

@endif
{{ Form::textarea('content', isset($template->content) ? $template->content : null, array('class' => 'form-control', 'id' => 'content')) }} @if (isset($errors) && ($errors->first('content') != '' || $errors->first('content') != null))

{{ $errors->first('content') }}

@endif
{{ Lang::get('core.cancel') }} {{ Form::button(' ' . Lang::get('core.save'), array('type' => 'submit', 'class' => 'btn btn-success')) }}
{{ Form::close() }}