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