fix roles

This commit is contained in:
Ludovic CANDELLIER
2022-01-30 00:30:21 +01:00
parent b4057c28d0
commit 5799eb36fc
32 changed files with 206 additions and 330 deletions

View File

@@ -1,6 +1,6 @@
@component('boilerplate::card', ['color' => 'warning', 'title' => 'CodeMirror'])
Usage :
<pre>&lt;x-boilerplate::codemirror name="code">&lt;php echo "My code"; ?>&lt;/x-boilerplate::codemirror></pre>
<pre>&lt;x-boilerplate::codemirror name="code">.color { color: red; }&lt;/x-boilerplate::codemirror></pre>
<x-boilerplate::codemirror name="code"><h1>CodeMirror demo</h1>
<style>
.color {

View File

@@ -1,6 +1,7 @@
@include('boilerplate::load.datatables')
@push('js')
@component('boilerplate::minify')
<script>
$(function() {
$('#dt').dataTable({
@@ -12,18 +13,12 @@
});
});
</script>
@endcomponent
@endpush
@component('boilerplate::card', ['color' => 'orange', 'title' => 'Datatables'])
Usage :
<pre class="mb-3">
&commat;include('boilerplate::load.datatables')
&commat;push('js')
&lt;script>
$('#dt').dataTable();
&lt;/script>
&commat;endpush</pre>
Usage :
<pre class="mb-3">&lt;x-boilerplate::datatable name="users" /></pre>
<table class="table table-sm table-striped table-hover" id="dt">
<thead>
<tr>
@@ -58,6 +53,7 @@
@slot('footer')
<div class="small text-muted text-right">
<a href="https://sebastienheyd.github.io/boilerplate/components/datatable" target="_blank">component</a> /
<a href="https://sebastienheyd.github.io/boilerplate/plugins/datatables" target="_blank">plugin</a> /
<a href="https://datatables.net/manual/index">datatables</a>
</div>

View File

@@ -1,6 +1,7 @@
@include('boilerplate::load.fullcalendar')
@push('js')
@component('boilerplate::minify')
<script>
$('#calendar').fullCalendar({
headerToolbar: {
@@ -15,6 +16,7 @@
events: 'https://fullcalendar.io/demo-events.json?overload-day'
})
</script>
@endcomponent
@endpush
@component('boilerplate::card', ['color' => 'success', 'title' => 'FullCalendar'])

View File

@@ -6,10 +6,10 @@
<pre>&lt;x-boilerplate::select2 name="example" label="Example" :options="['Opt 1', 'Opt 2']" /></pre>
</div>
<div class="col-md-6">
@component('boilerplate::components.form.selects.select2', ['label' => 'Minimal', 'name' => 'select2_dminimal', 'selected' => 1, 'options' => $options, 'allow-clear' => 'true', 'minimum-results-for-search' => 5])@endcomponent
@component('boilerplate::components.select2', ['label' => 'Minimal', 'name' => 'select2_dminimal', 'selected' => 1, 'options' => $options, 'allow-clear' => 'true', 'minimum-results-for-search' => 5])@endcomponent
</div>
<div class="col-md-6">
@component('boilerplate::components.form.selects.select2', ['label' => 'Multiple', 'name' => 'select2_multiple', 'selected' => [1,3], 'options' => $options, 'multiple' => true])@endcomponent
@component('boilerplate::components.select2', ['label' => 'Multiple', 'name' => 'select2_multiple', 'selected' => [1,3], 'options' => $options, 'multiple' => true])@endcomponent
</div>
</div>
@slot('footer')

View File

@@ -3,7 +3,7 @@
<pre>&lt;x-boilerplate::tinymce name="tinymce">
&lt;h2>TinyMCE demo&lt;/h2>&lt;p>Lorem ipsum dolor sit amet.&lt;/p>
&lt;/x-boilerplate::tinymce></pre>
@component('boilerplate::tinymce', ['name' => 'tinymce'])
@component('boilerplate::tinymce', ['name' => 'tinymce', 'sticky' => true])
<h2>TinyMCE demo</h2><p>Lorem ipsum dolor sit amet.</p>
@endcomponent()
@slot('footer')