Add a "back" button to the integrations page.

This commit is contained in:
Alex Tselegidis 2023-01-21 12:46:06 +01:00
parent 335f50037a
commit 1f9d82b18e
3 changed files with 39 additions and 18 deletions

View file

@ -13,12 +13,19 @@
<?= lang('api') ?> <?= lang('api') ?>
</h4> </h4>
<?php if (can('edit', PRIV_SYSTEM_SETTINGS)): ?> <div>
<button type="button" id="save-settings" class="btn btn-primary"> <a href="<?= site_url('integrations') ?>" class="btn btn-outline-primary me-2">
<i class="fas fa-check-square me-2"></i> <i class="fas fa-chevron-left me-2"></i>
<?= lang('save') ?> <?= lang('back') ?>
</button> </a>
<?php endif ?>
<?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 ?>
</div>
</div> </div>
<div class="row"> <div class="row">

View file

@ -13,12 +13,19 @@
<?= lang('google_analytics') ?> <?= lang('google_analytics') ?>
</h4> </h4>
<?php if (can('edit', PRIV_SYSTEM_SETTINGS)): ?> <div>
<button type="button" id="save-settings" class="btn btn-primary"> <a href="<?= site_url('integrations') ?>" class="btn btn-outline-primary me-2">
<i class="fas fa-check-square me-2"></i> <i class="fas fa-chevron-left me-2"></i>
<?= lang('save') ?> <?= lang('back') ?>
</button> </a>
<?php endif ?>
<?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 ?>
</div>
</div> </div>
<div class="row"> <div class="row">

View file

@ -13,12 +13,19 @@
<?= lang('matomo_analytics') ?> <?= lang('matomo_analytics') ?>
</h4> </h4>
<?php if (can('edit', PRIV_SYSTEM_SETTINGS)): ?> <div>
<button type="button" id="save-settings" class="btn btn-primary"> <a href="<?= site_url('integrations') ?>" class="btn btn-outline-primary me-2">
<i class="fas fa-check-square me-2"></i> <i class="fas fa-chevron-left me-2"></i>
<?= lang('save') ?> <?= lang('back') ?>
</button> </a>
<?php endif ?>
<?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 ?>
</div>
</div> </div>
<div class="row"> <div class="row">