Mise à jour

This commit is contained in:
Ludovic CANDELLIER
2021-03-21 23:26:53 +01:00
parent c025dbb385
commit 083d358fbd
78 changed files with 1003 additions and 716 deletions

View File

@@ -0,0 +1,4 @@
@include('load.autocomplete')
<input type="hidden" name="{{ $name }}_id" id="{{ $name }}_id" value="{{ $data['id'] ?? null }}">
<input type="text" name="{{ $name }}_name" class="form-control autocomplete" value="{{ $data['name'] ?? ''}}" data-url="{{ $url ?? ''}}" data-field="{{ $name }}_id" autocomplete="off">

View File

@@ -0,0 +1,3 @@
<input type="checkbox" name="{{ $name }}" id="{{ $id_name ?? $name }}" class="{{ $class ?? ''}}" value="{{ $val ?? ''}}"
@if (isset($value) && isset($val) && ($value == $val)) checked @endif
>

View File

@@ -0,0 +1,4 @@
@include('load.form.color')
@include('components.input', ['class' => 'color'])

View File

@@ -0,0 +1,8 @@
@include('load.datepicker')
<div class="input-group date" data-target-input="nearest">
@include('components.input', ['class' => 'datepicker', 'meta' => 'data-target="#'.str_slug($name).'"', 'placeholder' => App\Repositories\Core\DateTime::getLocaleFormatDate() ])
<div class="input-group-append" data-target="#{{ str_slug($name) }}" data-toggle="datetimepicker">
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
</div>
</div>

View File

@@ -0,0 +1,13 @@
@include('components.input', ['class' => 'datetimepicker'])
@if(!defined('LOAD_DATETIMEPICKER'))
@include('boilerplate::load.datetimepicker')
@push('js')
<script>
$(function() {
$('.datetimepicker').datetimepicker({});
});
</script>
@endpush
@endif

View File

@@ -0,0 +1,19 @@
<textarea
name="{{ $name }}"
@if (isset($id_name))id="{{ $id_name }}"@endif
class="editor form-control @if (isset($class)){{ $class }}@endif"
@if (isset($rows)) rows="{{ $rows }}"@endif
>@if (isset($value)){{ $value }}@endif</textarea>
@if(!defined('LOAD_EDITOR'))
@include('load.editor')
@push('js')
<script>
$(function() {
initEditor();
});
</script>
@endpush
@endif

View File

@@ -0,0 +1,13 @@
<div class="input-group">
@include('components.input')
<div class="input-group-append">
<button class="btn btn-outline-secondary">
<i class="fa fa-unlock"></i>
</button>
<button class="btn btn-outline-secondary">
<i class="fa fa-sync-alt"></i>
</button>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="input-group">
@include('components.input', ['type' => 'number', 'meta' => "step = '.01'"])
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" aria-haspopup="true" aria-expanded="false">
%
</button>
</div>
</div>

View File

@@ -0,0 +1,12 @@
<div class="form-group clearfix pt-2">
@foreach ($list as $key => $item)
<div class="{{ $item['class'] ?? '' }} d-inline">
<input type="radio" id="{{ $name }}{{ $key }}" name="{{ $name }}" value="{{ $key }}" @if (isset($value) && ($key == $value)) checked @endif>
@if ($with_label ?? true)
<label for="{{ $name }}{{ $key}}" class="pr-2">{{ $item['txt'] ?? $item }}</label>
@else
<label for="{{ $name }}{{ $key}}"></label>
@endif
</div>
@endforeach
</div>

View File

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

View File

@@ -0,0 +1,19 @@
<select
name="{{ $name }}"
@if (isset($id_name))id="{{ $id_name }}"@endif
class="form-control @if (isset($class)){{ $class }} @endif"
@if (isset($style))style="{{ $style }}" @endif
@if (isset($required))required="required"@endif
@if (isset($multiple))multiple="multiple"@endif
>
@if (isset($with_empty))
<option value=''>{{ $with_empty }}</option>
@endif
@include('components.options')
</select>
@if(!defined('LOAD_SELECT2'))
@include('load.select2')
@endif

View File

@@ -0,0 +1,3 @@
<input type="checkbox" name="{{ $name ?? ''}}" id="{{ $id_name ?? $name ?? '' }}" class="{{ $class ?? 'toggle'}}" value="{{ $val ?? 1}}" data-toggle="toggle" data-on="{{ $on ?? __('yes') }}" data-off="{{ $off ?? __('no') }}" data-onstyle="{{ $onstyle ?? 'outline-success'}}" data-offstyle="{{ $offstyle ?? 'outline-danger'}}" data-size="{{ $size ?? 'sm' }}" @if ( (isset($value) && isset($val) && ($value == $val)) || (!isset($val) && isset($value) && $value)) checked @endif {{ $disabled ?? ''}} {{ $meta ?? ''}} >
@include('load.toggle')

View File

@@ -0,0 +1 @@
@include('components.form.toggle')

View File

@@ -0,0 +1,11 @@
<div class="input-group">
@include('components.input', ['class' => 'url'])
<div class="input-group-append">
@if (isset($with_download) && $with_download)
<div class="input-group-text btn btn-web" role="button"><i class="fa {{ (isset($status) && $status) ? 'fa-check green' : 'fa-download' }}"></i></div>
@endif
@if (isset($with_web) && $with_web)
<div class="input-group-text btn btn-web" role="button"><i class="fa fa-search"></i></div>
@endif
</div>
</div>