]> BookStack Code Mirror - bookstack/blob - resources/views/settings/webhooks/index.blade.php
Refactored common list handling operations to new class
[bookstack] / resources / views / settings / webhooks / index.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4
5     <div class="container small">
6
7         @include('settings.parts.navbar', ['selected' => 'webhooks'])
8
9         <div class="card content-wrap auto-height">
10
11             <div class="flex-container-row items-center justify-space-between wrap">
12                 <h1 class="list-heading">{{ trans('settings.webhooks') }}</h1>
13
14                 <div>
15                     <a href="{{ url("/settings/webhooks/create") }}"
16                        class="button outline">{{ trans('settings.webhooks_create') }}</a>
17                 </div>
18             </div>
19
20             <p class="text-muted">{{ trans('settings.webhooks_index_desc') }}</p>
21
22             <div class="flex-container-row items-center justify-space-between gap-m mt-m mb-l wrap">
23                 <div>
24                     <div class="block inline mr-xs">
25                         <form method="get" action="{{ url("/settings/webhooks") }}">
26                             <input type="text"
27                                    name="search"
28                                    placeholder="{{ trans('common.search') }}"
29                                    value="{{ $listOptions->getSearch() }}">
30                         </form>
31                     </div>
32                 </div>
33                 <div class="justify-flex-end">
34                     @include('common.sort', $listOptions->getSortControlData())
35                 </div>
36             </div>
37
38             @if(count($webhooks) > 0)
39                 <div class="item-list">
40                     @foreach($webhooks as $webhook)
41                         @include('settings.webhooks.parts.webhooks-list-item', ['webhook' => $webhook])
42                     @endforeach
43                 </div>
44             @else
45                 <p class="text-muted empty-text px-none">
46                     {{ trans('settings.webhooks_none_created') }}
47                 </p>
48             @endif
49
50             <div class="my-m">
51                 {{ $webhooks->links() }}
52             </div>
53
54         </div>
55     </div>
56
57 @stop