Refactor the email template HTML structure
This commit is contained in:
parent
9727d22205
commit
697b3fa5a8
3 changed files with 174 additions and 55 deletions
|
@ -21,16 +21,24 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="content" style="padding: 10px 15px;">
|
<div id="content" style="padding: 10px 15px;">
|
||||||
<h2><?= $email_title ?></h2>
|
<h2>
|
||||||
<p><?= $email_message ?></p>
|
<?= $email_title ?>
|
||||||
|
</h2>
|
||||||
|
<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;
|
||||||
border-top: 1px solid #EEE; background: #FAFAFA;">
|
border-top: 1px solid #EEE; background: #FAFAFA;">
|
||||||
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="<?= $company_link ?>" style="text-decoration: none;"><?= $company_name ?></a>
|
<a href="<?= $company_link ?>" style="text-decoration: none;">
|
||||||
|
<?= $company_name ?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -29,63 +29,116 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="content" style="padding: 10px 15px;">
|
<div id="content" style="padding: 10px 15px;">
|
||||||
<h2><?= lang('appointment_cancelled_title') ?></h2>
|
<h2>
|
||||||
<p><?= lang('appointment_removed_from_schedule') ?></p>
|
<?= lang('appointment_cancelled_title') ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<?= lang('appointment_removed_from_schedule') ?>
|
||||||
|
</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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_service ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_provider ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_date ?></td>
|
<?= lang('start') ?>
|
||||||
|
</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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_duration ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_timezone ?></td>
|
<?= lang('timezone') ?>
|
||||||
|
</td>
|
||||||
|
<td style="padding: 3px;">
|
||||||
|
<?= $appointment_timezone ?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h2><?= lang('customer_details_title') ?></h2>
|
<h2><?= lang('customer_details_title') ?></h2>
|
||||||
<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;">
|
||||||
<td style="padding: 3px;"><?= $customer_name ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $customer_email ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $customer_phone ?></td>
|
<?= lang('phone_number') ?>
|
||||||
|
</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;">
|
||||||
<td style="padding: 3px;"><?= $customer_address ?></td>
|
<?= lang('address') ?>
|
||||||
|
</td>
|
||||||
|
<td style="padding: 3px;">
|
||||||
|
<?= $customer_address ?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h2><?= lang('reason') ?></h2>
|
<h2>
|
||||||
<p><?= $reason ?></p>
|
<?= lang('reason') ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<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;
|
||||||
border-top: 1px solid #EEE; background: #FAFAFA;">
|
border-top: 1px solid #EEE; background: #FAFAFA;">
|
||||||
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="<?= $company_link ?>" style="text-decoration: none;"><?= $company_name ?></a>
|
<a href="<?= $company_link ?>" style="text-decoration: none;">
|
||||||
|
<?= $company_name ?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -32,63 +32,121 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="content" style="padding: 10px 15px;">
|
<div id="content" style="padding: 10px 15px;">
|
||||||
<h2><?= $email_title ?></h2>
|
<h2>
|
||||||
<p><?= $email_message ?></p>
|
<?= $email_title ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_service ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_provider ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_start_date ?></td>
|
<?= lang('start') ?>
|
||||||
|
</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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_end_date ?></td>
|
<?= lang('end') ?>
|
||||||
|
</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;">
|
||||||
<td style="padding: 3px;"><?= $appointment_timezone ?></td>
|
<?= lang('timezone') ?>
|
||||||
|
</td>
|
||||||
|
<td style="padding: 3px;">
|
||||||
|
<?= $appointment_timezone ?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h2><?= lang('customer_details_title') ?></h2>
|
<h2>
|
||||||
|
<?= lang('customer_details_title') ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
<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;">
|
||||||
<td style="padding: 3px;"><?= $customer_name ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $customer_email ?></td>
|
<?= lang('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;">
|
||||||
<td style="padding: 3px;"><?= $customer_phone ?></td>
|
<?= lang('phone_number') ?>
|
||||||
|
</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;">
|
||||||
<td style="padding: 3px;"><?= $customer_address ?></td>
|
<?= lang('address') ?>
|
||||||
|
</td>
|
||||||
|
<td style="padding: 3px;">
|
||||||
|
<?= $customer_address ?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h2><?= lang('appointment_link_title') ?></h2>
|
<h2>
|
||||||
<a href="<?= $appointment_link ?>" style="width: 600px;"><?= $appointment_link ?></a>
|
<?= lang('appointment_link_title') ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<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;
|
||||||
border-top: 1px solid #EEE; background: #FAFAFA;">
|
border-top: 1px solid #EEE; background: #FAFAFA;">
|
||||||
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="<?= $company_link ?>" style="text-decoration: none;"><?= $company_name ?></a>
|
<a href="<?= $company_link ?>" style="text-decoration: none;">
|
||||||
|
<?= $company_name ?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue