Skip to content

Commit

Permalink
Merge pull request #2 from ecomteck/dev
Browse files Browse the repository at this point in the history
update Acl and language pack of module
  • Loading branch information
ecomteck authored Aug 4, 2019
2 parents c11f228 + a78ab75 commit ce900d1
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Requests/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ public function execute()
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Ecomteck_AdvancedContact::requests');
return $this->_authorization->isAllowed('Ecomteck_AdvancedContact::request_save');
}
}
44 changes: 44 additions & 0 deletions etc/acl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0"?>
<!--
/**
* Ecomteck
*
* NOTICE OF LICENSE
*
* This source file is subject to the ecomteck.com license that is
* available through the world-wide-web at this URL:
* https://ecomteck.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Ecomteck
* @package Ecomteck_AdvancedContact
* @copyright Copyright (c) 2019 Ecomteck (https://ecomteck.com/)
* @license https://ecomteck.com/LICENSE.txt
*/
-->
<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="Magento_Backend::content">
<resource id="Ecomteck_AdvancedContact::section" title="Advanced Contact">
<resource id="Ecomteck_AdvancedContact::requests" title="Requests" translate="title" sortOrder="10">
<resource id="Ecomteck_AdvancedContact::request_save" title="Save" sortOrder="10" />
</resource>
</resource>
</resource>
<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="Magento_Contact::advanced_contact" title="Advanced Contact Configuration" />
</resource>
</resource>
</resource>
</resource>
</resources>
</acl>
</config>
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<section id="contact" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Contacts</label>
<tab>general</tab>
<resource>Magento_Contact::contact</resource>
<resource>Magento_Contact::advanced_contact</resource>
<group id="advanced_contact" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced Contact</label>
<field id="advanced_contact_active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
Expand Down
41 changes: 41 additions & 0 deletions i18n/en_US.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
"Update Request","Update Request"
"Update and Continue Edit","Update and Continue Edit"
"Edit Request '%1'","Edit Request '%1'"
"New Request","New Request"
Contact,Contact
Info,Info
Closed,Closed
Yes,Yes
No,No
Created,Created
Updated,Updated
Request,Request
Key,Key
Label,Label
"Field Class","Field Class"
Type,Type
Add,Add
Edit,Edit
Saved.,Saved.
"Something went wrong.","Something went wrong."
"Thanks for contacting us with your comments and questions. We'll respond to you very soon.","Thanks for contacting us with your comments and questions. We'll respond to you very soon."
Customer,Customer
"Could not get any fields form: %1","Could not get any fields form: %1"
"Could not save and sent contact: %1","Could not save and sent contact: %1"
"Write Us","Write Us"
"Jot us a note and we’ll get back to you as quickly as possible.","Jot us a note and we’ll get back to you as quickly as possible."
Submit,Submit
Requests,Requests
Contacts,Contacts
"Advanced Contact","Advanced Contact"
Active,Active
Fields,Fields
"Email Template","Email Template"
"Send To","Send To"
"Manager Email to Receive New Requests","Manager Email to Receive New Requests"
20,20
30,30
50,50
100,100
200,200
"Contact ID","Contact ID"

0 comments on commit ce900d1

Please sign in to comment.