forked from mirrors/easyappointments
Change the add button in the calendar page
This commit is contained in:
parent
153ed1174b
commit
94570a3fdc
1 changed files with 20 additions and 21 deletions
|
@ -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 ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue