easyappointments/application/views/pages/legal_settings.php

93 lines
4.4 KiB
PHP
Raw Normal View History

<?php extend('layouts/backend_layout') ?>
<?php section('content') ?>
<div id="legal-settings-page" class="container backend-page">
<div id="legal-contents">
<div class="row">
2022-07-27 02:45:52 +03:00
<div class="col-sm-3 offset-sm-1">
<?php component('settings_nav') ?>
</div>
<div class="col-sm-6">
<form>
<fieldset>
<legend class="d-flex justify-content-between align-items-center border-bottom mb-4 py-2">
<?= lang('legal_contents') ?>
<?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>
<?php endif ?>
</legend>
<div class="row">
<div class="col-12">
<h4><?= lang('cookie_notice') ?></h4>
<div class="form-check form-switch mb-3">
<input class="form-check-input display-switch" type="checkbox"
id="display-cookie-notice">
<label class="form-check-label" for="display-cookie-notice">
<?= lang('display_cookie_notice') ?>
</label>
</div>
<div class="mb-5">
<label class="form-label" for="cookie-notice-content"><?= lang('cookie_notice_content') ?></label>
<textarea id="cookie-notice-content" cols="30" rows="10" class="mb-3"></textarea>
</div>
<h4><?= lang('terms_and_conditions') ?></h4>
<div class="form-check form-switch mb-3">
<input class="form-check-input display-switch" type="checkbox"
id="display-terms-and-conditions">
<label class="form-check-label" for="display-terms-and-conditions">
<?= lang('display_terms_and_conditions') ?>
</label>
</div>
<div class="mb-5">
<label class="form-label" for="terms-and-conditions-content"><?= lang('terms_and_conditions_content') ?></label>
<textarea id="terms-and-conditions-content" cols="30" rows="10"
class="mb-3"></textarea>
</div>
<h4><?= lang('privacy_policy') ?></h4>
<div class="form-check form-switch mb-3">
<input class="form-check-input display-switch" type="checkbox"
id="display-privacy-policy">
<label class="form-check-label" for="display-privacy-policy">
<?= lang('display_privacy_policy') ?>
</label>
</div>
<div class="mb-3">
<label class="form-label" for="privacy-policy-content"><?= lang('privacy_policy_content') ?></label>
<textarea id="privacy-policy-content" cols="30" rows="10" class="mb-3"></textarea>
</div>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<?php section('content') ?>
2021-12-14 10:05:22 +03:00
<?php section('scripts') ?>
<script src="<?= asset_url('assets/js/utils/ui.js') ?>"></script>
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
<script src="<?= asset_url('assets/js/http/legal_settings_http_client.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/legal_settings.js') ?>"></script>
2021-12-14 10:05:22 +03:00
<?php section('scripts') ?>