3 <div class="card content-wrap auto-height">
4 <h1 class="list-heading">{{ $title }}</h1>
6 <div class="setting-list">
8 <div class="grid half">
10 <label class="setting-list-label">{{ trans('settings.webhooks_details') }}</label>
11 <p class="small">{{ trans('settings.webhooks_details_desc') }}</p>
14 <div class="form-group">
15 <label for="name">{{ trans('settings.webhooks_name') }}</label>
16 @include('form.text', ['name' => 'name'])
18 <div class="form-group">
19 <label for="endpoint">{{ trans('settings.webhooks_endpoint') }}</label>
20 @include('form.text', ['name' => 'endpoint'])
25 <div component="webhook-events">
26 <label class="setting-list-label">{{ trans('settings.webhooks_events') }}</label>
27 <p class="small">{{ trans('settings.webhooks_events_desc') }}</p>
28 <p class="text-warn small">{{ trans('settings.webhooks_events_warning') }}</p>
31 <label><input type="checkbox"
34 refs="webhook-events@all">
35 {{ trans('settings.webhooks_events_all') }}</label>
40 <div class="dual-column-content">
41 @foreach(\BookStack\Actions\ActivityType::all() as $activityType)
42 <label><input type="checkbox" name="events[]" value="{{ $activityType }}">{{ $activityType }}</label>
49 <div class="form-group text-right">
50 <a href="{{ url("/settings/webhooks") }}" class="button outline">{{ trans('common.cancel') }}</a>
51 @if ($webhook->id ?? false)
52 <a href="{{ url("/settings/roles/delete/{$webhook->id}") }}" class="button outline">{{ trans('settings.webhooks_delete') }}</a>
54 <button type="submit" class="button">{{ trans('settings.webhooks_save') }}</button>