Added required fields message in all forms.
This commit is contained in:
parent
69e39b9062
commit
4a7d6e5d6e
5 changed files with 87 additions and 53 deletions
|
@ -303,10 +303,15 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="phone-number" class="control-label"><?= lang('phone_number') ?>
|
||||
*</label>
|
||||
<label for="phone-number" class="control-label">
|
||||
<?= lang('phone_number') ?> *
|
||||
</label>
|
||||
<input id="phone-number" class="required form-control">
|
||||
</div>
|
||||
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
|
|
|
@ -142,8 +142,8 @@
|
|||
<textarea id="notes" rows="4" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
<p class="text-center">
|
||||
<em id="form-message" class="text-danger"><?= lang('fields_are_required') ?></em>
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -153,8 +153,8 @@
|
|||
<textarea id="service-description" rows="4" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
<p id="form-message" class="text-danger">
|
||||
<em><?= lang('fields_are_required') ?></em>
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -230,6 +230,10 @@
|
|||
<label for="category-description"><?= lang('description') ?></label>
|
||||
<textarea id="category-description" rows="4" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
$(function() {
|
||||
$(function () {
|
||||
BackendSettings.initialize(true);
|
||||
});
|
||||
</script>
|
||||
|
@ -144,6 +144,10 @@
|
|||
<?= lang('first_weekday_hint') ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6">
|
||||
<div class="form-group">
|
||||
|
@ -259,8 +263,10 @@
|
|||
|
||||
<h4><?= lang('book_advance_timeout') ?></h4>
|
||||
<div class="form-group">
|
||||
<label for="book-advance-timeout" class="control-label"><?= lang('timeout_minutes') ?></label>
|
||||
<input id="book-advance-timeout" data-field="book_advance_timeout" class="form-control" type="number" min="15">
|
||||
<label for="book-advance-timeout"
|
||||
class="control-label"><?= lang('timeout_minutes') ?></label>
|
||||
<input id="book-advance-timeout" data-field="book_advance_timeout" class="form-control"
|
||||
type="number" min="15">
|
||||
<p class="form-text text-muted">
|
||||
<?= lang('book_advance_timeout_hint') ?>
|
||||
</p>
|
||||
|
@ -276,7 +282,7 @@
|
|||
<div class="mt-2">
|
||||
<button type="button" class="add-break btn btn-primary">
|
||||
<i class="far fa-plus-square"></i>
|
||||
<?= lang('add_break');?>
|
||||
<?= lang('add_break'); ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
@ -341,7 +347,8 @@
|
|||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input class="custom-control-input" type="checkbox" id="display-terms-and-conditions">
|
||||
<input class="custom-control-input" type="checkbox"
|
||||
id="display-terms-and-conditions">
|
||||
<label class="custom-control-label" for="display-terms-and-conditions">
|
||||
<?= lang('display_terms_and_conditions') ?>
|
||||
</label>
|
||||
|
@ -351,7 +358,8 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label><?= lang('terms_and_conditions_content') ?></label>
|
||||
<textarea id="terms-and-conditions-content" cols="30" rows="10" class="form-group"></textarea>
|
||||
<textarea id="terms-and-conditions-content" cols="30" rows="10"
|
||||
class="form-group"></textarea>
|
||||
</div>
|
||||
|
||||
<h4><?= lang('privacy_policy') ?></h4>
|
||||
|
@ -446,6 +454,10 @@
|
|||
<label for="notes"><?= lang('notes') ?></label>
|
||||
<textarea id="notes" class="form-control" rows="3"></textarea>
|
||||
</div>
|
||||
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="col-12 col-sm-6 miscellaneous-wrapper">
|
||||
|
@ -463,7 +475,8 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label for="retype-password"><?= lang('retype_password') ?></label>
|
||||
<input type="password" id="retype-password" class="form-control" autocomplete="new-password">
|
||||
<input type="password" id="retype-password" class="form-control"
|
||||
autocomplete="new-password">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
|
|
@ -188,6 +188,10 @@
|
|||
<label for="provider-notes"><?= lang('notes') ?></label>
|
||||
<textarea id="provider-notes" class="form-control" rows="3"></textarea>
|
||||
</div>
|
||||
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="provider-settings col-12 col-md-6">
|
||||
<div class="form-group">
|
||||
|
@ -431,6 +435,10 @@
|
|||
<label for="secretary-notes"><?= lang('notes') ?></label>
|
||||
<textarea id="secretary-notes" class="form-control" rows="3"></textarea>
|
||||
</div>
|
||||
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="secretary-settings col-12 col-md-6">
|
||||
<div class="form-group">
|
||||
|
@ -595,6 +603,10 @@
|
|||
<label for="admin-notes"><?= lang('notes') ?></label>
|
||||
<textarea id="admin-notes" class="form-control" rows="3"></textarea>
|
||||
</div>
|
||||
|
||||
<p class="text-danger">
|
||||
<small><?= lang('fields_are_required') ?></small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="admin-settings col-12 col-md-6">
|
||||
<div class="form-group">
|
||||
|
|
Loading…
Reference in a new issue