enhance components, add mailtemplate, add traits for translations, for stats
This commit is contained in:
@@ -1,16 +1,31 @@
|
||||
<select name="{{ $name }}"
|
||||
@if (isset($id_name))id="{{ $id_name }}"@endif
|
||||
class="form-control {{ $class ?? null }}"
|
||||
@if (isset($style))style="{{ $style }}" @endif
|
||||
@if (isset($meta)) {{ $meta }} @endif
|
||||
@if (isset($required))required="required"@endif
|
||||
@if (isset($disabled) && $disabled)disabled="disabled"@endif
|
||||
@if (isset($multiple))multiple="multiple"@endif
|
||||
@include('components.form.label')
|
||||
|
||||
@if (($disabled ?? false) || ($readonly ?? false))
|
||||
@include('components.form.input', ['type' => 'hidden', 'label' => false])
|
||||
@endif
|
||||
<select name="{{ $name }}" class="form-control {{ $class ?? null }}"
|
||||
@if ($id_name ?? false) id="{{ $id_name }}" @endif
|
||||
@if ($style ?? false) style="{{ $style }}" @endif
|
||||
@if ($required ?? false) required @endif
|
||||
@if ($readonly ?? false) readonly @endif
|
||||
@if ($disabled ?? false) disabled @endif
|
||||
@if ($multiple ?? false) multiple @endif
|
||||
@if ($size ?? false) size="{{ $size }}" @endif
|
||||
@if ($dataId ?? false) data-id="{{ $dataId }}" @endif
|
||||
{{ $meta ?? null}}
|
||||
>
|
||||
@if (isset($with_empty))
|
||||
<option value=''>{{ $with_empty }}</option>
|
||||
@isset($with_empty)
|
||||
<option value="{{ $with_empty_value ?? '' }}">{{ $with_empty }}</option>
|
||||
@endisset
|
||||
|
||||
@if ($tree ?? false)
|
||||
@include('components.form.options.options-tree')
|
||||
@else
|
||||
@if ($multiple ?? false)
|
||||
@include('components.form.options.options-multiple')
|
||||
@else
|
||||
@include('components.form.options')
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@include('components.form.options')
|
||||
|
||||
</select>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user