-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
document.addEventListener('alpine:init', () => { | ||
window.Alpine.data('table', (config) => { | ||
return { | ||
models: config.models, | ||
selection: [], | ||
selectedAllMatchingQuery: false, | ||
selectedAllModels: false, | ||
init() { | ||
this.$watch('selection', () => { | ||
this.$refs.selectCheckbox.indeterminate = this.selection.length > 0 && this.selection.length < this.models.length; | ||
|
||
this.selectedAllModels = this.selection.length > 0 && this.selection.length === this.models.length; | ||
}); | ||
}, | ||
}; | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
@use 'sprucecss/scss/spruce' as *; | ||
|
||
@include font-face( | ||
'Manrope', | ||
'/vendor/root/fonts/manrope-v14-latin-regular.woff2' | ||
'Manrope', | ||
'/vendor/root/fonts/manrope-v14-latin-regular.woff2' | ||
); | ||
|
||
@include font-face( | ||
'Manrope', | ||
'/vendor/root/fonts/manrope-v14-latin-500.woff2', | ||
500 | ||
'Manrope', | ||
'/vendor/root/fonts/manrope-v14-latin-500.woff2', | ||
500 | ||
); | ||
|
||
@include font-face( | ||
'Manrope', | ||
'/vendor/root/fonts/manrope-v14-latin-600.woff2', | ||
600 | ||
'Manrope', | ||
'/vendor/root/fonts/manrope-v14-latin-600.woff2', | ||
600 | ||
); | ||
|
||
@include font-face( | ||
'Manrope', | ||
'/vendor/root/fonts/manrope-v14-latin-800.woff2', | ||
700 | ||
'Manrope', | ||
'/vendor/root/fonts/manrope-v14-latin-800.woff2', | ||
700 | ||
); | ||
|
||
@include font-face( | ||
'Open Sans', | ||
'/vendor/root/fonts/open-sans-v35-latin-regular.woff2' | ||
'Open Sans', | ||
'/vendor/root/fonts/open-sans-v35-latin-regular.woff2' | ||
); | ||
|
||
@include font-face( | ||
'Open Sans', | ||
'/vendor/root/fonts/open-sans-v35-latin-700.woff2', | ||
700 | ||
'Open Sans', | ||
'/vendor/root/fonts/open-sans-v35-latin-700.woff2', | ||
700 | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<ol class="breadcrumb-list app-header__breadcrumb"> | ||
<li> | ||
<a href="/">Dashboard</a> | ||
</li> | ||
<li> | ||
<span aria-current="page">Products</span> | ||
</li> | ||
@foreach($breadcrumbs as $item) | ||
<li> | ||
@if($loop->last) | ||
<span aria-current="page">{{ $item['label'] }}</span> | ||
@else | ||
<a href="{{ $item['uri'] }}">{{ $item['label'] }}</a> | ||
@endif | ||
</li> | ||
@endforeach | ||
</ol> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<div class="form-group--row"> | ||
<label class="form-label" for="{{ $attrs->get('id') }}"> | ||
{{ $label }} | ||
@if($attrs->get('required')) | ||
<span class="required-marker">*</span> | ||
@endif | ||
</label> | ||
<div class="form-row--mixed"> | ||
<select | ||
class="form-control" | ||
x-on:change="(function (event) { | ||
Turbo.visit('{{ $url }}?{{ $morphTypeName }}='+event.target.value, { frame: '{{ $attrs->get('id') }}-select' }) | ||
})" | ||
> | ||
<option value="" @disabled(! $nullable)>{{ __('Choose Type') }}</option> | ||
@foreach($types as $type => $name) | ||
<option value="{{ $type }}" @selected($type === $morphType)>{{ $name }}</option> | ||
@endforeach | ||
</select> | ||
<turbo-frame id="{{ $attrs->get('id') }}-select"> | ||
<div> | ||
<div class="form-group--stacked"> | ||
@if($prefix) | ||
<div class="form-group-label">{!! $prefix !!}</div> | ||
@endif | ||
<select {{ $attrs }}> | ||
@if($nullable) | ||
<option value="">--- {{ $label }} ---</option> | ||
@endif | ||
@foreach($options as $option) | ||
@if(isset($option['options'])) | ||
<optgroup label="{{ $option['label'] }}"> | ||
@foreach($option['options'] as $o) | ||
<option {{ $o['attrs'] }}>{{ $o['label'] }}</option> | ||
@endforeach | ||
</optgroup> | ||
@else | ||
<option {{ $option['attrs'] }}>{{ $option['label'] }}</option> | ||
@endif | ||
@endforeach | ||
</select> | ||
@if($suffix) | ||
<div class="form-group-label">{!! $suffix !!}</div> | ||
@endif | ||
</div> | ||
@if($invalid) | ||
<span class="field-feedback field-feedback--invalid">{!! $error !!}</span> | ||
@endif | ||
@if($help) | ||
<span class="form-description">{!! $help !!}</span> | ||
@endif | ||
</div> | ||
</turbo-frame> | ||
</div> | ||
</div> |