Update the settings related navigation
This commit is contained in:
parent
bb802e34e1
commit
1340fa6e9f
7 changed files with 134 additions and 96 deletions
|
@ -85,25 +85,13 @@
|
|||
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
||||
data-tippy-content="<?= lang('settings_hint') ?>">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('settings') ?>
|
||||
<i class="fas fa-user me-2"></i>
|
||||
<?= vars('user_display_name') ?>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-end">
|
||||
<?php if (can('view', PRIV_SYSTEM_SETTINGS)): ?>
|
||||
<a class="dropdown-item" href="<?= site_url('general_settings') ?>">
|
||||
<?= lang('general') ?>
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= site_url('booking_settings') ?>">
|
||||
<?= lang('booking') ?>
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= site_url('business_settings') ?>">
|
||||
<?= lang('business') ?>
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= site_url('legal_settings') ?>">
|
||||
<?= lang('legal') ?>
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= site_url('integrations') ?>">
|
||||
<?= lang('integrations') ?>
|
||||
<?= lang('settings') ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<a class="dropdown-item" href="<?= site_url('account') ?>">
|
||||
|
|
35
application/views/components/settings_nav.php
Executable file
35
application/views/components/settings_nav.php
Executable file
|
@ -0,0 +1,35 @@
|
|||
<h4 class="mt-4 text-black-50 pb-2 border-bottom mb-2">
|
||||
<?= lang('settings') ?>
|
||||
</h4>
|
||||
|
||||
<ul id="settings-nav" class="nav flex-column">
|
||||
<li class="nav-item mb-2">
|
||||
<a class="nav-link" href="<?= site_url('general_settings') ?>">
|
||||
<?= lang('general_settings') ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item mb-2">
|
||||
<a class="nav-link" href="<?= site_url('booking_settings') ?>">
|
||||
<?= lang('booking_settings') ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item mb-2">
|
||||
<a class="nav-link" href="<?= site_url('business_settings') ?>">
|
||||
<?= lang('business_logic') ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item mb-2">
|
||||
<a class="nav-link" href="<?= site_url('legal_settings') ?>">
|
||||
<?= lang('legal_contents') ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item mb-2">
|
||||
<a class="nav-link" href="<?= site_url('integrations') ?>">
|
||||
<?= lang('integrations') ?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
|
@ -5,7 +5,10 @@
|
|||
<div id="booking-settings-page" class="container backend-page">
|
||||
<div id="booking-settings">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 offset-lg-2">
|
||||
<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">
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
<div id="business-logic-page" class="container backend-page">
|
||||
<div id="business-logic">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 offset-lg-2">
|
||||
<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">
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
<div id="general-settings-page" class="container backend-page">
|
||||
<div id="general-settings">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 offset-lg-2">
|
||||
<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">
|
||||
|
|
|
@ -3,106 +3,109 @@
|
|||
<?php section('content') ?>
|
||||
|
||||
<div id="integrations-page" class="container backend-page">
|
||||
<div id="integrations" class="col-lg-8 offset-lg-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 offset-sm-1">
|
||||
<?php component('settings_nav') ?>
|
||||
</div>
|
||||
<div id="integrations" class="col-sm-6">
|
||||
<h3 class="text-muted border-bottom py-2">
|
||||
<?= lang('integrations') ?>
|
||||
</h3>
|
||||
|
||||
<h3 class="text-muted border-bottom py-2">
|
||||
<?= lang('integrations') ?>
|
||||
</h3>
|
||||
<p class="mb-5">
|
||||
<?= lang('integrations_info') ?>
|
||||
</p>
|
||||
|
||||
<p class="mb-5">
|
||||
<?= lang('integrations_info') ?>
|
||||
</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header">
|
||||
<strong>
|
||||
<?= lang('webhooks') ?>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 integration-info">
|
||||
<small>
|
||||
<?= lang('webhooks_info') ?>
|
||||
</small>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header">
|
||||
<strong>
|
||||
<?= lang('webhooks') ?>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 integration-info">
|
||||
<small>
|
||||
<?= lang('webhooks_info') ?>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<a href="<?= site_url('webhooks') ?>" class="btn btn-outline-primary">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('configure') ?>
|
||||
</a>
|
||||
<a href="<?= site_url('webhooks') ?>" class="btn btn-outline-primary">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('configure') ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header">
|
||||
<strong>
|
||||
<?= lang('google_analytics') ?>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 integration-info">
|
||||
<small>
|
||||
<?= lang('google_analytics_info') ?>
|
||||
</small>
|
||||
<div class="col-sm-6">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header">
|
||||
<strong>
|
||||
<?= lang('google_analytics') ?>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 integration-info">
|
||||
<small>
|
||||
<?= lang('google_analytics_info') ?>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<a href="<?= site_url('google_analytics_settings') ?>" class="btn btn-outline-primary">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('configure') ?>
|
||||
</a>
|
||||
<a href="<?= site_url('google_analytics_settings') ?>" class="btn btn-outline-primary">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('configure') ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header">
|
||||
<strong>
|
||||
<?= lang('matomo_analytics') ?>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 integration-info">
|
||||
<small>
|
||||
<?= lang('matomo_analytics_info') ?>
|
||||
</small>
|
||||
<div class="col-sm-6">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header">
|
||||
<strong>
|
||||
<?= lang('matomo_analytics') ?>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 integration-info">
|
||||
<small>
|
||||
<?= lang('matomo_analytics_info') ?>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<a href="<?= site_url('matomo_analytics_settings') ?>" class="btn btn-outline-primary">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('configure') ?>
|
||||
</a>
|
||||
<a href="<?= site_url('matomo_analytics_settings') ?>" class="btn btn-outline-primary">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('configure') ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header">
|
||||
<strong>
|
||||
<?= lang('api') ?>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 integration-info">
|
||||
<small>
|
||||
<?= lang('api_info') ?>
|
||||
</small>
|
||||
<div class="col-sm-6">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header">
|
||||
<strong>
|
||||
<?= lang('api') ?>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3 integration-info">
|
||||
<small>
|
||||
<?= lang('api_info') ?>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<a href="<?= site_url('api_settings') ?>" class="btn btn-outline-primary">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('configure') ?>
|
||||
</a>
|
||||
<a href="<?= site_url('api_settings') ?>" class="btn btn-outline-primary">
|
||||
<i class="fas fa-cogs me-2"></i>
|
||||
<?= lang('configure') ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
<div id="legal-settings-page" class="container backend-page">
|
||||
<div id="legal-contents">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 offset-lg-2">
|
||||
<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">
|
||||
|
|
Loading…
Reference in a new issue