10 <
form class=
"form contact" 11 action=
"<?= $block->escapeUrl($block->getFormAction()) ?>" 14 data-hasrequired=
"<?= $block->escapeHtmlAttr(__('* Required Fields')) ?>" 15 data-
mage-init=
'{"validation":{}}'>
16 <fieldset
class=
"fieldset">
17 <legend
class=
"legend"><span><?=
$block->escapeHtml(
__(
'Write Us')) ?></span></legend><br />
18 <div
class=
"field note no-label"><?=
$block->escapeHtml(
__(
'Jot us a note and we’ll get back to you as quickly as possible.')) ?></div>
19 <div
class=
"field name required">
20 <label
class=
"label" for=
"name"><span><?=
$block->escapeHtml(
__(
'Name')) ?></span></label>
22 <input
name=
"name" id=
"name" title=
"<?= $block->escapeHtmlAttr(__('Name')) ?>" value=
"<?= $block->escapeHtmlAttr($this->helper('Magento\Contact\Helper\Data')->getPostValue('name') ?: $this->helper('Magento\Contact\Helper\Data')->getUserName()) ?>" class=
"input-text" type=
"text" data-validate=
"{required:true}"/>
25 <div
class=
"field email required">
26 <label
class=
"label" for=
"email"><span><?=
$block->escapeHtml(
__(
'Email')) ?></span></label>
28 <input
name=
"email" id=
"email" title=
"<?= $block->escapeHtmlAttr(__('Email')) ?>" value=
"<?= $block->escapeHtmlAttr($this->helper('Magento\Contact\Helper\Data')->getPostValue('email') ?: $this->helper('Magento\Contact\Helper\Data')->getUserEmail()) ?>" class=
"input-text" type=
"email" data-validate=
"{required:true, 'validate-email':true}"/>
31 <div
class=
"field telephone">
32 <label
class=
"label" for=
"telephone"><span><?=
$block->escapeHtml(
__(
'Phone Number')) ?></span></label>
34 <input
name=
"telephone" id=
"telephone" title=
"<?= $block->escapeHtmlAttr(__('Phone Number')) ?>" value=
"<?= $block->escapeHtmlAttr($this->helper('Magento\Contact\Helper\Data')->getPostValue('telephone')) ?>" class=
"input-text" type=
"text" />
37 <div
class=
"field comment required">
38 <label
class=
"label" for=
"comment"><span><?=
$block->escapeHtml(
__(
'What’s on your mind?')) ?></span></label>
40 <textarea
name=
"comment" id=
"comment" title=
"<?= $block->escapeHtmlAttr(__('What’s on your mind?')) ?>" class=
"input-text" cols=
"5" rows=
"3" data-validate=
"{required:true}"><?=
$block->escapeHtml($this->helper(
'Magento\Contact\Helper\Data')->getPostValue(
'comment')) ?></textarea>
43 <?=
$block->getChildHtml(
'form.additional.info') ?>
45 <div
class=
"actions-toolbar">
47 <input type=
"hidden" name=
"hideit" id=
"hideit" value=
"" />
48 <button type=
"submit" title=
"<?= $block->escapeHtmlAttr(__('Submit')) ?>" class=
"action submit primary">
49 <span><?=
$block->escapeHtml(
__(
'Submit')) ?></span>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if( $form)() ?>< script > require(['jquery' mage mage
jquery extjs ext tree mage adminhtml form