CakeContactUs/templates/element/ContactUsFormSubmissions/form.php

17 lines
536 B
PHP
Raw Normal View History

2025-01-10 07:47:18 +00:00
<?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')]) : '';
?>