Last active
August 29, 2015 14:05
-
-
Save TCotton/3a43a0ad8ade68cd0fc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#import "/spring.ftl" as spring /> | |
<#if dataModel?has_content> | |
<#list dataModel as campaign> | |
<#assign access = "" /> | |
<#if campaign.createdBy != genericModel.userEmail> | |
<#assign access = "disabled" /> | |
</#if> | |
<#assign status = ""> | |
<#if campaign.status = "ACTIVE_LIVE"> | |
<#assign status = "checked"> | |
</#if> | |
<tr> | |
<td data-title="Select"><input id="campaignCheckbox_${campaign.id}" type="checkbox" name="id[${campaign_index}]" value="${campaign.id}" ${access} /><label | |
for="campaignCheckbox_${campaign.id}"></label></td> | |
<#if access = "disabled" > | |
<th scope="row" data-title="Campaign">${campaign.name}</th> | |
<#else> | |
<th scope="row" data-title="Campaign"><a href="<@spring.url '/private/pro/'+campaign.id+'/show_agreements.html'/>">${campaign.name}</a></th> | |
</#if> | |
<td data-title="Created By">${campaign.createdBy}</td> | |
<td data-title="Date Last Modified">${campaign.lastModified}</td> | |
<td data-title="Active"><span><input id="activeCampaign__${campaign.id}" type="checkbox" name="status[${campaign_index}]" value="1" ${status} ${access} /> | |
<label for="activeCampaign__${campaign.id}"></label></span></td> | |
<td data-title="Analytics"><a href="<@spring.url '/private/pro/'+campaign.id+'/show_product_analytics.html'/>">View</a></td> | |
</tr> | |
</#list> | |
</#if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment