Magento 2.0管理员编辑表单内容显示在左侧

时间:2018-08-03 11:25:27

标签: magento magento2

在magento 2.0.18中,我为管理员创建了一个模块,需要在其中显示表单。但是它没有正确显示,并且表单未提交。 屏幕截图 enter image description here

布局:

<?xml version="1.0"?>
  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
<head>
    <css src="jquery/fileUploader/css/jquery.fileupload-ui.css"/>
</head>
<update handle="editor"/>
<body>
    <referenceContainer name="content">
        <block class="Question\Submit\Block\Adminhtml\Grid\Edit" name="question_grid_edit"/>
        <block class="Question\Submit\Block\Adminhtml\Grid\Edit\Tab\Main" name="question_grid_edit_tab_main"/>

    </referenceContainer>
    <referenceContainer name="left">
        <block class="Question\Submit\Block\Adminhtml\Grid\Edit\Tabs" name="question_grid_edit_tabs">
            <block class="Question\Submit\Block\Adminhtml\Grid\Edit\Tab\Main" name="question_grid_edit_tab_main"/>
            <action method="addTab">
            <argument name="name" xsi:type="string">main_section</argument>
            <argument name="block" xsi:type="string">question_grid_edit_tab_main</argument>
            </action>
        </block>
    </referenceContainer>
</body>

0 个答案:

没有答案