mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 19:03:21 +03:00
Fix params for the custom_fields.php
This commit is contained in:
parent
4f2927fb67
commit
5b87d75c10
1 changed files with 3 additions and 3 deletions
|
@ -12,12 +12,12 @@ $disabled = $disabled ?? false; ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="custom-field-<?= $i ?>" class="form-label">
|
<label for="custom-field-<?= $i ?>" class="form-label">
|
||||||
<?= setting('label_custom_field_' . $i) ?: lang('custom_field') . ' #' . $i ?>
|
<?= setting('label_custom_field_' . $i) ?: lang('custom_field') . ' #' . $i ?>
|
||||||
<?php if (vars('require_custom_field_' . $i)): ?>
|
<?php if (setting('require_custom_field_' . $i)): ?>
|
||||||
<span class="text-danger" hidden>*</span>
|
<span class="text-danger" <?= $disabled ? 'hidden' : '' ?>>*</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="custom-field-<?= $i ?>"
|
<input type="text" id="custom-field-<?= $i ?>"
|
||||||
class="<?= vars('require_custom_field_' . $i) ? 'required' : '' ?> form-control"
|
class="<?= setting('require_custom_field_' . $i) ? 'required' : '' ?> form-control"
|
||||||
maxlength="120" <?= $disabled ? 'disabled' : '' ?>/>
|
maxlength="120" <?= $disabled ? 'disabled' : '' ?>/>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
Loading…
Reference in a new issue