Make sure that component view files are reusable by only using the local variables instead of the global ones.
This commit is contained in:
parent
626d8b86a1
commit
a7077ef642
27 changed files with 305 additions and 117 deletions
|
@ -1,3 +1,18 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var array $available_services
|
||||||
|
* @var array $timezones
|
||||||
|
* @var array $require_first_name
|
||||||
|
* @var array $require_last_name
|
||||||
|
* @var array $require_email
|
||||||
|
* @var array $require_phone_number
|
||||||
|
* @var array $require_address
|
||||||
|
* @var array $require_city
|
||||||
|
* @var array $require_zip_code
|
||||||
|
*/
|
||||||
|
?>
|
||||||
<div id="appointments-modal" class="modal fade">
|
<div id="appointments-modal" class="modal fade">
|
||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
@ -27,7 +42,7 @@
|
||||||
// Group services by category, only if there is at least one service
|
// Group services by category, only if there is at least one service
|
||||||
// with a parent category.
|
// with a parent category.
|
||||||
$has_category = FALSE;
|
$has_category = FALSE;
|
||||||
foreach (vars('available_services') as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
if ( ! empty($service['category_id']))
|
if ( ! empty($service['category_id']))
|
||||||
{
|
{
|
||||||
|
@ -40,7 +55,7 @@
|
||||||
{
|
{
|
||||||
$grouped_services = [];
|
$grouped_services = [];
|
||||||
|
|
||||||
foreach (vars('available_services') as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
if ( ! empty($service['category_id']))
|
if ( ! empty($service['category_id']))
|
||||||
{
|
{
|
||||||
|
@ -56,7 +71,7 @@
|
||||||
// We need the uncategorized services at the end of the list so we will use
|
// We need the uncategorized services at the end of the list so we will use
|
||||||
// another iteration only for the uncategorized services.
|
// another iteration only for the uncategorized services.
|
||||||
$grouped_services['uncategorized'] = [];
|
$grouped_services['uncategorized'] = [];
|
||||||
foreach (vars('available_services') as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
if ($service['category_id'] == NULL)
|
if ($service['category_id'] == NULL)
|
||||||
{
|
{
|
||||||
|
@ -86,7 +101,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach (vars('available_services') as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
echo '<option value="' . $service['id'] . '">'
|
echo '<option value="' . $service['id'] . '">'
|
||||||
. $service['name'] . '</option>';
|
. $service['name'] . '</option>';
|
||||||
|
@ -142,7 +157,7 @@
|
||||||
<li>
|
<li>
|
||||||
<?= lang('current_user') ?>:
|
<?= lang('current_user') ?>:
|
||||||
<span>
|
<span>
|
||||||
<?= vars('timezones')[session('timezone', 'UTC')] ?>
|
<?= $timezones[session('timezone', 'UTC')] ?>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -181,96 +196,96 @@
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="first-name" class="form-label">
|
<label for="first-name" class="form-label">
|
||||||
<?= lang('first_name') ?>
|
<?= lang('first_name') ?>
|
||||||
<?php if (vars('require_first_name')): ?>
|
<?php if ($require_first_name): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="first-name"
|
<input type="text" id="first-name"
|
||||||
class="<?= vars('require_first_name') ? 'required' : '' ?> form-control"
|
class="<?= $require_first_name ? 'required' : '' ?> form-control"
|
||||||
maxlength="100"/>
|
maxlength="100"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="last-name" class="form-label">
|
<label for="last-name" class="form-label">
|
||||||
<?= lang('last_name') ?>
|
<?= lang('last_name') ?>
|
||||||
<?php if (vars('require_last_name')): ?>
|
<?php if ($require_last_name): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="last-name"
|
<input type="text" id="last-name"
|
||||||
class="<?= vars('require_last_name') ? 'required' : '' ?> form-control"
|
class="<?= $require_last_name ? 'required' : '' ?> form-control"
|
||||||
maxlength="120"/>
|
maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="email" class="form-label">
|
<label for="email" class="form-label">
|
||||||
<?= lang('email') ?>
|
<?= lang('email') ?>
|
||||||
<?php if (vars('require_email')): ?>
|
<?php if ($require_email): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="email"
|
<input type="text" id="email"
|
||||||
class="<?= vars('require_email') ? 'required' : '' ?> form-control"
|
class="<?= $require_email ? 'required' : '' ?> form-control"
|
||||||
maxlength="120"/>
|
maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="phone-number" class="form-label">
|
<label for="phone-number" class="form-label">
|
||||||
<?= lang('phone_number') ?>
|
<?= lang('phone_number') ?>
|
||||||
<?php if (vars('require_phone_number')): ?>
|
<?php if ($require_phone_number): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="phone-number" maxlength="60"
|
<input type="text" id="phone-number" maxlength="60"
|
||||||
class="<?= vars('require_phone_number') ? 'required' : '' ?> form-control"/>
|
class="<?= $require_phone_number ? 'required' : '' ?> form-control"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-sm-6">
|
<div class="col-12 col-sm-6">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="address" class="form-label">
|
<label for="address" class="form-label">
|
||||||
<?= lang('address') ?>
|
<?= lang('address') ?>
|
||||||
<?php if (vars('require_address')): ?>
|
<?php if ($require_address): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="address"
|
<input type="text" id="address"
|
||||||
class="<?= vars('require_address') ? 'required' : '' ?> form-control"
|
class="<?= $require_address ? 'required' : '' ?> form-control"
|
||||||
maxlength="120"/>
|
maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="city" class="form-label">
|
<label for="city" class="form-label">
|
||||||
<?= lang('city') ?>
|
<?= lang('city') ?>
|
||||||
<?php if (vars('require_city')): ?>
|
<?php if ($require_city): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="city"
|
<input type="text" id="city"
|
||||||
class="<?= vars('require_city') ? 'required' : '' ?> form-control"
|
class="<?= $require_city ? 'required' : '' ?> form-control"
|
||||||
maxlength="120"/>
|
maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="zip-code" class="form-label">
|
<label for="zip-code" class="form-label">
|
||||||
<?= lang('zip_code') ?>
|
<?= lang('zip_code') ?>
|
||||||
<?php if (vars('require_zip_cod')): ?>
|
<?php if ($require_zip_code): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="zip-code"
|
<input type="text" id="zip-code"
|
||||||
class="<?= vars('require_zip_code') ? 'required' : '' ?> form-control"
|
class="<?= $require_zip_code ? 'required' : '' ?> form-control"
|
||||||
maxlength="120"/>
|
maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="customer-notes" class="form-label">
|
<label for="customer-notes" class="form-label">
|
||||||
<?= lang('notes') ?>
|
<?= lang('notes') ?>
|
||||||
<?php if (vars('require_zip_code')): ?>
|
<?php if ($require_zip_code): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<textarea id="customer-notes" rows="2"
|
<textarea id="customer-notes" rows="2"
|
||||||
class="<?= vars('require_zip_code') ? 'required' : '' ?> form-control"></textarea>
|
class="<?= $require_zip_code ? 'required' : '' ?> form-control"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var string $user_display_name
|
||||||
|
*/
|
||||||
|
?>
|
||||||
<div id="footer" class="d-lg-flex justify-content-lg-start align-items-lg-center p-2 text-center text-lg-left">
|
<div id="footer" class="d-lg-flex justify-content-lg-start align-items-lg-center p-2 text-center text-lg-left">
|
||||||
<div class="mb-3 me-lg-5 mb-lg-0">
|
<div class="mb-3 me-lg-5 mb-lg-0">
|
||||||
<img class="me-1" src="<?= base_url('assets/img/logo-16x16.png') ?>" alt="Easy!Appointments Logo">
|
<img class="me-1" src="<?= base_url('assets/img/logo-16x16.png') ?>" alt="Easy!Appointments Logo">
|
||||||
|
@ -37,7 +44,7 @@
|
||||||
|
|
||||||
<div class="ms-lg-auto">
|
<div class="ms-lg-auto">
|
||||||
<strong id="footer-user-display-name">
|
<strong id="footer-user-display-name">
|
||||||
<?= lang('hello') . ', ' . vars('user_display_name') ?>!
|
<?= lang('hello') . ', ' . $user_display_name ?>!
|
||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var string $active_menu
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<nav id="header" class="navbar navbar-expand-md navbar-dark">
|
<nav id="header" class="navbar navbar-expand-md navbar-dark">
|
||||||
<div id="header-logo" class="navbar-brand">
|
<div id="header-logo" class="navbar-brand">
|
||||||
<img src="<?= base_url('assets/img/logo.png') ?>" alt="logo">
|
<img src="<?= base_url('assets/img/logo.png') ?>" alt="logo">
|
||||||
|
@ -13,7 +21,7 @@
|
||||||
<div id="header-menu" class="collapse navbar-collapse flex-row-reverse px-2">
|
<div id="header-menu" class="collapse navbar-collapse flex-row-reverse px-2">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<?php $hidden = can('view', PRIV_APPOINTMENTS) ? '' : 'd-none' ?>
|
<?php $hidden = can('view', PRIV_APPOINTMENTS) ? '' : 'd-none' ?>
|
||||||
<?php $active = vars('active_menu') == PRIV_APPOINTMENTS ? 'active' : '' ?>
|
<?php $active = $active_menu == PRIV_APPOINTMENTS ? 'active' : '' ?>
|
||||||
<li class="nav-item <?= $active . $hidden ?>">
|
<li class="nav-item <?= $active . $hidden ?>">
|
||||||
<a href="<?= site_url('calendar') ?>" class="nav-link"
|
<a href="<?= site_url('calendar') ?>" class="nav-link"
|
||||||
data-tippy-content="<?= lang('manage_appointment_record_hint') ?>">
|
data-tippy-content="<?= lang('manage_appointment_record_hint') ?>">
|
||||||
|
@ -23,7 +31,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php $hidden = can('view', PRIV_CUSTOMERS) ? '' : 'd-none' ?>
|
<?php $hidden = can('view', PRIV_CUSTOMERS) ? '' : 'd-none' ?>
|
||||||
<?php $active = vars('active_menu') == PRIV_CUSTOMERS ? 'active' : '' ?>
|
<?php $active = $active_menu == PRIV_CUSTOMERS ? 'active' : '' ?>
|
||||||
<li class="nav-item <?= $active . $hidden ?>">
|
<li class="nav-item <?= $active . $hidden ?>">
|
||||||
<a href="<?= site_url('customers') ?>" class="nav-link"
|
<a href="<?= site_url('customers') ?>" class="nav-link"
|
||||||
data-tippy-content="<?= lang('manage_customers_hint') ?>">
|
data-tippy-content="<?= lang('manage_customers_hint') ?>">
|
||||||
|
@ -33,7 +41,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php $hidden = can('view', PRIV_SERVICES) ? '' : 'd-none' ?>
|
<?php $hidden = can('view', PRIV_SERVICES) ? '' : 'd-none' ?>
|
||||||
<?php $active = vars('active_menu') == PRIV_SERVICES ? 'active' : '' ?>
|
<?php $active = $active_menu == PRIV_SERVICES ? 'active' : '' ?>
|
||||||
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
||||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
||||||
data-tippy-content="<?= lang('manage_services_hint') ?>">
|
data-tippy-content="<?= lang('manage_services_hint') ?>">
|
||||||
|
@ -51,7 +59,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php $hidden = can('view', PRIV_USERS) ? '' : 'd-none' ?>
|
<?php $hidden = can('view', PRIV_USERS) ? '' : 'd-none' ?>
|
||||||
<?php $active = vars('active_menu') == PRIV_USERS ? 'active' : '' ?>
|
<?php $active = $active_menu == PRIV_USERS ? 'active' : '' ?>
|
||||||
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
||||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
||||||
data-tippy-content="<?= lang('manage_users_hint') ?>">
|
data-tippy-content="<?= lang('manage_users_hint') ?>">
|
||||||
|
@ -72,7 +80,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php $hidden = can('view', PRIV_SYSTEM_SETTINGS) || can('view', PRIV_USER_SETTINGS) ? '' : 'd-none' ?>
|
<?php $hidden = can('view', PRIV_SYSTEM_SETTINGS) || can('view', PRIV_USER_SETTINGS) ? '' : 'd-none' ?>
|
||||||
<?php $active = vars('active_menu') == PRIV_SYSTEM_SETTINGS ? 'active' : '' ?>
|
<?php $active = $active_menu == PRIV_SYSTEM_SETTINGS ? 'active' : '' ?>
|
||||||
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
||||||
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
||||||
data-tippy-content="<?= lang('settings_hint') ?>">
|
data-tippy-content="<?= lang('settings_hint') ?>">
|
||||||
|
|
|
@ -1,11 +1,20 @@
|
||||||
<?php if (vars('manage_mode')): ?>
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var bool $manage_mode
|
||||||
|
* @var array $appointment_data
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php if ($manage_mode): ?>
|
||||||
<div id="cancel-appointment-frame" class="row booking-header-bar">
|
<div id="cancel-appointment-frame" class="row booking-header-bar">
|
||||||
<div class="col-12 col-md-10">
|
<div class="col-12 col-md-10">
|
||||||
<small><?= lang('cancel_appointment_hint') ?></small>
|
<small><?= lang('cancel_appointment_hint') ?></small>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-2">
|
<div class="col-12 col-md-2">
|
||||||
<form id="cancel-appointment-form" method="post"
|
<form id="cancel-appointment-form" method="post"
|
||||||
action="<?= site_url('booking_cancellation/of/' . vars('appointment_data')['hash']) ?>">
|
action="<?= site_url('booking_cancellation/of/' . $appointment_data['hash']) ?>">
|
||||||
|
|
||||||
<input type="hidden" name="csrfToken" value="<?= $this->security->get_csrf_hash() ?>"/>
|
<input type="hidden" name="csrfToken" value="<?= $this->security->get_csrf_hash() ?>"/>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var bool $manage_mode
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="wizard-frame-4" class="wizard-frame" style="display:none;">
|
<div id="wizard-frame-4" class="wizard-frame" style="display:none;">
|
||||||
<div class="frame-container">
|
<div class="frame-container">
|
||||||
<h2 class="frame-title"><?= lang('appointment_confirmation') ?></h2>
|
<h2 class="frame-title"><?= lang('appointment_confirmation') ?></h2>
|
||||||
|
@ -31,7 +39,7 @@
|
||||||
<form id="book-appointment-form" style="display:inline-block" method="post">
|
<form id="book-appointment-form" style="display:inline-block" method="post">
|
||||||
<button id="book-appointment-submit" type="button" class="btn btn-success">
|
<button id="book-appointment-submit" type="button" class="btn btn-success">
|
||||||
<i class="fas fa-check-square me-2"></i>
|
<i class="fas fa-check-square me-2"></i>
|
||||||
<?= ! vars('manage_mode') ? lang('confirm') : lang('update') ?>
|
<?= $manage_mode ? lang('update') : lang('confirm') ?>
|
||||||
</button>
|
</button>
|
||||||
<input type="hidden" name="csrfToken"/>
|
<input type="hidden" name="csrfToken"/>
|
||||||
<input type="hidden" name="post_data"/>
|
<input type="hidden" name="post_data"/>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
<small>
|
<small>
|
||||||
<span class="footer-powered-by">
|
<span class="footer-powered-by">
|
||||||
Powered By
|
Powered By
|
||||||
|
|
||||||
<a href="https://easyappointments.org" target="_blank">Easy!Appointments</a>
|
<a href="https://easyappointments.org" target="_blank">Easy!Appointments</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var string $company_name
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<span id="company-name"><?= vars('company_name') ?></span>
|
<span id="company-name"><?= $company_name ?></span>
|
||||||
|
|
||||||
<div id="steps">
|
<div id="steps">
|
||||||
<div id="step-1" class="book-step active-step"
|
<div id="step-1" class="book-step active-step"
|
||||||
|
|
|
@ -1,3 +1,28 @@
|
||||||
|
<?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
|
||||||
|
* @var string $display_terms_and_conditions
|
||||||
|
* @var string $display_privacy_policy
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="wizard-frame-3" class="wizard-frame" style="display:none;">
|
<div id="wizard-frame-3" class="wizard-frame" style="display:none;">
|
||||||
<div class="frame-container">
|
<div class="frame-container">
|
||||||
|
|
||||||
|
@ -5,109 +30,109 @@
|
||||||
|
|
||||||
<div class="row frame-content">
|
<div class="row frame-content">
|
||||||
<div class="col-12 col-md-6">
|
<div class="col-12 col-md-6">
|
||||||
<?php if (vars('display_first_name')): ?>
|
<?php if ($display_first_name): ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="first-name" class="form-label">
|
<label for="first-name" class="form-label">
|
||||||
<?= lang('first_name') ?>
|
<?= lang('first_name') ?>
|
||||||
<?php if (vars('require_first_name')): ?>
|
<?php if ($require_first_name): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="first-name"
|
<input type="text" id="first-name"
|
||||||
class="<?= vars('require_first_name') ? 'required' : '' ?> form-control" maxlength="100"/>
|
class="<?= $require_first_name ? 'required' : '' ?> form-control" maxlength="100"/>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (vars('display_last_name')): ?>
|
<?php if ($display_last_name): ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="last-name" class="form-label">
|
<label for="last-name" class="form-label">
|
||||||
<?= lang('last_name') ?>
|
<?= lang('last_name') ?>
|
||||||
<?php if (vars('require_last_name')): ?>
|
<?php if ($require_last_name): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="last-name"
|
<input type="text" id="last-name"
|
||||||
class="<?= vars('require_last_name') ? 'required' : '' ?> form-control" maxlength="120"/>
|
class="<?= $require_last_name ? 'required' : '' ?> form-control" maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (vars('display_email')): ?>
|
<?php if ($display_email): ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="email" class="form-label">
|
<label for="email" class="form-label">
|
||||||
<?= lang('email') ?>
|
<?= lang('email') ?>
|
||||||
<?php if (vars('require_email')): ?>
|
<?php if ($require_email): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="email"
|
<input type="text" id="email"
|
||||||
class="<?= vars('require_email') ? 'required' : '' ?> form-control" maxlength="120"/>
|
class="<?= $require_email ? 'required' : '' ?> form-control" maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (vars('display_phone_number')): ?>
|
<?php if ($display_phone_number): ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="phone-number" class="form-label">
|
<label for="phone-number" class="form-label">
|
||||||
<?= lang('phone_number') ?>
|
<?= lang('phone_number') ?>
|
||||||
<?php if (vars('require_phone_number')): ?>
|
<?php if ($require_phone_number): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="phone-number" maxlength="60"
|
<input type="text" id="phone-number" maxlength="60"
|
||||||
class="<?= vars('require_phone_number') ? 'required' : '' ?> form-control"/>
|
class="<?= $require_phone_number ? 'required' : '' ?> form-control"/>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 col-md-6">
|
<div class="col-12 col-md-6">
|
||||||
<?php if (vars('display_address')) : ?>
|
<?php if ($display_address) : ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="address" class="form-label">
|
<label for="address" class="form-label">
|
||||||
<?= lang('address') ?>
|
<?= lang('address') ?>
|
||||||
<?php if (vars('require_address')): ?>
|
<?php if ($require_address): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="address" class="<?= vars('require_address') ? 'required' : '' ?> form-control" maxlength="120"/>
|
<input type="text" id="address" class="<?= $require_address ? 'required' : '' ?> form-control" maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if (vars('display_city')): ?>
|
<?php if ($display_city): ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="city" class="form-label">
|
<label for="city" class="form-label">
|
||||||
<?= lang('city') ?>
|
<?= lang('city') ?>
|
||||||
<?php if (vars('require_city')): ?>
|
<?php if ($require_city): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="city" class="<?= vars('require_city') ? 'required' : '' ?> form-control" maxlength="120"/>
|
<input type="text" id="city" class="<?= $require_city ? 'required' : '' ?> form-control" maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if (vars('display_zip_code')): ?>
|
<?php if ($display_zip_code): ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="zip-code" class="form-label">
|
<label for="zip-code" class="form-label">
|
||||||
<?= lang('zip_code') ?>
|
<?= lang('zip_code') ?>
|
||||||
<?php if (vars('require_zip_code')): ?>
|
<?php if ($require_zip_code): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" id="zip-code" class="<?= vars('require_zip_code') ? 'required' : '' ?> form-control" maxlength="120"/>
|
<input type="text" id="zip-code" class="<?= $require_zip_code ? 'required' : '' ?> form-control" maxlength="120"/>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if (vars('display_notes')): ?>
|
<?php if ($display_notes): ?>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="notes" class="form-label">
|
<label for="notes" class="form-label">
|
||||||
<?= lang('notes') ?>
|
<?= lang('notes') ?>
|
||||||
<?php if (vars('require_notes')): ?>
|
<?php if ($require_notes): ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</label>
|
</label>
|
||||||
<textarea id="notes" maxlength="500" class="<?= vars('require_notes') ? 'required' : '' ?> form-control" rows="1"></textarea>
|
<textarea id="notes" maxlength="500" class="<?= $require_notes ? 'required' : '' ?> form-control" rows="1"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (vars('display_terms_and_conditions')): ?>
|
<?php if ($display_terms_and_conditions): ?>
|
||||||
<div class="form-check mb-3">
|
<div class="form-check mb-3">
|
||||||
<input type="checkbox" class="required form-check-input" id="accept-to-terms-and-conditions">
|
<input type="checkbox" class="required form-check-input" id="accept-to-terms-and-conditions">
|
||||||
<label class="form-check-label" for="accept-to-terms-and-conditions">
|
<label class="form-check-label" for="accept-to-terms-and-conditions">
|
||||||
|
@ -121,7 +146,7 @@
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (vars('display_privacy_policy')): ?>
|
<?php if ($display_privacy_policy): ?>
|
||||||
<div class="form-check mb-3">
|
<div class="form-check mb-3">
|
||||||
<input type="checkbox" class="required form-check-input" id="accept-to-privacy-policy">
|
<input type="checkbox" class="required form-check-input" id="accept-to-privacy-policy">
|
||||||
<label class="form-check-label" for="accept-to-privacy-policy">
|
<label class="form-check-label" for="accept-to-privacy-policy">
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var array $grouped_timezones
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="wizard-frame-2" class="wizard-frame" style="display:none;">
|
<div id="wizard-frame-2" class="wizard-frame" style="display:none;">
|
||||||
<div class="frame-container">
|
<div class="frame-container">
|
||||||
|
|
||||||
|
@ -12,7 +20,10 @@
|
||||||
<div id="select-time">
|
<div id="select-time">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="select-timezone"><?= lang('timezone') ?></label>
|
<label for="select-timezone"><?= lang('timezone') ?></label>
|
||||||
<?php component('timezone_dropdown','id="select-timezone" class="form-control" value="UTC"', ['timezones' => vars('grouped_timezones')]) ?>
|
<?php component('timezone_dropdown', [
|
||||||
|
'attributes' => 'id="select-timezone" class="form-control" value="UTC"',
|
||||||
|
'timezones' => $grouped_timezones
|
||||||
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="available-hours"></div>
|
<div id="available-hours"></div>
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var array $available_services
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="wizard-frame-1" class="wizard-frame">
|
<div id="wizard-frame-1" class="wizard-frame">
|
||||||
<div class="frame-container">
|
<div class="frame-container">
|
||||||
<h2 class="frame-title"><?= lang('service_and_provider') ?></h2>
|
<h2 class="frame-title"><?= lang('service_and_provider') ?></h2>
|
||||||
|
@ -13,7 +21,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Group services by category, only if there is at least one service with a parent category.
|
// Group services by category, only if there is at least one service with a parent category.
|
||||||
$has_category = FALSE;
|
$has_category = FALSE;
|
||||||
foreach (vars('available_services') as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
if ( ! empty($service['category_id']))
|
if ( ! empty($service['category_id']))
|
||||||
{
|
{
|
||||||
|
@ -26,7 +34,7 @@
|
||||||
{
|
{
|
||||||
$grouped_services = [];
|
$grouped_services = [];
|
||||||
|
|
||||||
foreach (vars('available_services') as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
if ( ! empty($service['category_id']))
|
if ( ! empty($service['category_id']))
|
||||||
{
|
{
|
||||||
|
@ -42,7 +50,7 @@
|
||||||
// We need the uncategorized services at the end of the list, so we will use another
|
// We need the uncategorized services at the end of the list, so we will use another
|
||||||
// iteration only for the uncategorized services.
|
// iteration only for the uncategorized services.
|
||||||
$grouped_services['uncategorized'] = [];
|
$grouped_services['uncategorized'] = [];
|
||||||
foreach (vars('available_services') as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
if ($service['category_id'] == NULL)
|
if ($service['category_id'] == NULL)
|
||||||
{
|
{
|
||||||
|
@ -70,7 +78,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach (vars('available_services') as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
echo '<option value="' . $service['id'] . '">' . $service['name'] . '</option>';
|
echo '<option value="' . $service['id'] . '">' . $service['name'] . '</option>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var string $cookie_notice_content
|
||||||
|
*/
|
||||||
|
?>
|
||||||
<div id="cookie-notice-modal" class="modal fade">
|
<div id="cookie-notice-modal" class="modal fade">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
@ -6,7 +13,7 @@
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p><?= vars('cookie_notice_content') ?></p>
|
<p><?= $cookie_notice_content ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">
|
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var string $privacy_policy_content
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="privacy-policy-modal" class="modal fade">
|
<div id="privacy-policy-modal" class="modal fade">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
@ -7,7 +15,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p><?= vars('privacy_policy_content') ?></p>
|
<p><?= $privacy_policy_content ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">
|
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var string $terms_and_conditions_content
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="terms-and-conditions-modal" class="modal fade">
|
<div id="terms-and-conditions-modal" class="modal fade">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
@ -6,7 +14,7 @@
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p><?= vars('terms_and_conditions_content') ?></p>
|
<p><?= $terms_and_conditions_content ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">
|
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
* @var string $attributes
|
* @var string $attributes
|
||||||
* @var array $timezones
|
* @var array $timezones
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<select <?= $attributes ?>>
|
<select <?= $attributes ?>>
|
||||||
<?php foreach ($timezones as $continent => $entries): ?>
|
<?php foreach ($timezones as $continent => $entries): ?>
|
||||||
<optgroup label="<?= $continent ?>">
|
<optgroup label="<?= $continent ?>">
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var array $timezones
|
||||||
|
* @var string $timezone
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<div id="unavailabilities-modal" class="modal fade">
|
<div id="unavailabilities-modal" class="modal fade">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
@ -48,7 +57,7 @@
|
||||||
<li>
|
<li>
|
||||||
<?= lang('current_user') ?>:
|
<?= lang('current_user') ?>:
|
||||||
<span>
|
<span>
|
||||||
<?= vars('timezones')[vars('timezone')] ?>
|
<?= $timezones[$timezone] ?>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var string $company_name
|
||||||
|
* @var string $email_title
|
||||||
|
* @var string $email_message
|
||||||
|
* @var string $company_link
|
||||||
|
*/
|
||||||
|
?>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>New Password | Easy!Appointments</title>
|
<title>New Password | Easy!Appointments</title>
|
||||||
|
@ -6,13 +16,13 @@
|
||||||
<div class="email-container" style="width: 650px; border: 1px solid #eee;">
|
<div class="email-container" style="width: 650px; border: 1px solid #eee;">
|
||||||
<div id="header" style="background-color: #429a82; height: 45px; padding: 10px 15px;">
|
<div id="header" style="background-color: #429a82; height: 45px; padding: 10px 15px;">
|
||||||
<strong id="logo" style="color: white; font-size: 20px; margin-top: 10px; display: inline-block">
|
<strong id="logo" style="color: white; font-size: 20px; margin-top: 10px; display: inline-block">
|
||||||
<?= vars('company_name') ?>
|
<?= $company_name ?>
|
||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="content" style="padding: 10px 15px;">
|
<div id="content" style="padding: 10px 15px;">
|
||||||
<h2><?= vars('email_title') ?></h2>
|
<h2><?= $email_title ?></h2>
|
||||||
<p><?= vars('email_message') ?></p>
|
<p><?= $email_message ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer" style="padding: 10px; text-align: center; margin-top: 10px;
|
<div id="footer" style="padding: 10px; text-align: center; margin-top: 10px;
|
||||||
|
@ -20,7 +30,7 @@
|
||||||
Powered by
|
Powered by
|
||||||
<a href="https://easyappointments.org" style="text-decoration: none;">Easy!Appointments</a>
|
<a href="https://easyappointments.org" style="text-decoration: none;">Easy!Appointments</a>
|
||||||
|
|
|
|
||||||
<a href="<?= vars('company_link') ?>" style="text-decoration: none;"><?= vars('company_name') ?></a>
|
<a href="<?= $company_link ?>" style="text-decoration: none;"><?= $company_name ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
|
* @var string $company_name
|
||||||
|
* @var string $appointment_service
|
||||||
|
* @var string $appointment_provider
|
||||||
|
* @var string $appointment_duration
|
||||||
|
* @var string $appointment_timezone
|
||||||
|
* @var string $customer_name
|
||||||
|
* @var string $customer_email
|
||||||
|
* @var string $customer_phone
|
||||||
|
* @var string $customer_address
|
||||||
|
* @var string $reason
|
||||||
|
* @var string $company_link
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title><?= lang('appointment_cancelled_title') ?> | Easy!Appointments</title>
|
<title><?= lang('appointment_cancelled_title') ?> | Easy!Appointments</title>
|
||||||
|
@ -6,7 +24,7 @@
|
||||||
<div class="email-container" style="width: 650px; border: 1px solid #eee;">
|
<div class="email-container" style="width: 650px; border: 1px solid #eee;">
|
||||||
<div id="header" style="background-color: #429a82; height: 45px; padding: 10px 15px;">
|
<div id="header" style="background-color: #429a82; height: 45px; padding: 10px 15px;">
|
||||||
<strong id="logo" style="color: white; font-size: 20px; margin-top: 10px; display: inline-block">
|
<strong id="logo" style="color: white; font-size: 20px; margin-top: 10px; display: inline-block">
|
||||||
<?= vars('company_name') ?>
|
<?= $company_name ?>
|
||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -18,23 +36,23 @@
|
||||||
<table id="appointment-details">
|
<table id="appointment-details">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('service') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('service') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_service') ?></td>
|
<td style="padding: 3px;"><?= $appointment_service ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('provider') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('provider') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_provider') ?></td>
|
<td style="padding: 3px;"><?= $appointment_provider ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('start') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('start') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_date') ?></td>
|
<td style="padding: 3px;"><?= $appointment_date ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('duration') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('duration') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_duration') ?></td>
|
<td style="padding: 3px;"><?= $appointment_duration ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('timezone') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('timezone') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_timezone') ?></td>
|
<td style="padding: 3px;"><?= $appointment_timezone ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -42,24 +60,24 @@
|
||||||
<table id="customer-details">
|
<table id="customer-details">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('name') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('name') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('customer_name') ?></td>
|
<td style="padding: 3px;"><?= $customer_name ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('email') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('email') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('customer_email') ?></td>
|
<td style="padding: 3px;"><?= $customer_email ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('phone_number') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('phone_number') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('customer_phone') ?></td>
|
<td style="padding: 3px;"><?= $customer_phone ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('address') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('address') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('customer_address') ?></td>
|
<td style="padding: 3px;"><?= $customer_address ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h2><?= lang('reason') ?></h2>
|
<h2><?= lang('reason') ?></h2>
|
||||||
<p><?= vars('reason') ?></p>
|
<p><?= $reason ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer" style="padding: 10px; text-align: center; margin-top: 10px;
|
<div id="footer" style="padding: 10px; text-align: center; margin-top: 10px;
|
||||||
|
@ -67,7 +85,7 @@
|
||||||
Powered by
|
Powered by
|
||||||
<a href="https://easyappointments.org" style="text-decoration: none;">Easy!Appointments</a>
|
<a href="https://easyappointments.org" style="text-decoration: none;">Easy!Appointments</a>
|
||||||
|
|
|
|
||||||
<a href="<?= vars('company_link') ?>" style="text-decoration: none;"><?= vars('company_name') ?></a>
|
<a href="<?= $company_link ?>" style="text-decoration: none;"><?= $company_name ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
|
* Local variables.
|
||||||
|
*
|
||||||
* @var string $company_name
|
* @var string $company_name
|
||||||
* @var string $email_title
|
* @var string $email_title
|
||||||
* @var string $email_message
|
* @var string $email_message
|
||||||
|
@ -25,35 +27,35 @@
|
||||||
<div class="email-container" style="width: 650px; border: 1px solid #eee;">
|
<div class="email-container" style="width: 650px; border: 1px solid #eee;">
|
||||||
<div id="header" style="background-color: #429a82; height: 45px; padding: 10px 15px;">
|
<div id="header" style="background-color: #429a82; height: 45px; padding: 10px 15px;">
|
||||||
<strong id="logo" style="color: white; font-size: 20px; margin-top: 10px; display: inline-block">
|
<strong id="logo" style="color: white; font-size: 20px; margin-top: 10px; display: inline-block">
|
||||||
<?= vars('company_name') ?>
|
<?= $company_name ?>
|
||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="content" style="padding: 10px 15px;">
|
<div id="content" style="padding: 10px 15px;">
|
||||||
<h2><?= vars('email_title') ?></h2>
|
<h2><?= $email_title ?></h2>
|
||||||
<p><?= vars('email_message') ?></p>
|
<p><?= $email_message ?></p>
|
||||||
|
|
||||||
<h2><?= lang('appointment_details_title') ?></h2>
|
<h2><?= lang('appointment_details_title') ?></h2>
|
||||||
<table id="appointment-details">
|
<table id="appointment-details">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('service') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('service') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_service') ?></td>
|
<td style="padding: 3px;"><?= $appointment_service ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('provider') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('provider') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_provider') ?></td>
|
<td style="padding: 3px;"><?= $appointment_provider ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('start') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('start') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_start_date') ?></td>
|
<td style="padding: 3px;"><?= $appointment_start_date ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('end') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('end') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_end_date') ?></td>
|
<td style="padding: 3px;"><?= $appointment_end_date ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('timezone') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('timezone') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('appointment_timezone') ?></td>
|
<td style="padding: 3px;"><?= $appointment_timezone ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -61,24 +63,24 @@
|
||||||
<table id="customer-details">
|
<table id="customer-details">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('name') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('name') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('customer_name') ?></td>
|
<td style="padding: 3px;"><?= $customer_name ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('email') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('email') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('customer_email') ?></td>
|
<td style="padding: 3px;"><?= $customer_email ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('phone_number') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('phone_number') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('customer_phone') ?></td>
|
<td style="padding: 3px;"><?= $customer_phone ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('address') ?></td>
|
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('address') ?></td>
|
||||||
<td style="padding: 3px;"><?= vars('customer_address') ?></td>
|
<td style="padding: 3px;"><?= $customer_address ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h2><?= lang('appointment_link_title') ?></h2>
|
<h2><?= lang('appointment_link_title') ?></h2>
|
||||||
<a href="<?= vars('appointment_link') ?>" style="width: 600px;"><?= vars('appointment_link') ?></a>
|
<a href="<?= $appointment_link ?>" style="width: 600px;"><?= $appointment_link ?></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer" style="padding: 10px; text-align: center; margin-top: 10px;
|
<div id="footer" style="padding: 10px; text-align: center; margin-top: 10px;
|
||||||
|
@ -86,7 +88,7 @@
|
||||||
Powered by
|
Powered by
|
||||||
<a href="https://easyappointments.org" style="text-decoration: none;">Easy!Appointments</a>
|
<a href="https://easyappointments.org" style="text-decoration: none;">Easy!Appointments</a>
|
||||||
|
|
|
|
||||||
<a href="<?= vars('company_link') ?>" style="text-decoration: none;"><?= vars('company_name') ?></a>
|
<a href="<?= $company_link ?>" style="text-decoration: none;"><?= $company_name ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -24,11 +24,11 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<?php component('backend_header') ?>
|
<?php component('backend_header', ['active_menu' => vars('active_menu')]) ?>
|
||||||
|
|
||||||
<?php slot('content') ?>
|
<?php slot('content') ?>
|
||||||
|
|
||||||
<?php component('backend_footer') ?>
|
<?php component('backend_footer', ['user_display_name' => vars('user_display_name')]) ?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const availableLanguages = <?= json_encode(config('available_languages')) ?>;
|
const availableLanguages = <?= json_encode(config('available_languages')) ?>;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<div class="row wrapper">
|
<div class="row wrapper">
|
||||||
<div id="book-appointment-wizard" class="col-12 col-lg-10 col-xl-8">
|
<div id="book-appointment-wizard" class="col-12 col-lg-10 col-xl-8">
|
||||||
|
|
||||||
<?php component('booking_header') ?>
|
<?php component('booking_header', ['company_name' => vars('company_name')]) ?>
|
||||||
|
|
||||||
<?php slot('content') ?>
|
<?php slot('content') ?>
|
||||||
|
|
||||||
|
@ -36,15 +36,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (vars('display_cookie_notice') === '1'): ?>
|
<?php if (vars('display_cookie_notice') === '1'): ?>
|
||||||
<?php component('cookie_notice_modal') ?>
|
<?php component('cookie_notice_modal', ['cookie_notice_content' => vars('cookie_notice_content')]) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (vars('display_terms_and_conditions') === '1'): ?>
|
<?php if (vars('display_terms_and_conditions') === '1'): ?>
|
||||||
<?php component('terms_and_conditions_modal') ?>
|
<?php component('terms_and_conditions_modal', ['terms_and_conditions_content' => vars('terms_and_conditions_content')]) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (vars('display_privacy_policy') === '1'): ?>
|
<?php if (vars('display_privacy_policy') === '1'): ?>
|
||||||
<?php component('privacy_policy_modal') ?>
|
<?php component('privacy_policy_modal', ['privacy_policy_content' => vars('privacy_policy_content')]) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
||||||
|
|
|
@ -136,7 +136,8 @@
|
||||||
<label class="form-label" for="timezone">
|
<label class="form-label" for="timezone">
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
</label>
|
</label>
|
||||||
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
<?php component('timezone_dropdown', [
|
||||||
|
'attributes' => 'id="timezone" class="form-control required"',
|
||||||
'timezones' => vars('timezones')
|
'timezones' => vars('timezones')
|
||||||
]) ?>
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -177,7 +177,8 @@
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
<?php component('timezone_dropdown', [
|
||||||
|
'attributes' => 'id="timezone" class="form-control required"',
|
||||||
'timezones' => vars('timezones')
|
'timezones' => vars('timezones')
|
||||||
]) ?>
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,23 +4,45 @@
|
||||||
|
|
||||||
<!-- Booking Cancellation Frame -->
|
<!-- Booking Cancellation Frame -->
|
||||||
|
|
||||||
<?php component('booking_cancellation_frame') ?>
|
<?php component('booking_cancellation_frame', [
|
||||||
|
'manage_mode' => vars('manage_mode'),
|
||||||
|
'appointment_data' => vars('manage_mode')
|
||||||
|
]) ?>
|
||||||
|
|
||||||
<!-- Select Service & Provider -->
|
<!-- Select Service & Provider -->
|
||||||
|
|
||||||
<?php component('booking_type_step') ?>
|
<?php component('booking_type_step', ['available_services' => vars('available_services')]) ?>
|
||||||
|
|
||||||
<!-- Pick An Appointment Date -->
|
<!-- Pick An Appointment Date -->
|
||||||
|
|
||||||
<?php component('booking_time_step') ?>
|
<?php component('booking_time_step', ['grouped_timezones' => vars('grouped_timezones')]) ?>
|
||||||
|
|
||||||
<!-- Enter Customer Information -->
|
<!-- Enter Customer Information -->
|
||||||
|
|
||||||
<?php component('booking_info_step') ?>
|
<?php component('booking_info_step', [
|
||||||
|
'display_first_name' => vars('display_first_name'),
|
||||||
|
'require_first_name' => vars('require_first_name'),
|
||||||
|
'display_last_name' => vars('display_last_name'),
|
||||||
|
'require_last_name' => vars('require_last_name'),
|
||||||
|
'display_email' => vars('display_email'),
|
||||||
|
'require_email' => vars('require_email'),
|
||||||
|
'display_phone_number' => vars('display_phone_number'),
|
||||||
|
'require_phone_number' => vars('require_phone_number'),
|
||||||
|
'display_address' => vars('display_address'),
|
||||||
|
'require_address' => vars('require_address'),
|
||||||
|
'display_city' => vars('display_city'),
|
||||||
|
'require_city' => vars('require_city'),
|
||||||
|
'display_zip_code' => vars('display_zip_code'),
|
||||||
|
'require_zip_code' => vars('require_zip_code'),
|
||||||
|
'display_notes' => vars('display_notes'),
|
||||||
|
'require_notes' => vars('require_notes'),
|
||||||
|
'display_terms_and_conditions' => vars('display_terms_and_conditions'),
|
||||||
|
'display_privacy_policy' => vars('display_privacy_policy'),
|
||||||
|
]) ?>
|
||||||
|
|
||||||
<!-- Appointment Data Confirmation -->
|
<!-- Appointment Data Confirmation -->
|
||||||
|
|
||||||
<?php component('booking_final_step') ?>
|
<?php component('booking_final_step', ['manage_mode' => vars('manage_mode')]) ?>
|
||||||
|
|
||||||
<?php section('content') ?>
|
<?php section('content') ?>
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,6 @@
|
||||||
|
|
||||||
<?php component(
|
<?php component(
|
||||||
'appointments_modal',
|
'appointments_modal',
|
||||||
'',
|
|
||||||
[
|
[
|
||||||
'available_services' => vars('available_services'),
|
'available_services' => vars('available_services'),
|
||||||
'timezones' => vars('timezones'),
|
'timezones' => vars('timezones'),
|
||||||
|
@ -106,7 +105,6 @@
|
||||||
|
|
||||||
<?php component(
|
<?php component(
|
||||||
'unavailabilities_modal',
|
'unavailabilities_modal',
|
||||||
'',
|
|
||||||
[
|
[
|
||||||
'timezones' => vars('timezones'),
|
'timezones' => vars('timezones'),
|
||||||
'timezone' => vars('timezone')
|
'timezone' => vars('timezone')
|
||||||
|
|
|
@ -161,7 +161,8 @@
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
<?php component('timezone_dropdown', [
|
||||||
|
'attributes' => 'id="timezone" class="form-control required"',
|
||||||
'timezones' => vars('timezones')
|
'timezones' => vars('timezones')
|
||||||
]) ?>
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -198,7 +198,8 @@
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
<?php component('timezone_dropdown', [
|
||||||
|
'attributes' => 'id="timezone" class="form-control required"',
|
||||||
'timezones' => vars('timezones')
|
'timezones' => vars('timezones')
|
||||||
]) ?>
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -176,7 +176,8 @@
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
<?php component('timezone_dropdown', [
|
||||||
|
'attributes' => 'id="timezone" class="form-control required"',
|
||||||
'timezones' => vars('timezones')
|
'timezones' => vars('timezones')
|
||||||
]) ?>
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue