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