enhance components, add mailtemplate, add traits for translations, for stats

This commit is contained in:
Ludovic CANDELLIER
2023-02-13 22:52:39 +01:00
parent 7449229ff7
commit 685160ddf5
32 changed files with 891 additions and 277 deletions

View File

@@ -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>