0b4d77b6 by acetousk

Add resourceId to screen and entity

1 parent c79575b9
...@@ -14,4 +14,9 @@ along with this software (see the LICENSE.md file). If not, see ...@@ -14,4 +14,9 @@ along with this software (see the LICENSE.md file). If not, see
14 --> 14 -->
15 <entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/entity-definition-3.xsd"> 15 <entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/entity-definition-3.xsd">
16 16
17 <extend-entity entity-name="ProductStoreEmail" package="mantle.product.store">
18 <field name="resourceId" type="id"/>
19 <relationship type="one" related="mantle.resource.DbResource" short-alias="dbResource"/>
20 </extend-entity>
21
17 </entities> 22 </entities>
......
...@@ -15,8 +15,8 @@ along with this software (see the LICENSE.md file). If not, see ...@@ -15,8 +15,8 @@ along with this software (see the LICENSE.md file). If not, see
15 <screen-extend xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://moqui.org/xsd/xml-screen-3.xsd"> 15 <screen-extend xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://moqui.org/xsd/xml-screen-3.xsd">
16 16
17 <form-list name="StoreEmailsForm"> 17 <form-list name="StoreEmailsForm">
18 <field name="editEmailTemplate"><default-field> 18 <field name="editEmailTemplate" align="center"><default-field>
19 <link url="/mjml" url-type="plain" text="Edit Email Template"/> 19 <link url="/mjml" parameter-map="[resourceId:resourceId]" url-type="plain" text="Edit Template"/>
20 </default-field></field> 20 </default-field></field>
21 </form-list> 21 </form-list>
22 22
......