<#macro getLabelFromList code list > <#list list as refItem> <#if refItem.code?string == code?string > ${refItem.name}

#i18n{broadcastproxy.myDashboard.title}

<@messages errors=errors /> <@messages infos=infos /> Subscription list for ${user.email!''} (${broadcastproxy!'?'}) :
<@row> <@columns> <#list subscription_feeds_by_type?keys as feeds_type >

#i18n{broadcastproxy.dashboard.listUserSubscriptionsTitle} (<@getLabelFromList feeds_type subscription_types />)

<@formGroup>
    <#list subscription_feeds_by_type[feeds_type] as feed > <#assign activeSub = false > <#if subscription_list_by_type[feeds_type]?hasContent > <#list subscription_list_by_type[feeds_type] as sub> <#if sub.id = feed.id && sub.type = feed.type > <#assign userSub = sub > <#assign activeSub = userSub.isActive( ) > <#if sub.data?hasContent> <#assign userSubData = sub.data?keys >
  • checked="checked" class="subscriptionCheckBox" /> ${feed.name} <#if feed.data?hasContent && 0 < feed.data?size >
    <#assign refThemeList = feed.data?keys />
      <#list refThemeList as theme >
    • <#assign check=""> <#if userSubData?hasContent> <#list userSubData as activeTheme> <#if activeTheme == theme > <#assign check="checked=checked"> ${feed.data[theme]}
<@formGroup> <#if subscription_feeds_by_type?hasContent > #i18n{portal.util.labelModify}