mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Wider country dropdown
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8ebb41caa6
commit
ddf81ba135
|
@ -32,7 +32,7 @@ Form::macro('countries', function ($name = 'country', $selected = null, $class =
|
||||||
|
|
||||||
$idclause = (!is_null($id)) ? $id : '';
|
$idclause = (!is_null($id)) ? $id : '';
|
||||||
|
|
||||||
$select = '<select name="'.$name.'" class="'.$class.'" style="min-width:350px"'.$idclause.' aria-label="'.$name.'" data-placeholder="'.trans('localizations.select_country').'">';
|
$select = '<select name="'.$name.'" class="'.$class.'" style="width:100%" '.$idclause.' aria-label="'.$name.'" data-placeholder="'.trans('localizations.select_country').'">';
|
||||||
$select .= '<option value="" role="option">'.trans('localizations.select_country').'</option>';
|
$select .= '<option value="" role="option">'.trans('localizations.select_country').'</option>';
|
||||||
|
|
||||||
// Pull the autoglossonym array from the localizations translation file
|
// Pull the autoglossonym array from the localizations translation file
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<div class="form-group {{ $errors->has('country') ? ' has-error' : '' }}">
|
<div class="form-group {{ $errors->has('country') ? ' has-error' : '' }}">
|
||||||
{{ Form::label('country', trans('general.country'), array('class' => 'col-md-3 control-label')) }}
|
{{ Form::label('country', trans('general.country'), array('class' => 'col-md-3 control-label')) }}
|
||||||
<div class="col-md-5">
|
<div class="col-md-7">
|
||||||
{!! Form::countries('country', old('country', $item->country), 'select2') !!}
|
{!! Form::countries('country', old('country', $item->country), 'select2') !!}
|
||||||
{!! $errors->first('country', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('country', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
||||||
|
|
||||||
<div class="col-md-6{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}">
|
<div class="col-md-7{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}">
|
||||||
<select class="js-data-ajax" data-endpoint="users" data-placeholder="{{ trans('general.select_user') }}" name="{{ $fieldname }}" style="width: 100%" id="assigned_user_select" aria-label="{{ $fieldname }}">
|
<select class="js-data-ajax" data-endpoint="users" data-placeholder="{{ trans('general.select_user') }}" name="{{ $fieldname }}" style="width: 100%" id="assigned_user_select" aria-label="{{ $fieldname }}">
|
||||||
@if ($user_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
|
@if ($user_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
|
||||||
<option value="{{ $user_id }}" selected="selected" role="option" aria-selected="true" role="option">
|
<option value="{{ $user_id }}" selected="selected" role="option" aria-selected="true" role="option">
|
||||||
|
|
|
@ -449,7 +449,7 @@
|
||||||
<!-- Country -->
|
<!-- Country -->
|
||||||
<div class="form-group{{ $errors->has('country') ? ' has-error' : '' }}">
|
<div class="form-group{{ $errors->has('country') ? ' has-error' : '' }}">
|
||||||
<label class="col-md-3 control-label" for="country">{{ trans('general.country') }}</label>
|
<label class="col-md-3 control-label" for="country">{{ trans('general.country') }}</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-6">
|
||||||
{!! Form::countries('country', old('country', $user->country), 'col-md-12 select2') !!}
|
{!! Form::countries('country', old('country', $user->country), 'col-md-12 select2') !!}
|
||||||
{!! $errors->first('country', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
{!! $errors->first('country', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue