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>
|
||||||
<?= lang('appointment') ?>
|
|
||||||
</button>
|
</button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
<button class="btn btn-light dropdown-toggle" id="insert-dropdown" data-bs-toggle="dropdown">
|
<li>
|
||||||
<span class="caret"></span>
|
<a class="dropdown-item" href="#" id="insert-appointment">
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
<?= lang('appointment') ?>
|
||||||
</button>
|
</a>
|
||||||
|
</li>
|
||||||
<div class="dropdown-menu">
|
<li>
|
||||||
<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>
|
</li>
|
||||||
<a class="dropdown-item" href="#" id="insert-working-plan-exception"
|
<li>
|
||||||
<?= session('role_slug') !== DB_SLUG_ADMIN ? 'hidden' : '' ?>>
|
<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>
|
<?= lang('working_plan_exception') ?>
|
||||||
<?= lang('working_plan_exception') ?>
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue