Refactoring, change menu, add many features

This commit is contained in:
Ludovic CANDELLIER
2021-10-30 02:22:51 +02:00
parent da51da2530
commit 0d0e4deb16
158 changed files with 1114 additions and 412 deletions

View File

@@ -0,0 +1 @@
@include('components.form.input', ['type' => 'email'])

View File

@@ -0,0 +1,17 @@
<div class="input-group">
@include('components.form.input')
<div class="input-group-append">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-globe"></i>
</button>
<div class="dropdown-menu">
@if (is_array($translations))
@foreach ($translations as $lang => $translation)
<a class="dropdown-item" href="#">{{ $lang }} : {{ $translation }}</a>
@endforeach
@endif
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<div class="input-group">
@include('components.form.input')
<div class="input-group-append">
<div class="input-group-text btn btn-{{ $class ?? '' }}" role="button"><i class="fa fa-{{ $icon ?? '' }}"></i></div>
</div>
</div>
@if (isset($click))
@push('js')
<script>
$('.btn-{{ $class ?? '' }}').off().click(function() {
var value = $(this).closest('.input-group').find('input').val();
console.log(value);
});
</script>
@endpush
@endif

View File

@@ -0,0 +1 @@
@include('components.form.input', ['type' => 'number', 'meta' => "step = '.01'"])

View File

@@ -0,0 +1,9 @@
<input type="number" name="{{ $name }}" id="{{ $id_name ?? str_slug($name,'-') }}" class="form-control {{ $class ?? ''}}" value="{{ $value ?? ''}}"
@if (isset($required))
required="required"
@endif
{{ isset($min) ? 'min="' . $min . '"' : ''}}
{{ isset($max) ? 'max="' . $max . '"' : ''}}
{{ isset($step) ? 'step="' . $step . '"' : ''}}
{{ isset($placeholder) ? 'placeholder="' . $placeholder. '"' : ''}}
>

View File

@@ -0,0 +1,13 @@
<div class="input-group">
@include('components.form.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.form.input', ['type' => 'number', 'meta' => "step = '.01'"])
<div class="input-group-append">
<button class="btn bg-light" type="button" aria-haspopup="false" aria-expanded="false">
%
</button>
</div>
</div>

View File

@@ -0,0 +1 @@
@include('components.form.input', ['mask' => '99.99.99.99.99'])

View File

@@ -0,0 +1,11 @@
<div class="input-group">
@include('components.form.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>