Change the add button in the calendar page

This commit is contained in:
Alex Tselegidis 2023-02-07 07:21:04 +01:00
parent 153ed1174b
commit 94570a3fdc

View file

@ -29,28 +29,27 @@
<?php endif ?>
<?php if (can('add', PRIV_APPOINTMENTS)): ?>
<div class="btn-group">
<button class="btn btn-light" id="insert-appointment">
<i class="fas fa-plus-square me-2"></i>
<div class="dropdown d-inline-block">
<button class="btn btn-light" type="button" data-bs-toggle="dropdown">
<i class="fas fa-plus-square"></i>
</button>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="#" id="insert-appointment">
<?= lang('appointment') ?>
</button>
<button class="btn btn-light dropdown-toggle" id="insert-dropdown" data-bs-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
</a>
</li>
<li>
<a class="dropdown-item" href="#" id="insert-unavailability">
<i class="fas fa-plus-square me-2"></i>
<?= lang('unavailability') ?>
</a>
<a class="dropdown-item" href="#" id="insert-working-plan-exception"
<?= session('role_slug') !== DB_SLUG_ADMIN ? 'hidden' : '' ?>>
<i class="fas fa-plus-square me-2"></i>
</li>
<li>
<a class="dropdown-item" href="#" id="insert-working-plan-exception" <?= session('role_slug') !== DB_SLUG_ADMIN ? 'hidden' : '' ?>>
<?= lang('working_plan_exception') ?>
</a>
</div>
</li>
</ul>
</div>
<?php endif ?>