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')));
Example #2
0
<div id="image-upload">
	
	@include('litmus::partials.message')
	
	<?php 
$url = isset($url) ? $url : NULL;
$verb = isset($verb) ? $verb : 'POST';
echo Form::horizontal_open_for_files($url, $verb);
//echo Form::token();
foreach ($fields as $field) {
    if (isset($field['values'])) {
        $form = Form::$field['type']($field['name'], $field['values']);
    } else {
        $attributes = array();
        $attributes['value'] = isset($object) && isset($object->{$field['name']}) ? $object->{$field['name']} : NULL;
        $attributes['value'] = Input::had($field['name']) ? Input::old($field['name']) : $attributes['value'];
        $form = Form::$field['type']($field['name'], $attributes['value'], $attributes);
    }
    $label = Form::label($field['name'], $field['label']);
    echo Form::control_group($label, $form);
}
echo Form::actions(array(Button::primary_submit('Submit'), Form::button('Cancel')));
echo Form::close();
?>

</div>
@layout('layouts/main')
@section('content')
<h1>Configure Solder</h1>
<hr>
@if (Session::has('success'))
	<div class="alert alert-success">
		{{ Session::get('success') }}
	</div>
@endif
<h2>Repository Settings</h2>
{{ Form::horizontal_open() }}
{{ Form::hidden("edit-solder", 1) }}
<?php 
echo Form::control_group(Form::label('mirror_url', 'Mirror URL'), Form::xxlarge_text('mirror_url', Config::get('solder.mirror_url')), '', Form::block_help('This is where the launcher will be told to search for your files. If your repo location is already a URL you can use the same location here. Include a trailing slash!'));
echo Form::control_group(Form::label('repo_location', 'Repository Location'), Form::xxlarge_text('repo_location', Config::get('solder.repo_location')), '', Form::block_help('This is the location of your mod reposistory. INCLUDE a trailing slash! This can be a URL or an absolute file location. This is only required for your initial repository import.'));
?>

<h2>Platform Settings</h2>

<?php 
echo Form::control_group(Form::label('platform_key', 'Platform API Key'), Form::xxlarge_text('platform_key', Config::get('solder.platform_key')), '', Form::block_help(' Enter your platform API key if you would like to link Solder to your Platform account.'));
echo Form::actions(array(Button::primary_submit('Save changes')));
?>

{{ Form::close() }}
@endsection
			@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>

@endsection
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')));
?>
    <label class="control-label">Solderwide</label>
    <div class="controls">
        <label for="solder-full"><input type="checkbox" name="solder-full" id="solder-full" value="1"{{ $checked = ($user->permission->solder_full ? " checked" : "") }}> Full Solder Access (Blanket permission)</label>
        <label for="manage-users"><input type="checkbox" name="manage-users" id="manage-users" value="1"{{ $checked = ($user->permission->solder_users ? " checked" : "") }}> Manage Users</label>
        <label for="manage-packs"><input type="checkbox" name="manage-packs" id="manage-packs" value="1"{{ $checked = ($user->permission->solder_modpacks ? " checked" : "") }}> Manage Modpacks</label>
        <label for="manage-mods"><input type="checkbox" name="manage-mods" id="manage-mods" value="1"{{ $checked = ($user->permission->solder_mods ? " checked" : "") }}> Manage Mods</label>
    </div>
</div>
<div class="control-group">
    <label class="control-label">Mod Library</label>
    <div class="controls">
        <label for="mod-create"><input type="checkbox" name="mod-create" id="mod-create" value="1"{{ $checked = ($user->permission->mods_create ? " checked" : "") }}> Create Mods</label>
        <label for="mod-manage"><input type="checkbox" name="mod-manage" id="mod-manage" value="1"{{ $checked = ($user->permission->mods_manage ? " checked" : "") }}> Manage Mods</label>
        <label for="mod-delete"><input type="checkbox" name="mod-delete" id="mod-delete" value="1"{{ $checked = ($user->permission->mods_delete ? " checked" : "") }}> Delete Mods</label>
    </div>
</div>
<div class="control-group">
    <label class="control-label">Modpack Access</label>
    <div class="controls">
        <label for="solder-create"><input type="checkbox" name="solder-create" id="solder-create" value="1"{{ $checked = ($user->permission->solder_create ? " checked" : "") }}> Create Modpacks</label>
        @foreach (Modpack::all() as $modpack)
            <label for="{{ $modpack->slug }}"><input type="checkbox" name="modpack[]" id="{{ $modpack->slug }}" value="{{ $modpack->id }}"{{ $checked = (in_array($modpack->id, $user->permission->modpacks) ? " checked" : "") }}> {{ $modpack->name }}</label>
        @endforeach
    </div>
</div>
@endif
<?php 
echo Form::actions(array(Button::primary_submit('Save changes'), Button::link(URL::to('user/list'), 'Go Back')));
?>
{{ Form::close() }}
@endsection