echo Form::control_group(Form::label('lng', 'Longitude'), Form::xlarge_text('lng', Input::old('lng')), 'error', Form::inline_help($errors->first('lng'))); } else { echo Form::control_group(Form::label('lng', 'Longitude'), Form::xlarge_text('lng', $marker->lng), ''); } if ($errors->has('type')) { echo Form::control_group(Form::label('type', 'Type'), Form::xlarge_text('type', Input::old('type')), 'error', Form::inline_help($errors->first('type'))); } else { echo Form::control_group(Form::label('type', 'Type'), Form::xlarge_text('type', $marker->type), ''); } if ($errors->has('img_input')) { echo Form::control_group(Form::label('img_input', 'Image'), Form::file('img_input'), Form::inline_help($errors->first('img_input'))); } else { echo Form::control_group(Form::label('img_input', 'Image'), Form::file('img_input')); } echo Form::control_group(Form::label('client', 'Client'), Form::select('client', $clients, $marker->user_id)); echo Form::actions(array(Buttons::success_submit('Edit'), Buttons::link_danger('Delete', '#myModal', array('role' => 'button', 'data-toggle' => 'modal')))); ?> </div> <div class="span5"> <?php $value = isset($marker->rem1) ? $marker->rem1 : ''; echo Form::control_group(Form::label('rem1', 'Remarque #1'), Form::xlarge_textarea('rem1', $value, array('rows' => '2'))); $value = isset($marker->rem2) ? $marker->rem2 : ''; echo Form::control_group(Form::label('rem2', 'Remarque #2'), Form::xlarge_textarea('rem2', $value, array('rows' => '2'))); $value = isset($marker->rem3) ? $marker->rem3 : ''; echo Form::control_group(Form::label('rem3', 'Remarque #3'), Form::xlarge_textarea('rem3', $value, array('rows' => '2'))); $value = isset($marker->rem4) ? $marker->rem4 : ''; echo Form::control_group(Form::label('rem4', 'Remarque #4'), Form::xlarge_textarea('rem4', $value, array('rows' => '2'))); $value = isset($marker->rem5) ? $marker->rem5 : ''; echo Form::control_group(Form::label('rem5', 'Remarque #5'), Form::xlarge_textarea('rem5', $value, array('rows' => '2')));
if ($errors->has('lng')) { echo Form::control_group(Form::label('lng', 'Longitude'), Form::xlarge_text('lng', Input::old('lng')), 'error', Form::inline_help($errors->first('lng'))); } else { echo Form::control_group(Form::label('lng', 'Longitude'), Form::xlarge_text('lng', Input::old('lng')), ''); } if ($errors->has('type')) { echo Form::control_group(Form::label('type', 'Type'), Form::xlarge_text('type', Input::old('type')), 'error', Form::inline_help($errors->first('type'))); } else { echo Form::control_group(Form::label('type', 'Type'), Form::xlarge_text('type', Input::old('type')), ''); } if ($errors->has('img_input')) { echo Form::control_group(Form::label('img_input', 'Image'), Form::file('img_input'), Form::inline_help($errors->first('img_input'))); } else { echo Form::control_group(Form::label('img_input', 'Image'), Form::file('img_input')); } echo Form::actions(array(Buttons::success_submit('Add new'))); ?> </div> <div class="span4"> <?php $value = isset($marker->rem1) ? $marker->rem1 : ''; echo Form::control_group(Form::label('rem1', 'Remarque #1'), Form::xmedium_textarea('rem1', Input::old('rem1'), array('rows' => '2'))); $value = isset($marker->rem2) ? $marker->rem2 : ''; echo Form::control_group(Form::label('rem2', 'Remarque #2'), Form::xmedium_textarea('rem2', Input::old('rem2'), array('rows' => '2'))); $value = isset($marker->rem3) ? $marker->rem3 : ''; echo Form::control_group(Form::label('rem3', 'Remarque #3'), Form::xmedium_textarea('rem3', Input::old('rem3'), array('rows' => '2'))); $value = isset($marker->rem4) ? $marker->rem4 : ''; echo Form::control_group(Form::label('rem4', 'Remarque #4'), Form::xmedium_textarea('rem4', Input::old('rem4'), array('rows' => '2'))); $value = isset($marker->rem5) ? $marker->rem5 : ''; echo Form::control_group(Form::label('rem5', 'Remarque #5'), Form::xmedium_textarea('rem5', Input::old('rem5'), array('rows' => '2'))); ?>