]> BookStack Code Mirror - bookstack/blob - resources/views/entities/watch-controls.blade.php
Notifications: Linked watch functionality to UI
[bookstack] / resources / views / entities / watch-controls.blade.php
1 <form action="{{ url('/watching/update') }}" method="POST">
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\Tools\UserWatchOptions::getAvailableLevelNames() as $option)
9             <li>
10                 <button name="level" value="{{ $option }}" class="icon-item">
11                     @if($watchLevel === $option)
12                         <span class="text-pos pt-m"
13                               title="{{ trans('common.status_active') }}">@icon('check-circle')</span>
14                     @else
15                         <span title="{{ trans('common.status_inactive') }}"></span>
16                     @endif
17                     <div class="break-text">
18                         <div class="mb-xxs"><strong>{{ trans('entities.watch_title_' . $option) }}</strong></div>
19                         <div class="text-muted text-small">
20                             {{ trans('entities.watch_desc_' . $option) }}
21                         </div>
22                     </div>
23                 </button>
24             </li>
25             <li>
26                 <hr class="my-none">
27             </li>
28         @endforeach
29         <li>
30             <a href="{{ url('/preferences/notifications') }}"
31                target="_blank"
32                class="text-item text-muted text-small break-text">{{ trans('entities.watch_change_default') }}</a>
33         </li>
34     </ul>
35 </form>