Improved: Make Create Menu tab bar for Marketing Campaign consistent
Add a create Marketing Campaign tab bar in the main decorator to maintain the
consistency throughout the tab bar of Marketing Campaign.
Thanks: Avnindra Sharma for the report and patch, Devanshu Vyas for testing
@@ -52,6 +52,11 @@ under the License.
<if-has-permission permission="MARKETING" action="_VIEW"/>
</condition>
<widgets>
+ <container style="button-bar">
+ <link text="${uiLabelMap.MarketingCampaignCreate}" target="EditMarketingCampaign" style="buttontext create">
+ <parameter param-name="DONE_PAGE" from-field="donePage" />
+ </link>
+ </container>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
@@ -85,13 +90,6 @@ under the License.
<condition>
<not><if-empty field="marketingCampaign" /></not>
</condition>
- <widgets>
- <container style="button-bar button-style-1">
- <link text="${uiLabelMap.MarketingCampaignCreate}" target="EditMarketingCampaign" style="create">
- <parameter param-name="DONE_PAGE" from-field="donePage" />
- </link>
- </container>
- </widgets>
</section>
<screenlet>
<include-form name="EditMarketingCampaign" location="component://marketing/widget/MarketingCampaignForms.xml" />
@@ -117,11 +115,6 @@ under the License.
<container style="page-title">
<label text="${uiLabelMap[titleProperty]}" />
</container>
- <container style="button-bar">
- <link text="${uiLabelMap.MarketingCampaignCreate}" target="EditMarketingCampaign" style="buttontext create">
- <parameter param-name="DONE_PAGE" from-field="donePage" />
- </link>
- </container>
<screenlet>
<include-form name="ListMarketingCampaign" location="component://marketing/widget/MarketingCampaignForms.xml" />
</screenlet>
