mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 18:12:26 +03:00
141 lines
5.5 KiB
PHP
141 lines
5.5 KiB
PHP
|
<?php extend('layouts/backend_layout') ?>
|
||
|
|
||
|
<?php section('content') ?>
|
||
|
|
||
|
<div class="container-fluid backend-page" id="webhooks-page">
|
||
|
<div class="row" id="webhooks">
|
||
|
<div id="filter-webhooks" class="filter-records col col-12 col-md-5">
|
||
|
<form class="mb-4">
|
||
|
<div class="input-group">
|
||
|
<input type="text" class="key form-control">
|
||
|
|
||
|
<button class="filter btn btn-outline-secondary" type="submit"
|
||
|
data-tippy-content="<?= lang('filter') ?>">
|
||
|
<i class="fas fa-search"></i>
|
||
|
</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<h3><?= lang('webhooks') ?></h3>
|
||
|
<div class="results"></div>
|
||
|
</div>
|
||
|
|
||
|
<div class="record-details column col-12 col-md-5">
|
||
|
<div class="btn-toolbar mb-4">
|
||
|
<div class="add-edit-delete-group btn-group">
|
||
|
<button id="add-webhook" class="btn btn-primary">
|
||
|
<i class="fas fa-plus-square me-2"></i>
|
||
|
<?= lang('add') ?>
|
||
|
</button>
|
||
|
<button id="edit-webhook" class="btn btn-outline-secondary" disabled="disabled">
|
||
|
<i class="fas fa-edit me-2"></i>
|
||
|
<?= lang('edit') ?>
|
||
|
</button>
|
||
|
<button id="delete-webhook" class="btn btn-outline-secondary" disabled="disabled">
|
||
|
<i class="fas fa-trash-alt me-2"></i>
|
||
|
<?= lang('delete') ?>
|
||
|
</button>
|
||
|
</div>
|
||
|
|
||
|
<div class="save-cancel-group" style="display:none;">
|
||
|
<button id="save-webhook" class="btn btn-primary">
|
||
|
<i class="fas fa-check-square me-2"></i>
|
||
|
<?= lang('save') ?>
|
||
|
</button>
|
||
|
<button id="cancel-webhook" class="btn btn-secondary">
|
||
|
<?= lang('cancel') ?>
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<h3><?= lang('details') ?></h3>
|
||
|
|
||
|
<div class="form-message alert" style="display:none;"></div>
|
||
|
|
||
|
<input type="hidden" id="id">
|
||
|
|
||
|
<div class="mb-3">
|
||
|
<label class="form-label" for="name">
|
||
|
<?= lang('name') ?>
|
||
|
<span class="text-danger" hidden>*</span>
|
||
|
</label>
|
||
|
<input id="name" class="form-control required" maxlength="128" disabled>
|
||
|
</div>
|
||
|
|
||
|
<div class="mb-3">
|
||
|
<label class="form-label" for="duration">
|
||
|
<?= lang('url') ?>
|
||
|
<span class="text-danger" hidden>*</span>
|
||
|
</label>
|
||
|
<input id="url" class="form-control required" disabled>
|
||
|
</div>
|
||
|
|
||
|
<div class="mb-3">
|
||
|
<label class="form-label" for="secret-token">
|
||
|
<?= lang('secret_token') ?>
|
||
|
</label>
|
||
|
|
||
|
<input id="secret-token" class="form-control" disabled>
|
||
|
</div>
|
||
|
|
||
|
<div class="mb-3">
|
||
|
<label class="form-label" for="notes">
|
||
|
<?= lang('notes') ?>
|
||
|
</label>
|
||
|
<textarea id="notes" rows="4" class="form-control" disabled></textarea>
|
||
|
</div>
|
||
|
|
||
|
<div class="border raounded mb-3 p-3">
|
||
|
<label class="form-label mb-3" for="actions">
|
||
|
<?= lang('actions') ?>
|
||
|
</label>
|
||
|
|
||
|
<div id="actions">
|
||
|
<?php foreach (vars('available_actions') as $available_action): ?>
|
||
|
<div class="mb-3">
|
||
|
<div class="form-check form-switch">
|
||
|
<input class="form-check-input" type="checkbox"
|
||
|
id="include-<?= str_replace('_', '-', $available_action) ?>"
|
||
|
data-action="<?= $available_action ?>">
|
||
|
|
||
|
<label class="form-check-label"
|
||
|
for="include-<?= str_replace('_', '-', $available_action) ?>">
|
||
|
<?= lang($available_action) ?>
|
||
|
</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php endforeach ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="border rounded mb-3 p-3">
|
||
|
<label class="form-label mb-3">
|
||
|
<?= lang('options') ?>
|
||
|
</label>
|
||
|
|
||
|
<div class="">
|
||
|
<div class="form-check form-switch">
|
||
|
<input class="form-check-input" type="checkbox" id="is-ssl-verified">
|
||
|
|
||
|
<label class="form-check-label" for="is-ssl-verified">
|
||
|
<?= lang('verify_ssl') ?>
|
||
|
</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<?php section('content') ?>
|
||
|
|
||
|
<?php section('scripts') ?>
|
||
|
|
||
|
<script src="<?= asset_url('assets/js/utils/message.js') ?>"></script>
|
||
|
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
||
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
||
|
<script src="<?= asset_url('assets/js/http/webhooks_http_client.js') ?>"></script>
|
||
|
<script src="<?= asset_url('assets/js/pages/webhooks.js') ?>"></script>
|
||
|
|
||
|
<?php section('scripts') ?>
|