first real commit in standalone repo
This commit is contained in:
39
templates/Admin/ContactUsFormSubmissions/edit.php
Normal file
39
templates/Admin/ContactUsFormSubmissions/edit.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $contactUsFormSubmission
|
||||
*/
|
||||
?>
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
<h4 class="heading"><?= __('Actions') ?></h4>
|
||||
<?= $this->Form->postLink(
|
||||
__('Delete'),
|
||||
['action' => 'delete', $contactUsFormSubmission->id],
|
||||
['confirm' => __('Are you sure you want to delete # {0}?', $contactUsFormSubmission->id), 'class' => 'side-nav-item']
|
||||
) ?>
|
||||
<?= $this->Html->link(__('List Contact Us Form Submissions'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="column column-80">
|
||||
<div class="contactUsFormSubmissions form content">
|
||||
<?= $this->Form->create($contactUsFormSubmission) ?>
|
||||
<fieldset>
|
||||
<legend><?= __('Edit Contact Us Form Submission') ?></legend>
|
||||
<?php
|
||||
echo $this->Form->control('submitted_at');
|
||||
echo $this->Form->control('client_ip');
|
||||
echo $this->Form->control('name');
|
||||
echo $this->Form->control('email');
|
||||
echo $this->Form->control('subject');
|
||||
echo $this->Form->control('message');
|
||||
echo $this->Form->control('confirm_email_sent', ['empty' => true]);
|
||||
echo $this->Form->control('backend_email_sent', ['empty' => true]);
|
||||
?>
|
||||
</fieldset>
|
||||
<?= $this->Form->button(__('Submit')) ?>
|
||||
<?= $this->Form->end() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
55
templates/Admin/ContactUsFormSubmissions/index.php
Normal file
55
templates/Admin/ContactUsFormSubmissions/index.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var iterable<\Cake\Datasource\EntityInterface> $contactUsFormSubmissions
|
||||
*/
|
||||
?>
|
||||
<div class="contactUsFormSubmissions index content">
|
||||
<h3><?= __('Contact Us Form Submissions') ?></h3>
|
||||
<div class="table-responsive">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->Paginator->sort('id') ?></th>
|
||||
<th><?= $this->Paginator->sort('submitted_at') ?></th>
|
||||
<th><?= $this->Paginator->sort('client_ip') ?></th>
|
||||
<th><?= $this->Paginator->sort('name') ?></th>
|
||||
<th><?= $this->Paginator->sort('email') ?></th>
|
||||
<th><?= $this->Paginator->sort('subject') ?></th>
|
||||
<th><?= $this->Paginator->sort('confirm_email_sent') ?></th>
|
||||
<th><?= $this->Paginator->sort('backend_email_sent') ?></th>
|
||||
<th class="actions"><?= __('Actions') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($contactUsFormSubmissions as $contactUsFormSubmission): ?>
|
||||
<tr>
|
||||
<td><?= h($contactUsFormSubmission->id) ?></td>
|
||||
<td><?= h($contactUsFormSubmission->submitted_at) ?></td>
|
||||
<td><?= h($contactUsFormSubmission->client_ip) ?></td>
|
||||
<td><?= h($contactUsFormSubmission->name) ?></td>
|
||||
<td><?= h($contactUsFormSubmission->email) ?></td>
|
||||
<td><?= h($contactUsFormSubmission->subject) ?></td>
|
||||
<td><?= h($contactUsFormSubmission->confirm_email_sent) ?></td>
|
||||
<td><?= h($contactUsFormSubmission->backend_email_sent) ?></td>
|
||||
<td class="actions">
|
||||
<?= $this->Html->link(__('View'), ['action' => 'view', $contactUsFormSubmission->id]) ?>
|
||||
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $contactUsFormSubmission->id]) ?>
|
||||
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $contactUsFormSubmission->id], ['confirm' => __('Are you sure you want to delete # {0}?', $contactUsFormSubmission->id)]) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="paginator">
|
||||
<ul class="pagination">
|
||||
<?= $this->Paginator->first('<< ' . __('first')) ?>
|
||||
<?= $this->Paginator->prev('< ' . __('previous')) ?>
|
||||
<?= $this->Paginator->numbers() ?>
|
||||
<?= $this->Paginator->next(__('next') . ' >') ?>
|
||||
<?= $this->Paginator->last(__('last') . ' >>') ?>
|
||||
</ul>
|
||||
<p><?= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
61
templates/Admin/ContactUsFormSubmissions/view.php
Normal file
61
templates/Admin/ContactUsFormSubmissions/view.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $contactUsFormSubmission
|
||||
*/
|
||||
?>
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
<h4 class="heading"><?= __('Actions') ?></h4>
|
||||
<?= $this->Html->link(__('Edit Contact Us Form Submission'), ['action' => 'edit', $contactUsFormSubmission->id], ['class' => 'side-nav-item']) ?>
|
||||
<?= $this->Form->postLink(__('Delete Contact Us Form Submission'), ['action' => 'delete', $contactUsFormSubmission->id], ['confirm' => __('Are you sure you want to delete # {0}?', $contactUsFormSubmission->id), 'class' => 'side-nav-item']) ?>
|
||||
<?= $this->Html->link(__('List Contact Us Form Submissions'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="column column-80">
|
||||
<div class="contactUsFormSubmissions view content">
|
||||
<h3><?= h($contactUsFormSubmission->name) ?></h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th><?= __('Id') ?></th>
|
||||
<td><?= h($contactUsFormSubmission->id) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Client Ip') ?></th>
|
||||
<td><?= h($contactUsFormSubmission->client_ip) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Name') ?></th>
|
||||
<td><?= h($contactUsFormSubmission->name) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Email') ?></th>
|
||||
<td><?= h($contactUsFormSubmission->email) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Subject') ?></th>
|
||||
<td><?= h($contactUsFormSubmission->subject) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Submitted At') ?></th>
|
||||
<td><?= h($contactUsFormSubmission->submitted_at) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Confirm Email Sent') ?></th>
|
||||
<td><?= h($contactUsFormSubmission->confirm_email_sent) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?= __('Backend Email Sent') ?></th>
|
||||
<td><?= h($contactUsFormSubmission->backend_email_sent) ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="text">
|
||||
<strong><?= __('Message') ?></strong>
|
||||
<blockquote>
|
||||
<?= $this->Text->autoParagraph(h($contactUsFormSubmission->message)); ?>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
23
templates/ContactUsFormSubmissions/add.php
Normal file
23
templates/ContactUsFormSubmissions/add.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $contactUsFormSubmission
|
||||
*/
|
||||
?>
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
</div>
|
||||
</aside>
|
||||
<div class="column column-80">
|
||||
<div class="contactUsFormSubmissions form content">
|
||||
<?= $this->Form->create($contactUsFormSubmission) ?>
|
||||
<fieldset>
|
||||
<legend><?= __('Add Contact Us Form Submission') ?></legend>
|
||||
<?php echo $this->element('ContactUsFormSubmissions/form'); ?>
|
||||
</fieldset>
|
||||
<?= $this->Form->button(__('Submit')) ?>
|
||||
<?= $this->Form->end() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
16
templates/element/ContactUsFormSubmissions/form.php
Normal file
16
templates/element/ContactUsFormSubmissions/form.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $contactUsFormSubmission
|
||||
*/
|
||||
|
||||
$fields = \Cake\Core\Configure::readOrFail('ContactUs.fields');
|
||||
?>
|
||||
<?php
|
||||
echo $this->Form->control('name');
|
||||
echo $fields['email'] ? $this->Form->control('email', ['required' => true]) : '';
|
||||
echo $fields['subject'] ? $this->Form->control('subject', ['required' => true]) : '';
|
||||
echo $this->Form->control('message');
|
||||
echo $fields['captcha'] ? $this->Captcha->render(['placeholder' => __('Please solve the riddle')]) : '';
|
||||
|
||||
?>
|
||||
32
templates/email/html/backend.php
Normal file
32
templates/email/html/backend.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Cake\Core\Configure;
|
||||
|
||||
/**
|
||||
* @var \CakeContactUs\Model\Entity\ContactUsFormSubmission $contactUsFormSubmission
|
||||
*/
|
||||
?>
|
||||
<p>
|
||||
<?= __d('cake_contact_us', "A contact us form submission was received at {0}", $contactUsFormSubmission->submitted_at) ?>,
|
||||
</p>
|
||||
<p>
|
||||
<?= h($contactUsFormSubmission->name); ?>
|
||||
</p>
|
||||
<?php if (Configure::readOrFail('ContactUs.fields.email') || isset($contactUsFormSubmission->email)) : ?>
|
||||
<p>
|
||||
<strong><?= __d('cake_contact_us', 'Email: ') ?></strong>
|
||||
<?= $this->Html->link($contactUsFormSubmission->email, 'mailto:' . $contactUsFormSubmission->email); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (Configure::readOrFail('ContactUs.fields.subject') || isset($contactUsFormSubmission->subject)) : ?>
|
||||
<p>
|
||||
<strong><?= __d('cake_contact_us', 'Subject: ') ?></strong>
|
||||
<span><?= h($contactUsFormSubmission->subject); ?></span>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<p>
|
||||
<strong><?= __d('cake_contact_us', 'Message: ') ?></strong>
|
||||
<?= h($contactUsFormSubmission->message); ?>
|
||||
</p>
|
||||
|
||||
9
templates/email/html/confirmation.php
Normal file
9
templates/email/html/confirmation.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<p>
|
||||
<?= __d('cake_contact_us', "Hi {0}", isset($contactUsFormSubmission->name) ? $contactUsFormSubmission->name : '') ?>,
|
||||
</p>
|
||||
<p>
|
||||
<strong><?= __d('cake_contact_us', 'We have received your message. We will be in touch soon.') ?></strong>
|
||||
</p>
|
||||
<p>
|
||||
<?= __d('cake_contact_us', 'Thank you') ?>,
|
||||
</p>
|
||||
25
templates/email/text/backend.php
Normal file
25
templates/email/text/backend.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Cake\Core\Configure;
|
||||
|
||||
/**
|
||||
* @var \CakeContactUs\Model\Entity\ContactUsFormSubmission $contactUsFormSubmission
|
||||
*/
|
||||
?>
|
||||
<?= __d('cake_contact_us', "A contact us form submission was received at {0}", $contactUsFormSubmission->submitted_at) ?>,
|
||||
|
||||
|
||||
<?= __d('cake_contact_us', 'Name: ') ?><?= h($contactUsFormSubmission->name); ?>
|
||||
|
||||
<?php if (Configure::readOrFail('ContactUs.fields.email') || isset($contactUsFormSubmission->email)) : ?>
|
||||
<?= __d('cake_contact_us', 'Email: ') ?>
|
||||
<?= $contactUsFormSubmission->email; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (Configure::readOrFail('ContactUs.fields.subject') || isset($contactUsFormSubmission->subject)) : ?>
|
||||
<?= __d('cake_contact_us', 'Subject: ') ?>
|
||||
<?= h($contactUsFormSubmission->subject); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?= __d('cake_contact_us', 'Message: ') ?>
|
||||
<?= h($contactUsFormSubmission->message); ?>
|
||||
17
templates/email/text/confirmation.php
Normal file
17
templates/email/text/confirmation.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2010 - 2019, Cake Development Corporation (https://www.cakedc.com)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright 2010 - 2018, Cake Development Corporation (https://www.cakedc.com)
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
?>
|
||||
<?= __d('cake_contact_us', "Hi {0}", isset($first_name) ? $first_name : '') ?>,
|
||||
|
||||
<?= __d('cake_contact_us','We have received your message. We will be in touch soon.') ?>
|
||||
|
||||
<?= __d('cake_contact_us', 'Thank you') ?>,
|
||||
|
||||
Reference in New Issue
Block a user