Mise à jour
This commit is contained in:
4
resources/views/components/form/autocomplete.blade.php
Normal file
4
resources/views/components/form/autocomplete.blade.php
Normal 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">
|
||||
3
resources/views/components/form/checkbox.blade.php
Normal file
3
resources/views/components/form/checkbox.blade.php
Normal 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
|
||||
>
|
||||
4
resources/views/components/form/color.blade.php
Normal file
4
resources/views/components/form/color.blade.php
Normal file
@@ -0,0 +1,4 @@
|
||||
@include('load.form.color')
|
||||
|
||||
@include('components.input', ['class' => 'color'])
|
||||
|
||||
8
resources/views/components/form/datepicker.blade.php
Normal file
8
resources/views/components/form/datepicker.blade.php
Normal 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>
|
||||
13
resources/views/components/form/datetimepicker.blade.php
Normal file
13
resources/views/components/form/datetimepicker.blade.php
Normal 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
|
||||
|
||||
19
resources/views/components/form/editor.blade.php
Normal file
19
resources/views/components/form/editor.blade.php
Normal 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
|
||||
|
||||
13
resources/views/components/form/password.blade.php
Normal file
13
resources/views/components/form/password.blade.php
Normal 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>
|
||||
10
resources/views/components/form/percent.blade.php
Normal file
10
resources/views/components/form/percent.blade.php
Normal 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>
|
||||
12
resources/views/components/form/radios.blade.php
Normal file
12
resources/views/components/form/radios.blade.php
Normal 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>
|
||||
@@ -0,0 +1 @@
|
||||
@include('components.select', ['class' => 'duallist', 'multiple' => true])
|
||||
19
resources/views/components/form/tags.blade.php
Normal file
19
resources/views/components/form/tags.blade.php
Normal 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
|
||||
3
resources/views/components/form/toggle.blade.php
Normal file
3
resources/views/components/form/toggle.blade.php
Normal 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')
|
||||
1
resources/views/components/form/toggle_yesno.blade.php
Normal file
1
resources/views/components/form/toggle_yesno.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
@include('components.form.toggle')
|
||||
11
resources/views/components/form/url.blade.php
Normal file
11
resources/views/components/form/url.blade.php
Normal 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>
|
||||
Reference in New Issue
Block a user