first real commit in standalone repo
This commit is contained in:
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')]) : '';
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user