mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-02-24 11:13:02 +01:00
Enable selectize for category selects
This commit is contained in:
parent
e2a7d02d11
commit
a7a08f1014
@ -55,7 +55,7 @@
|
||||
</label>
|
||||
|
||||
<select id="parent_category" name="parent_category"
|
||||
class="custom-select{{ $errors->has('parent_category') ? ' is-invalid' : '' }}">
|
||||
class="{{ $errors->has('parent_category') ? ' is-invalid' : '' }}">
|
||||
<option value="0">@lang('category.select_parent_category')</option>
|
||||
@foreach($categories as $category)
|
||||
<option value="{{ $category->id }}">
|
||||
@ -115,3 +115,11 @@
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$('#parent_category').selectize({
|
||||
create: false
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
@ -58,7 +58,7 @@
|
||||
</label>
|
||||
|
||||
<select id="parent_category" name="parent_category"
|
||||
class="form-control{{ $errors->has('parent_category') ? ' is-invalid' : '' }}">
|
||||
class="{{ $errors->has('parent_category') ? ' is-invalid' : '' }}">
|
||||
<option value="0">@lang('category.select_parent_category')</option>
|
||||
@foreach($categories as $select_category)
|
||||
<option value="{{ $select_category->id }}"
|
||||
@ -115,3 +115,11 @@
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$('#parent_category').selectize({
|
||||
create: false
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
@ -62,7 +62,7 @@
|
||||
<div class="form-group">
|
||||
<label for="category_id">@lang('category.category')</label>
|
||||
<select id="category_id" name="category_id"
|
||||
class="custom-select{{ $errors->has('category_id') ? ' is-invalid' : '' }}">
|
||||
class="{{ $errors->has('category_id') ? ' is-invalid' : '' }}">
|
||||
<option value="0">@lang('category.select_category')</option>
|
||||
@foreach($categories as $category)
|
||||
<option value="{{ $category->id }}"
|
||||
@ -134,8 +134,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('scripts')
|
||||
@include('models.links.partials.tags-js')
|
||||
@endpush
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$('#category_id').selectize({
|
||||
create: false
|
||||
});
|
||||
</script>
|
||||
@include('models.links.partials.tags-js')
|
||||
@endpush
|
||||
|
@ -54,7 +54,7 @@
|
||||
<div class="form-group">
|
||||
<label for="category_id">@lang('category.category')</label>
|
||||
<select id="category_id" name="category_id"
|
||||
class="custom-select{{ $errors->has('category_id') ? ' is-invalid' : '' }}">
|
||||
class="{{ $errors->has('category_id') ? ' is-invalid' : '' }}">
|
||||
<option value="0">@lang('category.select_category')</option>
|
||||
@foreach($categories as $category)
|
||||
<option value="{{ $category->id }}">
|
||||
@ -136,5 +136,10 @@
|
||||
</div>
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$('#category_id').selectize({
|
||||
create: false
|
||||
});
|
||||
</script>
|
||||
@include('models.links.partials.tags-js')
|
||||
@endpush
|
||||
|
Loading…
x
Reference in New Issue
Block a user