mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-27 09:03:09 +03:00
145 lines
6.3 KiB
PHP
145 lines
6.3 KiB
PHP
<?php
|
|
/**
|
|
* Local variables.
|
|
*
|
|
* @var string $display_first_name
|
|
* @var string $require_first_name
|
|
* @var string $display_last_name
|
|
* @var string $require_last_name
|
|
* @var string $display_email
|
|
* @var string $require_email
|
|
* @var string $display_phone_number
|
|
* @var string $require_phone_number
|
|
* @var string $display_address
|
|
* @var string $require_address
|
|
* @var string $display_city
|
|
* @var string $require_city
|
|
* @var string $display_zip_code
|
|
* @var string $require_zip_code
|
|
* @var string $display_notes
|
|
* @var string $require_notes
|
|
*/
|
|
?>
|
|
|
|
<div id="wizard-frame-3" class="wizard-frame" style="display:none;">
|
|
<div class="frame-container">
|
|
|
|
<h2 class="frame-title"><?= lang('customer_information') ?></h2>
|
|
|
|
<div class="row frame-content">
|
|
<div class="col-12 col-md-6 field-col m-auto">
|
|
<?php if ($display_first_name): ?>
|
|
<div class="mb-3">
|
|
<label for="first-name" class="form-label">
|
|
<?= lang('first_name') ?>
|
|
<?php if ($require_first_name): ?>
|
|
<span class="text-danger">*</span>
|
|
<?php endif ?>
|
|
</label>
|
|
<input type="text" id="first-name"
|
|
class="<?= $require_first_name ? 'required' : '' ?> form-control" maxlength="100"/>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<?php if ($display_last_name): ?>
|
|
<div class="mb-3">
|
|
<label for="last-name" class="form-label">
|
|
<?= lang('last_name') ?>
|
|
<?php if ($require_last_name): ?>
|
|
<span class="text-danger">*</span>
|
|
<?php endif ?>
|
|
</label>
|
|
<input type="text" id="last-name"
|
|
class="<?= $require_last_name ? 'required' : '' ?> form-control" maxlength="120"/>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<?php if ($display_email): ?>
|
|
<div class="mb-3">
|
|
<label for="email" class="form-label">
|
|
<?= lang('email') ?>
|
|
<?php if ($require_email): ?>
|
|
<span class="text-danger">*</span>
|
|
<?php endif ?>
|
|
</label>
|
|
<input type="text" id="email"
|
|
class="<?= $require_email ? 'required' : '' ?> form-control" maxlength="120"/>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<?php if ($display_phone_number): ?>
|
|
<div class="mb-3">
|
|
<label for="phone-number" class="form-label">
|
|
<?= lang('phone_number') ?>
|
|
<?php if ($require_phone_number): ?>
|
|
<span class="text-danger">*</span>
|
|
<?php endif ?>
|
|
</label>
|
|
<input type="text" id="phone-number" maxlength="60"
|
|
class="<?= $require_phone_number ? 'required' : '' ?> form-control"/>
|
|
</div>
|
|
<?php endif ?>
|
|
</div>
|
|
|
|
<div class="col-12 col-md-6 field-col m-auto">
|
|
<?php if ($display_address) : ?>
|
|
<div class="mb-3">
|
|
<label for="address" class="form-label">
|
|
<?= lang('address') ?>
|
|
<?php if ($require_address): ?>
|
|
<span class="text-danger">*</span>
|
|
<?php endif ?>
|
|
</label>
|
|
<input type="text" id="address" class="<?= $require_address ? 'required' : '' ?> form-control" maxlength="120"/>
|
|
</div>
|
|
<?php endif ?>
|
|
<?php if ($display_city): ?>
|
|
<div class="mb-3">
|
|
<label for="city" class="form-label">
|
|
<?= lang('city') ?>
|
|
<?php if ($require_city): ?>
|
|
<span class="text-danger">*</span>
|
|
<?php endif ?>
|
|
</label>
|
|
<input type="text" id="city" class="<?= $require_city ? 'required' : '' ?> form-control" maxlength="120"/>
|
|
</div>
|
|
<?php endif ?>
|
|
<?php if ($display_zip_code): ?>
|
|
<div class="mb-3">
|
|
<label for="zip-code" class="form-label">
|
|
<?= lang('zip_code') ?>
|
|
<?php if ($require_zip_code): ?>
|
|
<span class="text-danger">*</span>
|
|
<?php endif ?>
|
|
</label>
|
|
<input type="text" id="zip-code" class="<?= $require_zip_code ? 'required' : '' ?> form-control" maxlength="120"/>
|
|
</div>
|
|
<?php endif ?>
|
|
<?php if ($display_notes): ?>
|
|
<div class="mb-3">
|
|
<label for="notes" class="form-label">
|
|
<?= lang('notes') ?>
|
|
<?php if ($require_notes): ?>
|
|
<span class="text-danger">*</span>
|
|
<?php endif ?>
|
|
</label>
|
|
<textarea id="notes" maxlength="500" class="<?= $require_notes ? 'required' : '' ?> form-control" rows="1"></textarea>
|
|
</div>
|
|
<?php endif ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="command-buttons">
|
|
<button type="button" id="button-back-3" class="btn button-back btn-outline-secondary"
|
|
data-step_index="3">
|
|
<i class="fas fa-chevron-left me-2"></i>
|
|
<?= lang('back') ?>
|
|
</button>
|
|
<button type="button" id="button-next-3" class="btn button-next btn-dark"
|
|
data-step_index="3">
|
|
<?= lang('next') ?>
|
|
<i class="fas fa-chevron-right ms-2"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|