2023-11-29 12:24:09 +03:00
|
|
|
<?php extend('layouts/backend_layout'); ?>
|
2022-07-26 16:38:58 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php section('content'); ?>
|
2022-07-26 16:38:58 +03:00
|
|
|
|
|
|
|
<div id="api-settings-page" class="container backend-page">
|
2023-01-21 14:50:12 +03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 offset-sm-1">
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php component('settings_nav'); ?>
|
2023-01-21 14:50:12 +03:00
|
|
|
</div>
|
|
|
|
<div id="api-settings" class="col-sm-6">
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<div class="d-flex justify-content-between align-items-center border-bottom mb-4 py-2">
|
|
|
|
<h4 class="text-black-50 mb-0 fw-light">
|
|
|
|
<?= lang('api') ?>
|
|
|
|
</h4>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<a href="<?= site_url('integrations') ?>" class="btn btn-outline-primary me-2">
|
|
|
|
<i class="fas fa-chevron-left me-2"></i>
|
|
|
|
<?= lang('back') ?>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<?php if (can('edit', PRIV_SYSTEM_SETTINGS)): ?>
|
|
|
|
<button type="button" id="save-settings" class="btn btn-primary">
|
|
|
|
<i class="fas fa-check-square me-2"></i>
|
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php endif; ?>
|
2022-09-14 11:30:52 +03:00
|
|
|
</div>
|
2023-01-21 14:50:12 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="api-token">
|
|
|
|
<?= lang('api_token') ?>
|
|
|
|
</label>
|
|
|
|
<input id="api-token" class="form-control" data-field="api_token">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('api_token_hint') ?>
|
|
|
|
</small>
|
2022-07-26 16:38:58 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-21 14:50:12 +03:00
|
|
|
</div>
|
2024-05-11 18:50:45 +03:00
|
|
|
|
|
|
|
<?php slot('after_primary_appointment_fields'); ?>
|
2023-01-21 14:50:12 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
2022-07-26 16:38:58 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php end_section('content'); ?>
|
2022-07-26 16:38:58 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php section('scripts'); ?>
|
2022-07-26 16:38:58 +03:00
|
|
|
|
|
|
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/http/api_settings_http_client.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/pages/api_settings.js') ?>"></script>
|
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php end_section('scripts'); ?>
|