Skip to content

Commit 4ccb936

Browse files
committed
Sexy typeahead select2 boxes for license and asset checkout
1 parent 32a63cd commit 4ccb936

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/views/backend/assets/checkout.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
<div class="control-group {{ $errors->has('assigned_to') ? 'error' : '' }}">
5757
<label class="control-label" for="parent">Checkout to</label>
5858
<div class="controls">
59-
{{ Form::select('assigned_to', $users_list , Input::old('assigned_to', $asset->assigned_to)) }}
59+
60+
{{ Form::select('assigned_to', $users_list , Input::old('assigned_to', $asset->assigned_to), array('class'=>'select2', 'style'=>'min-width:350px')) }}
6061
{{ $errors->first('assigned_to', '<span class="help-inline">:message</span>') }}
6162
</div>
6263
</div>

app/views/backend/licenses/checkout.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<div class="control-group {{ $errors->has('assigned_to') ? 'error' : '' }}">
5656
<label class="control-label" for="parent">Checkout to</label>
5757
<div class="controls">
58-
{{ Form::select('assigned_to', $users_list , Input::old('assigned_to')) }}
58+
{{ Form::select('assigned_to', $users_list , Input::old('assigned_to'), array('class'=>'select2', 'style'=>'min-width:350px')) }}
5959
{{ $errors->first('user_id', '<span class="help-inline">:message</span>') }}
6060
</div>
6161
</div>

0 commit comments

Comments
 (0)