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>
|
||||
Reference in New Issue
Block a user