Compare commits
No commits in common. "83470c3ff575e62a3e7b66f07177ef9c95c8a54d" and "d7897d5c667ec85bea136cdba46b98beda29a638" have entirely different histories.
83470c3ff5
...
d7897d5c66
@ -1,15 +1,15 @@
|
|||||||
<div class="form-group">
|
@if(isset($label))
|
||||||
@if(isset($label))
|
|
||||||
<label {{ $attributes->only(['class']) }} for="{{ $id ?? $name }}">{{ $label }}</label>
|
<label {{ $attributes->only(['class']) }} for="{{ $id ?? $name }}">{{ $label }}</label>
|
||||||
@endisset
|
@endisset
|
||||||
|
<div class="form-group">
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
@if(isset($icon) || isset($prepend))
|
@if(isset($icon) || isset($prepend))
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text">@isset($icon)<i class="fas fa-fw {{ $icon }}"></i>@endisset @isset($prepend){!! $prepend !!}@endisset</span>
|
<span class="input-group-text">@isset($icon)<i class="fas fa-fw {{ $icon }}"></i>@endisset @isset($prepend){!! $prepend !!}@endisset</span>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif()
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
<span class="invalid-feedback">
|
<span class="invalid-feedback" role="alert">
|
||||||
@error($old ?? $name)
|
@error($old ?? $name)
|
||||||
{{ $message }}
|
{{ $message }}
|
||||||
@elseif(isset($feedback))
|
@elseif(isset($feedback))
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
@endisset
|
@endisset
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@isset($options)
|
|
||||||
@empty($groupby)
|
@empty($groupby)
|
||||||
@foreach($options as $option)
|
@foreach($options as $option)
|
||||||
@continue(! Arr::get($option,'value'))
|
@continue(! Arr::get($option,'value'))
|
||||||
@ -25,7 +24,6 @@
|
|||||||
</optgroup>
|
</optgroup>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endempty
|
@endempty
|
||||||
@endisset
|
|
||||||
</select>
|
</select>
|
||||||
</x-leenooks::form.base>
|
</x-leenooks::form.base>
|
||||||
|
|
||||||
|
@ -1,43 +1,3 @@
|
|||||||
|
<x-leenooks::form.base {{ $attributes }}>
|
||||||
<div class="form-group">
|
|
||||||
@if(isset($label))
|
|
||||||
<label {{ $attributes->only(['class']) }} for="{{ $id ?? $name }}">{{ $label }}</label>
|
|
||||||
@endisset
|
|
||||||
<div class="input-group has-validation">
|
|
||||||
@if(isset($icon) || isset($prepend))
|
|
||||||
<div class="input-group-prepend">
|
|
||||||
<span class="input-group-text">@isset($icon)<i class="fas fa-fw {{ $icon }}"></i>@endisset @isset($prepend){!! $prepend !!}@endisset</span>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
<div class="w-100">
|
|
||||||
<textarea class="form-control {{ $classes ?? ''}} @error($old ?? $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @isset($placeholder)placeholder="{{ $placeholder }}"@endisset @readonly(isset($readonly)) @required(isset($required)) @disabled(isset($disabled))>{{ old($old ?? $name,$value ?? '') }}</textarea>
|
<textarea class="form-control {{ $classes ?? ''}} @error($old ?? $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @isset($placeholder)placeholder="{{ $placeholder }}"@endisset @readonly(isset($readonly)) @required(isset($required)) @disabled(isset($disabled))>{{ old($old ?? $name,$value ?? '') }}</textarea>
|
||||||
<span class="invalid-feedback">
|
</x-leenooks::form.base>
|
||||||
@error($old ?? $name)
|
|
||||||
{{ $message }}
|
|
||||||
@elseif(isset($feedback))
|
|
||||||
{{ $feedback }}
|
|
||||||
@enderror
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@isset($helper)
|
|
||||||
<span class="input-helper">{{ $helper }}</span>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@pa(simplemde)
|
|
||||||
|
|
||||||
@section('page-scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function() {
|
|
||||||
new SimpleMDE({
|
|
||||||
element: $('#{{ $id ?? $name }}')[0],
|
|
||||||
forceSync: true
|
|
||||||
});
|
|
||||||
|
|
||||||
@error($old ?? $name)
|
|
||||||
$('div.CodeMirror-wrap').addClass('form-control is-invalid');
|
|
||||||
@enderror
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@append
|
|
@ -6,7 +6,7 @@
|
|||||||
<label class="custom-control-label" for="{{ $id ?? $name }}">{{ $label }}</label>
|
<label class="custom-control-label" for="{{ $id ?? $name }}">{{ $label }}</label>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<span class="invalid-feedback">
|
<span class="invalid-feedback" role="alert">
|
||||||
@error($name)
|
@error($name)
|
||||||
{{ $message }}
|
{{ $message }}
|
||||||
@elseif(isset($feedback))
|
@elseif(isset($feedback))
|
||||||
|
@ -120,7 +120,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#passkey').on('click',function() {
|
$('#passkey').on('click',function() {
|
||||||
passkey_check('{{ csrf_token() }}','{{ redirect()->intended("/passkey/loggedin")->getTargetUrl() }}');
|
passkey_check('{{ csrf_token() }}','/passkey/loggedin');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<!-- Sidebar Menu -->
|
<!-- Sidebar Menu -->
|
||||||
<nav class="mt-2">
|
<nav class="mt-2">
|
||||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" data-accordion="false">
|
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||||
<!-- Add icons to the links using the .nav-icon class with font-awesome or any other icon font library -->
|
<!-- Add icons to the links using the .nav-icon class with font-awesome or any other icon font library -->
|
||||||
@include('adminlte::layouts.partials.sidebarmenu')
|
@include('adminlte::layouts.partials.sidebarmenu')
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -121,16 +121,6 @@ class PageAssets
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'simplemde' => [
|
|
||||||
'base' => [
|
|
||||||
'css' => [
|
|
||||||
'//cdn.jsdelivr.net/simplemde/latest/simplemde.min.css',
|
|
||||||
],
|
|
||||||
'js' => [
|
|
||||||
'//cdn.jsdelivr.net/simplemde/latest/simplemde.min.js',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Items to manage
|
// Items to manage
|
||||||
|
@ -42,7 +42,6 @@ class CustomBladeServiceProvider extends ServiceProvider
|
|||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'datatables':
|
case 'datatables':
|
||||||
case 'select2':
|
case 'select2':
|
||||||
case 'simplemde':
|
|
||||||
Log::alert(sprintf('Blade @css/@js for %s deprecicated, use @pa',$type));
|
Log::alert(sprintf('Blade @css/@js for %s deprecicated, use @pa',$type));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -148,6 +147,21 @@ class CustomBladeServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'simplemde':
|
||||||
|
switch ($content) {
|
||||||
|
case 'css':
|
||||||
|
// Base
|
||||||
|
$css->put($type,'https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css');
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'js':
|
||||||
|
// Base
|
||||||
|
$js->put($type,'https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js');
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case 'summernote':
|
case 'summernote':
|
||||||
switch ($content) {
|
switch ($content) {
|
||||||
case 'css':
|
case 'css':
|
||||||
|
@ -4,12 +4,13 @@ namespace Leenooks\Providers;
|
|||||||
|
|
||||||
use Illuminate\Foundation\AliasLoader;
|
use Illuminate\Foundation\AliasLoader;
|
||||||
use Illuminate\Support\Facades\Blade;
|
use Illuminate\Support\Facades\Blade;
|
||||||
|
use Leenooks\Http\Middleware\GuestUser;
|
||||||
use Illuminate\Routing\Router;
|
use Illuminate\Routing\Router;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Leenooks\Http\Middleware\GuestUser;
|
|
||||||
use Leenooks\PageAssets;
|
use Leenooks\PageAssets;
|
||||||
use Leenooks\Traits\SingleOrFail;
|
use Leenooks\Traits\SingleOrFail;
|
||||||
|
use Orchestra\Support\Facades\Asset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class GuestUserServiceProvider.
|
* Class GuestUserServiceProvider.
|
||||||
|
Loading…
Reference in New Issue
Block a user