11 <?=
$block->getFormInitScripts() ?>
12 <?php
if (
$block->getButtonsHtml(
'header')): ?>
13 <div
class=
"page-form-actions" <?=
$block->getUiId(
'content-header') ?>><?=
$block->getButtonsHtml(
'header') ?></div>
15 <?php
if (
$block->getButtonsHtml(
'toolbar')): ?>
16 <div
class=
"page-main-actions">
17 <div
class=
"page-actions">
18 <div
class=
"page-actions-buttons">
19 <?=
$block->getButtonsHtml(
'toolbar') ?>
24 <?=
$block->getFormHtml() ?>
25 <?php
if (
$block->hasFooterButtons()): ?>
26 <div
class=
"content-footer">
27 <p
class=
"form-buttons"><?=
$block->getButtonsHtml(
'footer') ?></p>
34 'mage/backend/validation' 37 $(
'#edit_form').
form()
39 validationUrl:
'<?= /* @escapeNotVerified */ $block->getValidationUrl() ?>',
40 highlight:
function(element) {
41 var detailsElement = $(element).closest(
'details');
42 if (detailsElement.length && detailsElement.is(
'.details')) {
43 var summaryElement = detailsElement.find(
'summary');
44 if (summaryElement.length && summaryElement.attr(
'aria-expanded') ===
"false") {
45 summaryElement.trigger(
'click');
48 $(element).trigger(
'highlight.validate');
54 <?=
$block->getFormScripts() ?>
jquery extjs ext tree mage adminhtml form