16 class Container extends \Magento\Backend\Block\Widget\Container
56 protected $_template =
'Magento_Backend::widget/form/container.phtml';
64 if ($this->
hasData(self::PARAM_BLOCK_GROUP)) {
65 $this->_blockGroup = $this->
_getData(self::PARAM_BLOCK_GROUP);
67 if ($this->
hasData(self::PARAM_MODE)) {
68 $this->_mode = $this->
_getData(self::PARAM_MODE);
74 'label' =>
__(
'Back'),
75 'onclick' =>
'setLocation(\'' . $this->
getBackUrl() .
'\')
', 82 ['label
' => __('Reset
'), 'onclick
' => 'setLocation(window.location.href)
', 'class' => 'reset
'], 86 $objId = $this->getRequest()->getParam($this->_objectId); 92 'label
' => __('Delete
'), 94 'onclick
' => 'deleteConfirm(\
'' .
__(
95 'Are you sure you want to do this?' 104 'label
' => __('Save
'), 105 'class' => 'save primary
', 106 'data_attribute
' => [ 107 'mage-init
' => ['button
' => ['event
' => 'save
', 'target
' => '#edit_form
']], 119 protected function _prepareLayout() 121 if ($this->_blockGroup && $this->_controller && $this->_mode && !$this->_layout->getChildName( 122 $this->_nameInLayout, 126 $this->addChild('form', $this->_buildFormClassName()); 128 return parent::_prepareLayout(); 136 protected function _buildFormClassName() 138 return $this->nameBuilder->buildClassName( 139 [$this->_blockGroup, 'Block
', $this->_controller, $this->_mode, 'Form'] 148 public function getBackUrl() 150 return $this->getUrl('*
158 */
delete', [$this->_objectId => $this->getRequest()->getParam($this->_objectId)]); 167 public function getSaveUrl() 169 return $this->getFormActionUrl(); 177 public function getFormActionUrl() 179 if ($this->hasFormActionUrl()) { 180 return $this->getData('form_action_url
'); 182 return $this->getUrl('*
if( $form)() ?>< script > require(['jquery' mage mage
jquery extjs ext tree mage adminhtml form