2021-12-06 11:00:02 +03:00
|
|
|
<?php extend('layouts/backend_layout') ?>
|
2021-11-18 09:53:41 +03:00
|
|
|
|
|
|
|
<?php section('content') ?>
|
|
|
|
|
2021-12-18 22:53:59 +03:00
|
|
|
<div id="general-settings-page" class="container backend-page">
|
|
|
|
<div id="general-settings">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 offset-lg-2">
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<legend class="d-flex justify-content-between align-items-center border-bottom mb-4 py-2">
|
|
|
|
<?= lang('general_settings') ?>
|
2022-01-24 22:58:15 +03:00
|
|
|
|
2021-12-18 22:53:59 +03:00
|
|
|
<?php if (can('edit', PRIV_SYSTEM_SETTINGS)): ?>
|
2022-01-24 14:55:45 +03:00
|
|
|
<button type="button" id="save-settings" class="btn btn-primary">
|
2021-12-18 22:53:59 +03:00
|
|
|
<i class="fas fa-check-square me-2"></i>
|
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
<?php endif ?>
|
|
|
|
</legend>
|
2021-11-18 09:53:41 +03:00
|
|
|
|
2022-01-24 20:36:12 +03:00
|
|
|
<div class="row mb-5">
|
|
|
|
<div class="col-12">
|
|
|
|
<h4><?= lang('company') ?></h4>
|
2022-01-24 22:58:15 +03:00
|
|
|
|
2021-12-18 22:53:59 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="company-name">
|
|
|
|
<?= lang('company_name') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
|
|
|
<input id="company-name" data-field="company_name" class="required form-control">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('company_name_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2021-11-23 11:53:10 +03:00
|
|
|
</div>
|
2021-11-18 09:53:41 +03:00
|
|
|
|
2021-12-18 22:53:59 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="company-email">
|
|
|
|
<?= lang('company_email') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
|
|
|
<input id="company-email" data-field="company_email" class="required form-control">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('company_email_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2021-11-23 11:53:10 +03:00
|
|
|
</div>
|
2021-11-18 09:53:41 +03:00
|
|
|
|
2021-12-18 22:53:59 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="company-link">
|
|
|
|
<?= lang('company_link') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
|
|
|
<input id="company-link" data-field="company_link" class="required form-control">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('company_link_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2021-11-23 11:53:10 +03:00
|
|
|
</div>
|
2022-01-24 20:36:12 +03:00
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="company-logo">
|
|
|
|
<?= lang('company_logo') ?>
|
|
|
|
</label>
|
2022-01-24 22:58:15 +03:00
|
|
|
<input type="file" id="company-logo" data-field="company_logo" class="form-control"
|
|
|
|
accept="image/*">
|
2022-01-24 20:36:12 +03:00
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('company_logo_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2022-01-24 22:58:15 +03:00
|
|
|
|
2022-01-24 20:36:12 +03:00
|
|
|
<div class="d-flex justify-content-center">
|
2022-01-24 22:58:15 +03:00
|
|
|
<img src="#" alt="Company Logo Preview" id="company-logo-preview"
|
|
|
|
class="img-thumbnail my-3" hidden>
|
2022-01-24 20:36:12 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-flex justify-content-center">
|
2022-01-24 22:58:15 +03:00
|
|
|
<button type="button" class="btn btn-danger btn-sm mb-3"
|
|
|
|
id="remove-company-logo" hidden>
|
2022-01-24 20:36:12 +03:00
|
|
|
<i class="fas fa-trash me-2"></i>
|
|
|
|
<?= lang('remove') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="company-color">
|
|
|
|
<?= lang('company_color') ?>
|
|
|
|
</label>
|
2022-01-24 22:58:15 +03:00
|
|
|
|
|
|
|
<input type="color" id="company-color" data-field="company_color"
|
|
|
|
class="form-control">
|
|
|
|
|
2022-01-24 20:36:12 +03:00
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('company_color_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2022-01-24 22:58:15 +03:00
|
|
|
|
|
|
|
<div class="d-flex justify-content-center">
|
|
|
|
<button type="button" class="btn btn-danger btn-sm my-3"
|
|
|
|
id="reset-company-color" hidden>
|
|
|
|
<i class="fas fa-undo-alt me-2"></i>
|
|
|
|
<?= lang('reset') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
2022-01-24 20:36:12 +03:00
|
|
|
</div>
|
2022-05-22 15:39:19 +03:00
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="theme">
|
|
|
|
<?= lang('theme') ?>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<select id="theme" data-field="theme" class="form-control">
|
|
|
|
<option value="default">
|
|
|
|
<?= lang('default') ?>
|
|
|
|
</option>
|
|
|
|
<option value="cerulean">
|
|
|
|
cerulean
|
|
|
|
</option>
|
|
|
|
<option value="cosmo">
|
|
|
|
cosmo
|
|
|
|
</option>
|
|
|
|
<option value="cyborg">
|
|
|
|
cyborg
|
|
|
|
</option>
|
|
|
|
<option value="darkly">
|
|
|
|
darkly
|
|
|
|
</option>
|
|
|
|
<option value="default">
|
|
|
|
default
|
|
|
|
</option>
|
|
|
|
<option value="flatly">
|
|
|
|
flatly
|
|
|
|
</option>
|
|
|
|
<option value="journal">
|
|
|
|
journal
|
|
|
|
</option>
|
|
|
|
<option value="litera">
|
|
|
|
litera
|
|
|
|
</option>
|
|
|
|
<option value="lumen">
|
|
|
|
lumen
|
|
|
|
</option>
|
|
|
|
<option value="lux">
|
|
|
|
lux
|
|
|
|
</option>
|
|
|
|
<option value="materia">
|
|
|
|
materia
|
|
|
|
</option>
|
|
|
|
<option value="minty">
|
|
|
|
minty
|
|
|
|
</option>
|
|
|
|
<option value="morph">
|
|
|
|
morph
|
|
|
|
</option>
|
|
|
|
<option value="pulse">
|
|
|
|
pulse
|
|
|
|
</option>
|
|
|
|
<option value="quartz">
|
|
|
|
quartz
|
|
|
|
</option>
|
|
|
|
<option value="regent">
|
|
|
|
regent
|
|
|
|
</option>
|
|
|
|
<option value="sandstone">
|
|
|
|
sandstone
|
|
|
|
</option>
|
|
|
|
<option value="simplex">
|
|
|
|
simplex
|
|
|
|
</option>
|
|
|
|
<option value="sketchy">
|
|
|
|
sketchy
|
|
|
|
</option>
|
|
|
|
<option value="slate">
|
|
|
|
slate
|
|
|
|
</option>
|
|
|
|
<option value="solar">
|
|
|
|
solar
|
|
|
|
</option>
|
|
|
|
<option value="spacelab">
|
|
|
|
spacelab
|
|
|
|
</option>
|
|
|
|
<option value="superhero">
|
|
|
|
superhero
|
|
|
|
</option>
|
|
|
|
<option value="united">
|
|
|
|
united
|
|
|
|
</option>
|
|
|
|
<option value="vapor">
|
|
|
|
vapor
|
|
|
|
</option>
|
|
|
|
<option value="yeti">
|
|
|
|
yeti
|
|
|
|
</option>
|
|
|
|
<option value="zephyr">
|
|
|
|
zephyr
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('company_color_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-01-24 20:36:12 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-24 22:58:15 +03:00
|
|
|
|
2022-01-24 20:36:12 +03:00
|
|
|
<div class="row mb-5">
|
|
|
|
<div class="col-12">
|
|
|
|
<h4><?= lang('localization') ?></h4>
|
|
|
|
|
2021-12-18 22:53:59 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="date-format">
|
|
|
|
<?= lang('date_format') ?>
|
|
|
|
</label>
|
|
|
|
<select class="form-control" id="date-format" data-field="date_format">
|
|
|
|
<option value="DMY">DMY</option>
|
|
|
|
<option value="MDY">MDY</option>
|
|
|
|
<option value="YMD">YMD</option>
|
|
|
|
</select>
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('date_format_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2021-11-23 11:53:10 +03:00
|
|
|
</div>
|
2021-12-18 22:53:59 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="time-format">
|
|
|
|
<?= lang('time_format') ?>
|
|
|
|
</label>
|
|
|
|
<select class="form-control" id="time-format" data-field="time_format">
|
|
|
|
<option value="<?= TIME_FORMAT_REGULAR ?>">H:MM AM/PM</option>
|
|
|
|
<option value="<?= TIME_FORMAT_MILITARY ?>">HH:MM</option>
|
|
|
|
</select>
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('time_format_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2021-11-23 11:53:10 +03:00
|
|
|
</div>
|
2021-12-18 22:53:59 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="first-weekday">
|
|
|
|
<?= lang('first_weekday') ?>
|
|
|
|
</label>
|
|
|
|
<select class="form-control" id="first-weekday" data-field="first_weekday">
|
|
|
|
<option value="sunday"><?= lang('sunday') ?></option>
|
|
|
|
<option value="monday"><?= lang('monday') ?></option>
|
|
|
|
<option value="tuesday"><?= lang('tuesday') ?></option>
|
|
|
|
<option value="wednesday"><?= lang('wednesday') ?></option>
|
|
|
|
<option value="thursday"><?= lang('thursday') ?></option>
|
|
|
|
<option value="friday"><?= lang('friday') ?></option>
|
|
|
|
<option value="saturday"><?= lang('saturday') ?></option>
|
|
|
|
</select>
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('first_weekday_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2021-11-23 11:53:10 +03:00
|
|
|
</div>
|
2021-11-18 09:53:41 +03:00
|
|
|
</div>
|
2022-01-24 20:36:12 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h4><?= lang('integrations') ?></h4>
|
2022-01-24 22:58:15 +03:00
|
|
|
|
2021-12-18 22:53:59 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="google-analytics-code">
|
2022-01-19 12:18:00 +03:00
|
|
|
Google Analytics Code
|
|
|
|
</label>
|
2021-12-18 22:53:59 +03:00
|
|
|
<input id="google-analytics-code" placeholder="UA-XXXXXXXX-XX or G-XXXXXXXXXX"
|
|
|
|
data-field="google_analytics_code" class="form-control">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('google_analytics_code_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2021-11-23 11:53:10 +03:00
|
|
|
</div>
|
2021-12-18 22:53:59 +03:00
|
|
|
<div class="mb-3">
|
2022-01-19 12:18:00 +03:00
|
|
|
<label class="form-label" for="google-analytics-code">
|
|
|
|
Matomo Analytics URL
|
|
|
|
</label>
|
|
|
|
<input id="matomo-analytics-url" placeholder="//example.org/url/to/matomo/"
|
|
|
|
data-field="matomo_analytics_url" class="form-control">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('matomo_analytics_url_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-24 22:58:15 +03:00
|
|
|
|
2022-01-19 12:18:00 +03:00
|
|
|
<div class="mb-3">
|
2021-12-18 22:53:59 +03:00
|
|
|
<label class="form-label" for="api-token">API Token</label>
|
|
|
|
<input id="api-token" data-field="api_token" class="form-control">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('api_token_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
2021-11-23 11:53:10 +03:00
|
|
|
</div>
|
2021-11-18 09:53:41 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-18 22:53:59 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
2021-11-18 09:53:41 +03:00
|
|
|
</div>
|
2021-12-18 22:53:59 +03:00
|
|
|
</div>
|
2021-11-18 09:53:41 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php section('content') ?>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
|
|
|
<?php section('scripts') ?>
|
|
|
|
|
2021-12-18 22:53:59 +03:00
|
|
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/http/general_settings_http_client.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/pages/general_settings.js') ?>"></script>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
|
|
|
<?php section('scripts') ?>
|