File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
app/code/Magento/Email/view/adminhtml/templates/template Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use Magento \Framework \App \TemplateTypesInterface ;
8
8
9
+ // phpcs:disable Magento2.Files.LineLength
10
+
9
11
/** @var $block \Magento\Email\Block\Adminhtml\Template\Edit */
10
12
?>
11
- <?php if (!$ block ->getEditMode ()) : ?>
13
+ <?php if (!$ block ->getEditMode ()): ?>
12
14
<form action="<?= $ block ->escapeUrl ($ block ->getLoadUrl ()) ?> " method="post" id="email_template_load_form">
13
15
<?= $ block ->getBlockHtml ('formkey ' ) ?>
14
16
<fieldset class="admin__fieldset form-inline">
@@ -17,14 +19,14 @@ use Magento\Framework\App\TemplateTypesInterface;
17
19
<label class="admin__field-label" for="template_select"><span><?= $ block ->escapeHtml (__ ('Template ' )) ?> </span></label>
18
20
<div class="admin__field-control">
19
21
<select id="template_select" name="code" class="admin__control-select required-entry">
20
- <?php foreach ($ block ->getTemplateOptions () as $ group => $ options ) : ?>
21
- <?php if ($ group ) : ?>
22
+ <?php foreach ($ block ->getTemplateOptions () as $ group => $ options ): ?>
23
+ <?php if ($ group ): ?>
22
24
<optgroup label="<?= $ block ->escapeHtmlAttr ($ group ) ?> ">
23
25
<?php endif ; ?>
24
- <?php foreach ($ options as $ option ) : ?>
26
+ <?php foreach ($ options as $ option ): ?>
25
27
<option value="<?= $ block ->escapeHtmlAttr ($ option ['value ' ]) ?> "<?= /* @noEscape */ $ block ->getOrigTemplateCode () == $ option ['value ' ] ? ' selected="selected" ' : '' ?> ><?= $ block ->escapeHtml ($ option ['label ' ]) ?> </option>
26
28
<?php endforeach ; ?>
27
- <?php if ($ group ) : ?>
29
+ <?php if ($ group ): ?>
28
30
</optgroup>
29
31
<?php endif ; ?>
30
32
<?php endforeach ; ?>
You can’t perform that action at this time.
0 commit comments