$message = Session::get('message'); ?> @if(!empty($message)) <div class="alert alert-success fade in"> {{ $message }} <button type="button" class="close" data-dismiss="alert">×</button> </div> @endif {{ Form::horizontal_open() }} <div class="span5"> <?php if ($errors->has('username')) { echo Form::control_group(Form::label('username', 'Société'), Form::xlarge_text('username', '', array('Placeholder' => 'Societe')), 'error', Form::inline_help($errors->first('username'))); } else { echo Form::control_group(Form::label('username', 'Société'), Form::xlarge_text('username', '', array('Placeholder' => 'Societe')), ''); } if ($errors->has('password')) { echo Form::control_group(Form::label('password', 'Password'), Form::password('password', array('class' => 'input-large')), 'error'), Form::inline_help($errors->first('nom')); } else { echo Form::control_group(Form::label('password', 'Password'), Form::password('password', array('class' => 'input-large')), ''); } echo Form::control_group(Form::label('group', 'Groupe'), Form::select('group', array('1' => 'Admin', '2' => 'Client'), '2')); echo Form::actions(array(Buttons::primary_submit('Create Client'))); ?> </div> {{ Form::close() }} </div> </div>
echo Form::control_group(Form::label('address', 'Adresse'), Form::xlarge_text('address', $marker->address), '', Form::block_help('Longitude & Latitude are generated automaticly. <a href="http://ctrlq.org/maps/address/" target="_blank">No address generated ?</a>')); } if ($errors->has('lat')) { echo Form::control_group(Form::label('lat', 'Latitude'), Form::xlarge_text('lat', Input::old('lat')), 'error', Form::inline_help($errors->first('lat'))); } else { echo Form::control_group(Form::label('lat', 'Latitude'), Form::xlarge_text('lat', $marker->lat), ''); } 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', $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')));
echo Form::control_group(Form::label('address', 'Adresse'), Form::xlarge_text('address', Input::old('address')), '', Form::block_help('Longitude & Latitude are generated automaticly. <a href="http://ctrlq.org/maps/address/" target="_blank">No address generated ?</a>')); } if ($errors->has('lat')) { echo Form::control_group(Form::label('lat', 'Latitude'), Form::xlarge_text('lat', Input::old('lat')), 'error', Form::inline_help($errors->first('lat'))); } else { echo Form::control_group(Form::label('lat', 'Latitude'), Form::xlarge_text('lat', Input::old('lat')), ''); } 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')));