]> BookStack Code Mirror - bookstack/blob - resources/views/settings/webhooks/edit.blade.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / views / settings / webhooks / edit.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4
5     <div class="container small">
6         @include('settings.parts.navbar', ['selected' => 'webhooks'])
7
8         <div class="card content-wrap auto-height">
9             <h1 class="list-heading">{{ trans('settings.webhooks_edit') }}</h1>
10
11
12             <div class="setting-list">
13             <div class="grid half">
14                 <div>
15                     <label class="setting-list-label">{{ trans('settings.webhooks_status') }}</label>
16                     <p class="mb-none">
17                         {{ trans('settings.webhooks_last_called') }} {{ $webhook->last_called_at ? $webhook->last_called_at->diffForHumans() : trans('common.never') }}
18                         <br>
19                         {{ trans('settings.webhooks_last_errored') }} {{ $webhook->last_errored_at ? $webhook->last_errored_at->diffForHumans() : trans('common.never') }}
20                     </p>
21                 </div>
22                 <div class="text-muted">
23                     <br>
24                     @if($webhook->last_error)
25                         {{ trans('settings.webhooks_last_error_message') }} <br>
26                         <span class="text-warn text-small">{{ $webhook->last_error }}</span>
27                     @endif
28                 </div>
29             </div>
30             </div>
31
32
33             <hr>
34
35             <form action="{{ $webhook->getUrl() }}" method="POST">
36                 {!! csrf_field() !!}
37                 {!! method_field('PUT') !!}
38                 @include('settings.webhooks.parts.form', ['model' => $webhook, 'title' => trans('settings.webhooks_edit')])
39
40                 <div class="form-group text-right">
41                     <a href="{{ url("/settings/webhooks") }}" class="button outline">{{ trans('common.cancel') }}</a>
42                     <a href="{{ $webhook->getUrl('/delete') }}" class="button outline">{{ trans('settings.webhooks_delete') }}</a>
43                     <button type="submit" class="button">{{ trans('settings.webhooks_save') }}</button>
44                 </div>
45
46             </form>
47         </div>
48
49         @include('settings.webhooks.parts.format-example')
50     </div>
51
52 @stop