1 <div class="setting-list">
2 <div class="grid half">
4 <label class="setting-list-label">{{ trans('settings.sort_set_details') }}</label>
5 <p class="text-muted text-small">{{ trans('settings.sort_set_details_desc') }}</p>
8 <div class="form-group">
9 <label for="name">{{ trans('common.name') }}</label>
10 @include('form.text', ['name' => 'name'])
15 <div component="sort-set-manager">
16 <label class="setting-list-label">{{ trans('settings.sort_set_operations') }}</label>
17 <p class="text-muted text-small">{{ trans('settings.sort_set_operations_desc') }}</p>
18 @include('form.errors', ['name' => 'sequence'])
20 <input refs="sort-set-manager@input" type="hidden" name="sequence"
21 value="{{ old('sequence') ?? $model?->sequence ?? '' }}">
24 $configuredOps = old('sequence') ? \BookStack\Sorting\SortSetOperation::fromSequence(old('sequence')) : ($model?->getOperations() ?? []);
27 <div class="grid half">
28 <div class="form-group">
30 id="sort-set-configured-operations">{{ trans('settings.sort_set_configured_operations') }}</label>
31 <ul refs="sort-set-manager@configured-operations-list"
32 aria-labelledby="sort-set-configured-operations"
33 class="scroll-box configured-option-list">
34 <li class="text-muted empty-state px-m py-s italic text-small">{{ trans('settings.sort_set_configured_operations_empty') }}</li>
36 @foreach($configuredOps as $operation)
37 @include('settings.sort-sets.parts.operation', ['operation' => $operation])
42 <div class="form-group">
44 id="sort-set-available-operations">{{ trans('settings.sort_set_available_operations') }}</label>
45 <ul refs="sort-set-manager@available-operations-list"
46 aria-labelledby="sort-set-available-operations"
47 class="scroll-box available-option-list">
48 <li class="text-muted empty-state px-m py-s italic text-small">{{ trans('settings.sort_set_available_operations_empty') }}</li>
49 @foreach(\BookStack\Sorting\SortSetOperation::allExcluding($configuredOps) as $operation)
50 @include('settings.sort-sets.parts.operation', ['operation' => $operation])