Skip to content

Commit 40f35ee

Browse files
Fix static
1 parent 5f6242a commit 40f35ee

File tree

1 file changed

+31
-5
lines changed
  • app/code/Magento/Contact/view/frontend/templates

1 file changed

+31
-5
lines changed

app/code/Magento/Contact/view/frontend/templates/form.phtml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,55 @@ $viewModel = $block->getViewModel();
1717
data-mage-init='{"validation":{}}'>
1818
<fieldset class="fieldset">
1919
<legend class="legend"><span><?= $block->escapeHtml(__('Write Us')) ?></span></legend><br />
20-
<div class="field note no-label"><?= $block->escapeHtml(__('Jot us a note and we’ll get back to you as quickly as possible.')) ?></div>
20+
<div class="field note no-label">
21+
<?= $block->escapeHtml(__('Jot us a note and we’ll get back to you as quickly as possible.')) ?>
22+
</div>
2123
<div class="field name required">
2224
<label class="label" for="name"><span><?= $block->escapeHtml(__('Name')) ?></span></label>
2325
<div class="control">
24-
<input name="name" id="name" title="<?= $block->escapeHtmlAttr(__('Name')) ?>" value="<?= $block->escapeHtmlAttr($viewModel->getUserName()) ?>" class="input-text" type="text" data-validate="{required:true}"/>
26+
<input name="name"
27+
id="name"
28+
title="<?= $block->escapeHtmlAttr(__('Name')) ?>"
29+
value="<?= $block->escapeHtmlAttr($viewModel->getUserName()) ?>"
30+
class="input-text"
31+
type="text"
32+
data-validate="{required:true}"/>
2533
</div>
2634
</div>
2735
<div class="field email required">
2836
<label class="label" for="email"><span><?= $block->escapeHtml(__('Email')) ?></span></label>
2937
<div class="control">
30-
<input name="email" id="email" title="<?= $block->escapeHtmlAttr(__('Email')) ?>" value="<?= $block->escapeHtmlAttr($viewModel->getUserEmail()) ?>" class="input-text" type="email" data-validate="{required:true, 'validate-email':true}"/>
38+
<input name="email"
39+
id="email"
40+
title="<?= $block->escapeHtmlAttr(__('Email')) ?>"
41+
value="<?= $block->escapeHtmlAttr($viewModel->getUserEmail()) ?>"
42+
class="input-text"
43+
type="email"
44+
data-validate="{required:true, 'validate-email':true}"/>
3145
</div>
3246
</div>
3347
<div class="field telephone">
3448
<label class="label" for="telephone"><span><?= $block->escapeHtml(__('Phone Number')) ?></span></label>
3549
<div class="control">
36-
<input name="telephone" id="telephone" title="<?= $block->escapeHtmlAttr(__('Phone Number')) ?>" value="<?= $block->escapeHtmlAttr($viewModel->getUserTelephone()) ?>" class="input-text" type="text" />
50+
<input name="telephone"
51+
id="telephone"
52+
title="<?= $block->escapeHtmlAttr(__('Phone Number')) ?>"
53+
value="<?= $block->escapeHtmlAttr($viewModel->getUserTelephone()) ?>"
54+
class="input-text"
55+
type="text" />
3756
</div>
3857
</div>
3958
<div class="field comment required">
4059
<label class="label" for="comment"><span><?= $block->escapeHtml(__('What’s on your mind?')) ?></span></label>
4160
<div class="control">
42-
<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($viewModel->getUserComment()) ?></textarea>
61+
<textarea name="comment"
62+
id="comment"
63+
title="<?= $block->escapeHtmlAttr(__('What’s on your mind?')) ?>"
64+
class="input-text"
65+
cols="5"
66+
rows="3"
67+
data-validate="{required:true}"><?= $block->escapeHtml($viewModel->getUserComment()) ?>
68+
</textarea>
4369
</div>
4470
</div>
4571
<?= $block->getChildHtml('form.additional.info') ?>

0 commit comments

Comments
 (0)