Author: wang

magento 2

Layouts and forms on Magento 2 admin

http://www.maximehuran.fr/en/layouts-and-forms-on-magento-2-admin/ We have to create a layout before create the form : app/code/Maxime/Jobs/view/adminhtml/layout/jobs_department_edit.xml Put this little content : <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <update handle="editor"/> <body> <referenceContainer name="content"> <block class="MaximeJobsBlockAdminhtmlDepartmentEdit" name="jobs_department_edit"/> </referenceContainer> </body> </page> We define a block inside, so...