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 +1,16 @@
@include('components.form.select', ['class' => 'duallist', 'multiple' => true])
@if ($disabled ?? false)
@if (count($list ?? []))
<ul>
@foreach($list as $key => $item)
@if (in_array($key, $values))
<li>{{ $item }}</li>
@endif
@endforeach
</ul>
@endif
@else
@include('components.form.select', [
'class' => 'duallist',
'multiple' => true,
])
@endif

View File

@@ -0,0 +1 @@
@include('components.form.select', ['class' => 'duallist', 'tree' => true])

View File

@@ -1,13 +1 @@
<select
name="{{ $name }}"
@if (isset($id_name))id="{{ $id_name }}"@endif
class="@if (isset($class)){{ $class }} @else form-control @endif"
@if (isset($style))style="{{ $style }}" @endif
@if (isset($required))required="required"@endif
@if (isset($multiple))multiple="multiple"@endif
>
@if (isset($with_empty))
<option>{{ $with_empty }}</option>
@endif
@include('components.form.options.options-tree')
</select>
@include('components.form.select', ['tree' => true])