]> BookStack Code Mirror - bookstack/blob - resources/views/settings/webhooks/index.blade.php
Revised webhooks list to new format
[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" name="search" placeholder="{{ trans('common.search') }}" @if($listDetails['search']) value="{{$listDetails['search']}}" @endif>
27                         </form>
28                     </div>
29                 </div>
30                 <div class="justify-flex-end">
31                     @include('common.sort', ['options' => [
32                         'name' => trans('common.sort_name'),
33                         'endpoint'  => trans('settings.webhooks_endpoint'),
34                         'created_at' => trans('common.sort_created_at'),
35                         'updated_at' => trans('common.sort_updated_at'),
36                         'active'     => trans('common.status'),
37                     ], 'order' => $listDetails['order'], 'sort' => $listDetails['sort'], 'type' => 'webhooks'])
38                 </div>
39             </div>
40
41             @if(count($webhooks) > 0)
42                 <div class="item-list">
43                     @foreach($webhooks as $webhook)
44                         @include('settings.webhooks.parts.webhooks-list-item', ['webhook' => $webhook])
45                     @endforeach
46                 </div>
47             @else
48                 <p class="text-muted empty-text px-none">
49                     {{ trans('settings.webhooks_none_created') }}
50                 </p>
51             @endif
52
53             <div class="my-m">
54                 {{ $webhooks->links() }}
55             </div>
56
57         </div>
58     </div>
59
60 @stop