mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Minor formatting changes
This commit is contained in:
parent
18e89e1ba4
commit
198db17100
2 changed files with 47 additions and 43 deletions
|
@ -101,7 +101,7 @@
|
|||
$has_category = FALSE;
|
||||
foreach ($available_services as $service)
|
||||
{
|
||||
if ($service['category_id'] != NULL)
|
||||
if ( ! empty($service['category_id']))
|
||||
{
|
||||
$has_category = TRUE;
|
||||
break;
|
||||
|
@ -114,7 +114,7 @@
|
|||
|
||||
foreach ($available_services as $service)
|
||||
{
|
||||
if ($service['category_id'] != NULL)
|
||||
if ( ! empty($service['category_id']))
|
||||
{
|
||||
if ( ! isset($grouped_services[$service['category_name']]))
|
||||
{
|
||||
|
@ -138,8 +138,9 @@
|
|||
|
||||
foreach ($grouped_services as $key => $group)
|
||||
{
|
||||
$group_label = ($key != 'uncategorized')
|
||||
? $group[0]['category_name'] : 'Uncategorized';
|
||||
$group_label = $key !== 'uncategorized'
|
||||
? $group[0]['category_name']
|
||||
: 'Uncategorized';
|
||||
|
||||
if (count($group) > 0)
|
||||
{
|
||||
|
@ -258,49 +259,49 @@
|
|||
<input type="text" id="email" class="required form-control" maxlength="120"/>
|
||||
</div>
|
||||
<?php if ($show_field['phone-number']) : ?>
|
||||
<div class="form-group">
|
||||
<label for="phone-number" class="control-label">
|
||||
<?= lang('phone_number') ?>
|
||||
<?= $require_phone_number === '1' ? '<span class="text-danger">*</span>' : '' ?>
|
||||
</label>
|
||||
<input type="text" id="phone-number" maxlength="60"
|
||||
class="<?= $require_phone_number === '1' ? 'required' : '' ?> form-control"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="phone-number" class="control-label">
|
||||
<?= lang('phone_number') ?>
|
||||
<?= $require_phone_number === '1' ? '<span class="text-danger">*</span>' : '' ?>
|
||||
</label>
|
||||
<input type="text" id="phone-number" maxlength="60"
|
||||
class="<?= $require_phone_number === '1' ? 'required' : '' ?> form-control"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<?php if ($show_field['address']) : ?>
|
||||
<div class="form-group">
|
||||
<label for="address" class="control-label">
|
||||
<?= lang('address') ?>
|
||||
</label>
|
||||
<input type="text" id="address" class="form-control" maxlength="120"/>
|
||||
</div>
|
||||
<?php if ($show_field['address']) : ?>
|
||||
<div class="form-group">
|
||||
<label for="address" class="control-label">
|
||||
<?= lang('address') ?>
|
||||
</label>
|
||||
<input type="text" id="address" class="form-control" maxlength="120"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($show_field['city']):?>
|
||||
<div class="form-group">
|
||||
<label for="city" class="control-label">
|
||||
<?= lang('city') ?>
|
||||
</label>
|
||||
<input type="text" id="city" class="form-control" maxlength="120"/>
|
||||
</div>
|
||||
<?php if ($show_field['city']): ?>
|
||||
<div class="form-group">
|
||||
<label for="city" class="control-label">
|
||||
<?= lang('city') ?>
|
||||
</label>
|
||||
<input type="text" id="city" class="form-control" maxlength="120"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($show_field['zip-code']) : ?>
|
||||
<div class="form-group">
|
||||
<label for="zip-code" class="control-label">
|
||||
<?= lang('zip_code') ?>
|
||||
</label>
|
||||
<input type="text" id="zip-code" class="form-control" maxlength="120"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="zip-code" class="control-label">
|
||||
<?= lang('zip_code') ?>
|
||||
</label>
|
||||
<input type="text" id="zip-code" class="form-control" maxlength="120"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($show_field['notes']) : ?>
|
||||
<div class="form-group">
|
||||
<label for="notes" class="control-label">
|
||||
<?= lang('notes') ?>
|
||||
</label>
|
||||
<textarea id="notes" maxlength="500" class="form-control" rows="1"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="notes" class="control-label">
|
||||
<?= lang('notes') ?>
|
||||
</label>
|
||||
<textarea id="notes" maxlength="500" class="form-control" rows="1"></textarea>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -357,7 +358,7 @@
|
|||
<div id="appointment-details" class="col-12 col-md-6"></div>
|
||||
<div id="customer-details" class="col-12 col-md-6"></div>
|
||||
</div>
|
||||
<?php if ($this->settings_model->get_setting('require_captcha') === '1'): ?>
|
||||
<?php if (setting('require_captcha')): ?>
|
||||
<div class="row frame-content">
|
||||
<div class="col-12 col-md-6">
|
||||
<h4 class="captcha-title">
|
||||
|
|
|
@ -149,7 +149,7 @@
|
|||
$has_category = FALSE;
|
||||
foreach ($available_services as $service)
|
||||
{
|
||||
if ($service['category_id'] != NULL)
|
||||
if ( ! empty($service['category_id']))
|
||||
{
|
||||
$has_category = TRUE;
|
||||
break;
|
||||
|
@ -162,7 +162,7 @@
|
|||
|
||||
foreach ($available_services as $service)
|
||||
{
|
||||
if ($service['category_id'] != NULL)
|
||||
if ( ! empty($service['category_id']))
|
||||
{
|
||||
if ( ! isset($grouped_services[$service['category_name']]))
|
||||
{
|
||||
|
@ -186,17 +186,20 @@
|
|||
|
||||
foreach ($grouped_services as $key => $group)
|
||||
{
|
||||
$group_label = ($key != 'uncategorized')
|
||||
? $group[0]['category_name'] : 'Uncategorized';
|
||||
$group_label = $key !== 'uncategorized'
|
||||
? $group[0]['category_name']
|
||||
: 'Uncategorized';
|
||||
|
||||
if (count($group) > 0)
|
||||
{
|
||||
echo '<optgroup label="' . $group_label . '">';
|
||||
|
||||
foreach ($group as $service)
|
||||
{
|
||||
echo '<option value="' . $service['id'] . '">'
|
||||
. $service['name'] . '</option>';
|
||||
}
|
||||
|
||||
echo '</optgroup>';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue