Fixed variable problems of the manage_appointment_modal.php component
This commit is contained in:
parent
12a12caa36
commit
aa760e827e
1 changed files with 4 additions and 6 deletions
|
@ -2,8 +2,6 @@
|
||||||
/**
|
/**
|
||||||
* @var array $available_services
|
* @var array $available_services
|
||||||
* @var array $timezones
|
* @var array $timezones
|
||||||
* @var string $require_phone_number
|
|
||||||
* @var string $timezone
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<div id="manage-appointment" class="modal fade" tabindex="-1">
|
<div id="manage-appointment" class="modal fade" tabindex="-1">
|
||||||
|
@ -150,7 +148,7 @@
|
||||||
<li>
|
<li>
|
||||||
<?= lang('current_user') ?>:
|
<?= lang('current_user') ?>:
|
||||||
<span>
|
<span>
|
||||||
<?= $timezones[$timezone] ?>
|
<?= $timezones[session('timezone', 'UTC')] ?>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -213,12 +211,12 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="phone-number" class="control-label">
|
<label for="phone-number" class="control-label">
|
||||||
<?= lang('phone_number') ?>
|
<?= lang('phone_number') ?>
|
||||||
<?php if ($require_phone_number === '1'): ?>
|
<?php if (setting('require_phone_number') === '1'): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input id="phone-number"
|
<input id="phone-number"
|
||||||
class="form-control <?= $require_phone_number === '1' ? 'required' : '' ?>">
|
class="form-control <?= setting('require_phone_number') === '1' ? 'required' : '' ?>">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-sm-6">
|
<div class="col-12 col-sm-6">
|
||||||
|
|
Loading…
Reference in a new issue