init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
|
||||
<acl>
|
||||
<resources>
|
||||
<resource id="Magento_Backend::admin">
|
||||
<resource id="Esun_ImageManager::esun" title="Esun" sortOrder="85">
|
||||
<resource id="Esun_ContactPopup::submissions" title="Contact Messages" sortOrder="80">
|
||||
<resource id="Esun_ContactPopup::delete" title="Delete Contact Messages" sortOrder="10"/>
|
||||
</resource>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add id="Esun_ContactPopup::submissions"
|
||||
title="Contact Messages"
|
||||
module="Esun_ContactPopup"
|
||||
sortOrder="80"
|
||||
parent="Esun_ImageManager::esun"
|
||||
action="esun_contact_popup/submission/index"
|
||||
resource="Esun_ContactPopup::submissions"/>
|
||||
</menu>
|
||||
</config>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework/App/etc/routes.xsd">
|
||||
<router id="admin">
|
||||
<route id="esun_contact_popup" frontName="esun_contact_popup">
|
||||
<module name="Esun_ContactPopup" before="Magento_Backend"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="esun_contact_popup_submission" resource="default" engine="innodb" comment="eSUN Contact Popup Submissions">
|
||||
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
|
||||
<column xsi:type="varchar" name="company" nullable="false" length="255" default="" comment="Company Name"/>
|
||||
<column xsi:type="varchar" name="question_category" nullable="false" length="64" comment="Question Category"/>
|
||||
<column xsi:type="varchar" name="name" nullable="false" length="255" comment="Name"/>
|
||||
<column xsi:type="varchar" name="email" nullable="false" length="255" comment="Email"/>
|
||||
<column xsi:type="varchar" name="country" nullable="false" length="255" comment="Country"/>
|
||||
<column xsi:type="text" name="details" nullable="false" comment="Details"/>
|
||||
<column xsi:type="varchar" name="mail_status" nullable="false" length="32" default="pending" comment="Mail Status"/>
|
||||
<column xsi:type="text" name="mail_error" nullable="true" comment="Mail Error"/>
|
||||
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY"><column name="entity_id"/></constraint>
|
||||
<index referenceId="ESUN_CONTACT_POPUP_SUBMISSION_EMAIL" indexType="btree"><column name="email"/></index>
|
||||
<index referenceId="ESUN_CONTACT_POPUP_SUBMISSION_CREATED_AT" indexType="btree"><column name="created_at"/></index>
|
||||
</table>
|
||||
</schema>
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"esun_contact_popup_submission": {
|
||||
"column": {
|
||||
"entity_id": true,
|
||||
"company": true,
|
||||
"question_category": true,
|
||||
"name": true,
|
||||
"email": true,
|
||||
"country": true,
|
||||
"details": true,
|
||||
"mail_status": true,
|
||||
"mail_error": true,
|
||||
"created_at": true
|
||||
},
|
||||
"index": {
|
||||
"ESUN_CONTACT_POPUP_SUBMISSION_EMAIL": true,
|
||||
"ESUN_CONTACT_POPUP_SUBMISSION_CREATED_AT": true
|
||||
},
|
||||
"constraint": {"PRIMARY": true}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
|
||||
<arguments>
|
||||
<argument name="collections" xsi:type="array">
|
||||
<item name="esun_contact_popup_submission_listing_data_source" xsi:type="string">EsunContactPopupSubmissionGridCollection</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<virtualType name="EsunContactPopupSubmissionGridCollection"
|
||||
type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
|
||||
<arguments>
|
||||
<argument name="mainTable" xsi:type="string">esun_contact_popup_submission</argument>
|
||||
<argument name="resourceModel" xsi:type="string">Esun\ContactPopup\Model\ResourceModel\Submission</argument>
|
||||
</arguments>
|
||||
</virtualType>
|
||||
</config>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="standard">
|
||||
<route id="contact_popup" frontName="contact-popup">
|
||||
<module name="Esun_ContactPopup"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Esun_ContactPopup">
|
||||
<sequence>
|
||||
<module name="Magento_Contact"/>
|
||||
<module name="Magento_Directory"/>
|
||||
<module name="Magento_Ui"/>
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
Reference in New Issue
Block a user