Added doc blocks for template vars and did minor template fixes

This commit is contained in:
alextselegidis 2021-11-10 08:32:46 +01:00
parent 44fffb1c56
commit 0e8ebc8110
21 changed files with 275 additions and 42 deletions

View file

@ -1,3 +1,24 @@
<?php
/**
* @var string $company_name
* @var string $customer_token
* @var string $date_format
* @var string $time_format
* @var string $first_weekday
* @var bool $manage_mode
* @var array $appointment_data
* @var array $provider_data
* @var array $customer_data
* @var array $available_services
* @var array $available_providers
* @var array $show_field
* @var bool $require_phone_number
* @var string $display_any_provider
* @var string $display_terms_and_conditions
* @var string $display_privacy_policy
* @var string $display_cookie_notice
*/
?>
<!doctype html>
<html lang="en">
<head>
@ -62,7 +83,7 @@
<input type="hidden" name="csrfToken" value="<?= $this->security->get_csrf_hash() ?>"/>
<textarea name="cancel_reason" style="display:none"></textarea>
<input id="cancel-reason" name="cancel_reason" type="hidden">
<button id="cancel-appointment" class="btn btn-warning btn-sm">
<?= lang('cancel') ?>
@ -360,14 +381,14 @@
<?php if (setting('require_captcha')): ?>
<div class="row frame-content">
<div class="col-12 col-md-6">
<h4 class="captcha-title">
<label class="captcha-title" for="captcha-text">
CAPTCHA
<button class="btn btn-link text-dark text-decoration-none py-0">
<i class="fas fa-sync-alt"></i>
</button>
</h4>
<img class="captcha-image" src="<?= site_url('captcha') ?>">
<input class="captcha-text form-control" type="text" value=""/>
</label>
<img class="captcha-image" src="<?= site_url('captcha') ?>" alt="CAPTCHA">
<input id="captcha-text" class="captcha-text form-control" type="text" value=""/>
<span id="captcha-hint" class="help-block" style="opacity:0">&nbsp;</span>
</div>
</div>

View file

@ -1,4 +1,11 @@
<!doctype html>
<?php
/**
* @var string $company_name
* @var array $appointment_data
* @var array $provider_data
* @var array $customer_data
*/
?><!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
@ -21,7 +28,7 @@
<div class="row wrapper">
<div id="success-frame" class="col-12 border my-auto frame-container">
<div>
<img id="success-icon" class="mt-0 mb-2" src="<?= base_url('assets/img/success.png') ?>"/>
<img id="success-icon" class="mt-0 mb-2" src="<?= base_url('assets/img/success.png') ?>" alt="success"/>
</div>
<div>

View file

@ -1,3 +1,10 @@
<?php
/**
* @var string $message_title
* @var string $message_icon
* @var string $message_text
*/
?>
<!doctype html>
<html lang="en">
<head>

View file

@ -1,3 +1,24 @@
<?php
/**
* @var array $available_providers
* @var array $available_services
* @var string $base_url
* @var string $date_format
* @var string $time_format
* @var string $first_weekday
* @var array $edit_appointment
* @var array $customers
* @var array $secretary_providers
* @var string $calendar_view
* @var string $timezones
* @var string $user_id
* @var string $user_email
* @var string $timezone
* @var string $role_slug
* @var array $privileges
*/
?>
<link rel="stylesheet" type="text/css" href="<?= asset_url('/assets/vendor/fullcalendar/fullcalendar.min.css') ?>">
<script src="<?= asset_url('assets/vendor/fullcalendar/fullcalendar.min.js') ?>"></script>

View file

@ -1,3 +1,20 @@
<?php
/**
* @var array $available_providers
* @var array $available_services
* @var array $secretary_providers
* @var string $date_format
* @var string $time_format
* @var string $base_url
* @var array $customers
* @var string $timezones
* @var string $user_id
* @var string $user_email
* @var string $timezone
* @var string $role_slug
* @var array $privileges
*/
?>
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_customers_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_customers.js') ?>"></script>

View file

@ -1,3 +1,8 @@
<?php
/**
* @var string $user_display_name
*/
?>
<div id="footer">
<div id="footer-content" class="col-12 col-sm-8">
<img class="mr-1" src="<?= base_url('assets/img/logo-16x16.png') ?>" alt="Easy!Appointments Logo">

View file

@ -1,3 +1,11 @@
<?php
/**
* @var string $page_title
* @var array $active_menu
* @var array $privileges
*/
?>
<!doctype html>
<html lang="en">
<head>

View file

@ -1,3 +1,18 @@
<?php
/**
* @var array $categories
* @var array $services
* @var string $date_format
* @var string $time_format
* @var string $base_url
* @var string $timezones
* @var string $user_id
* @var string $user_email
* @var string $timezone
* @var string $role_slug
* @var array $privileges
*/
?>
<script src="<?= asset_url('assets/js/backend_services_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_categories_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_services.js') ?>"></script>

View file

@ -1,3 +1,19 @@
<?php
/**
* @var string $first_weekday
* @var array $system_settings
* @var array $user_settings
* @var string $date_format
* @var string $time_format
* @var string $base_url
* @var string $timezones
* @var string $user_id
* @var string $user_email
* @var string $timezone
* @var string $role_slug
* @var array $privileges
*/
?>
<script src="<?= asset_url('assets/js/backend_settings_system.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_settings_user.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_settings.js') ?>"></script>
@ -206,36 +222,36 @@
<div class="form-group">
<label for="show-phone-number"><?= lang('phone_number') ?></label>
<button id="show-phone-number" data-field="show_phone_number" type="button" class="hide-toggle form-control form-sub-button">
<div class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></div>
<div class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></div>
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
</button>
</div>
<div class="form-group">
<label for="show-address"><?= lang('address') ?></label>
<button id="show-address" data-field="show_address" type="button" class="hide-toggle form-control form-sub-button">
<div class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></div>
<div class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></div>
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
</button>
</div>
<div class="form-group">
<label for="show-city"><?= lang('city') ?></label>
<button id="show-city" data-field="show_city" type="button" class="hide-toggle form-control form-sub-button">
<div class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></div>
<div class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></div>
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
</button>
</div>
<div class="form-group">
<label for="show-zip-code"><?= lang('zip_code') ?></label>
<button id="show-zip-code" data-field="show_zip_code" type="button" class="hide-toggle form-control form-sub-button">
<div class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></div>
<div class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></div>
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
</button>
</div>
<div class="form-group">
<label for="show-notes"><?= lang('notes') ?></label>
<button id="show-notes" data-field="show_notes" type="button" class="hide-toggle form-control form-sub-button">
<div class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></div>
<div class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></div>
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
</button>
</div>
</div>

View file

@ -1,3 +1,25 @@
<?php
/**
* @var array $providers
* @var array $services
* @var array $secretaries
* @var array $admins
* @var string $date_format
* @var string $time_format
* @var string $first_weekday
* @var string $base_url
* @var array $customers
* @var string $timezones
* @var string $user_id
* @var string $user_email
* @var string $timezone
* @var string $role_slug
* @var array $privileges
* @var string $working_plan
* @var array $working_plan_exceptions
*/
?>
<script src="<?= asset_url('assets/js/backend_users_admins.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_users_providers.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_users_secretaries.js') ?>"></script>
@ -374,7 +396,7 @@
<div class="input-group">
<input type="text" class="key form-control">
<span class="input-group-addon">
<div class="input-group-addon">
<div>
<button class="filter btn btn-outline-secondary" type="submit"
data-tippy-content="<?= lang('filter') ?>">
@ -385,7 +407,7 @@
<i class="fas fa-redo-alt"></i>
</button>
</div>
</span>
</div>
</div>
</form>
@ -582,7 +604,7 @@
<div class="input-group">
<input type="text" class="key form-control">
<span class="input-group-addon">
<div class="input-group-addon">
<div>
<button class="filter btn btn-outline-secondary" type="submit"
data-tippy-content="<?= lang('filter') ?>">
@ -593,7 +615,7 @@
<i class="fas fa-redo-alt"></i>
</button>
</div>
</span>
</div>
</div>
</form>
@ -640,7 +662,7 @@
<div class="row">
<div class="admin-details col-12 col-md-6">
<div class="form-group">
<label for="first-name">
<label for="admin-first-name">
<?= lang('first_name') ?>
<span class="text-danger">*</span>
</label>

View file

@ -1,3 +1,22 @@
<?php
/**
* @var string $company_name
* @var string $email_title
* @var string $email_message
* @var array $appointment_service
* @var string $appointment_provider
* @var string $appointment_start_date
* @var string $appointment_end_date
* @var string $appointment_timezone
* @var string $customer_name
* @var string $customer_email
* @var string $customer_phone
* @var string $customer_address
* @var string $appointment_link
* @var string $company_link
*/
?>
<html lang="en">
<head>
<title><?= lang('appointment_details_title') ?> | Easy!Appointments</title>

View file

@ -1,3 +1,19 @@
<?php
/**
* @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">
<head>
<title><?= lang('appointment_cancelled_title') ?> | Easy!Appointments</title>

View file

@ -1,3 +1,11 @@
<?php
/**
* @var string $company_name
* @var string $email_title
* @var string $email_message
* @var string $company_link
*/
?>
<html lang="en">
<head>
<title>New Password | Easy!Appointments</title>

View file

@ -1,3 +1,10 @@
<?php
/**
* @var bool $success
* @var string $exception
*/
?>
<!doctype html>
<html lang="en">
<head>

View file

@ -1,3 +1,8 @@
<?php
/**
* @var string $cookie_notice_content
*/
?>
<div id="cookie-notice-modal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">

View file

@ -1,3 +1,10 @@
<?php
/**
* @var array $available_services
* @var array $timezones
* @var string $require_phone_number
*/
?>
<div id="manage-appointment" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">

View file

@ -1,3 +1,9 @@
<?php
/**
* @var array $timezones
*/
?>
<div id="manage-unavailable" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">

View file

@ -1,3 +1,9 @@
<?php
/**
* @var string $privacy_policy_content
*/
?>
<div id="privacy-policy-modal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">

View file

@ -1,3 +1,9 @@
<?php
/**
* @var string $terms_and_conditions_content
*/
?>
<div id="terms-and-conditions-modal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">

View file

@ -1,3 +1,10 @@
<?php
/**
* @var string $attributes
* @var array $timezones
*/
?>
<select <?= $attributes ?>>
<?php foreach ($timezones as $continent => $entries): ?>
<optgroup label="<?= $continent ?>">

View file

@ -1,3 +1,10 @@
<?php
/**
* @var string $base_url
* @var string $dest_url
*/
?>
<!doctype html>
<html lang="en">
<head>