]> BookStack Code Mirror - bookstack/blob - resources/views/entities/watch-controls.blade.php
8d6bfed006ebc23fd27f4c589aa59329ad97c10f
[bookstack] / resources / views / entities / watch-controls.blade.php
1 <form action="{{ $entity->getUrl('/') }}" method="GET">
2 {{--    {{ method_field('PUT') }}--}}
3     {{ csrf_field() }}
4     <input type="hidden" name="type" value="{{ get_class($entity) }}">
5     <input type="hidden" name="id" value="{{ $entity->id }}">
6
7     <ul refs="dropdown@menu" class="dropdown-menu xl-limited anchor-left pb-none">
8         @foreach(\BookStack\Activity\Models\Watch::getAvailableOptionNames() as $option)
9         <li>
10             <button name="level" value="{{ $option }}" class="icon-item">
11                 @if(request()->query('level') === $option)
12                     <span class="text-pos pt-m" title="{{ trans('common.status_active') }}">@icon('check-circle')</span>
13                 @else
14                     <span title="{{ trans('common.status_inactive') }}"></span>
15                 @endif
16                 <div class="break-text">
17                     <div class="mb-xxs"><strong>{{ trans('entities.watch_title_' . $option) }}</strong></div>
18                     <div class="text-muted text-small">
19                         {{ trans('entities.watch_desc_' . $option) }}
20                     </div>
21                 </div>
22             </button>
23         </li>
24         <li><hr class="my-none"></li>
25         @endforeach
26         <li>
27             <a href="{{ url('/preferences/notifications') }}"
28                target="_blank"
29                class="text-item text-muted text-small break-text">{{ trans('entities.watch_change_default') }}</a>
30         </li>
31     </ul>
32 </form>