2023-07-27 21:27:45 +08:00
|
|
|
<form action="{{ $entity->getUrl('/') }}" method="GET">
|
|
|
|
{{-- {{ method_field('PUT') }}--}}
|
2023-07-31 22:23:28 +08:00
|
|
|
{{ csrf_field() }}
|
|
|
|
<input type="hidden" name="type" value="{{ get_class($entity) }}">
|
|
|
|
<input type="hidden" name="id" value="{{ $entity->id }}">
|
2023-07-27 21:27:45 +08:00
|
|
|
|
2023-07-31 22:23:28 +08:00
|
|
|
<ul refs="dropdown@menu" class="dropdown-menu xl-limited anchor-left pb-none">
|
2023-07-31 23:08:29 +08:00
|
|
|
@foreach(\BookStack\Activity\Models\Watch::getAvailableOptionNames() as $option)
|
2023-07-27 21:27:45 +08:00
|
|
|
<li>
|
2023-07-31 22:23:28 +08:00
|
|
|
<button name="level" value="{{ $option }}" class="icon-item">
|
|
|
|
@if(request()->query('level') === $option)
|
|
|
|
<span class="text-pos pt-m" title="{{ trans('common.status_active') }}">@icon('check-circle')</span>
|
|
|
|
@else
|
|
|
|
<span title="{{ trans('common.status_inactive') }}"></span>
|
|
|
|
@endif
|
2023-07-27 21:27:45 +08:00
|
|
|
<div class="break-text">
|
2023-07-31 22:23:28 +08:00
|
|
|
<div class="mb-xxs"><strong>{{ trans('entities.watch_title_' . $option) }}</strong></div>
|
2023-07-27 21:27:45 +08:00
|
|
|
<div class="text-muted text-small">
|
2023-07-31 22:23:28 +08:00
|
|
|
{{ trans('entities.watch_desc_' . $option) }}
|
2023-07-27 21:27:45 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
<li><hr class="my-none"></li>
|
2023-07-31 22:23:28 +08:00
|
|
|
@endforeach
|
2023-07-27 21:27:45 +08:00
|
|
|
<li>
|
2023-07-31 22:23:28 +08:00
|
|
|
<a href="{{ url('/preferences/notifications') }}"
|
|
|
|
target="_blank"
|
|
|
|
class="text-item text-muted text-small break-text">{{ trans('entities.watch_change_default') }}</a>
|
2023-07-27 21:27:45 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</form>
|