tests
This commit is contained in:
@@ -8,9 +8,9 @@ $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 isset($fields['email']) && $fields['email'] ? $this->Form->control('email', ['required' => true]) : '';
|
||||
echo isset($fields['subject']) && $fields['subject'] ? $this->Form->control('subject', ['required' => true]) : '';
|
||||
echo $this->Form->control('message');
|
||||
echo $fields['captcha'] ? $this->Captcha->render(['placeholder' => __('Please solve the riddle')]) : '';
|
||||
echo isset($fields['captcha']) && $fields['captcha'] ? $this->Captcha->render(['placeholder' => __('Please solve the riddle')]) : '';
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user