summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2010-03-03 21:28:44 +0000
committerChristian Fowler <spider@viovio.com>2010-03-03 21:28:44 +0000
commitdd5e5df034969aabda4f9962cd8947833b1382df (patch)
treedbec539d1d5d3c0c7c1234d9b9d1de4bbbed0738 /templates
parent1a84350e8c0f6284731bef37d1e461e339185016 (diff)
downloadnewsletters-dd5e5df034969aabda4f9962cd8947833b1382df.tar.gz
newsletters-dd5e5df034969aabda4f9962cd8947833b1382df.tar.bz2
newsletters-dd5e5df034969aabda4f9962cd8947833b1382df.zip
only show unsubscribe all if there is more than one newsletter, tweaking formhelp notepre_ctype_desc_name_schmeachangePRE_CONTENTTYPE_NAME_PLURAL
Diffstat (limited to 'templates')
-rw-r--r--templates/user_register_inc.tpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/user_register_inc.tpl b/templates/user_register_inc.tpl
index 6bc1737..f78171c 100644
--- a/templates/user_register_inc.tpl
+++ b/templates/user_register_inc.tpl
@@ -21,9 +21,11 @@ for (var i = 0; i < checkboxes.length; i++){
{foreach from=$newsletters item='newsletter'}
<input type="checkbox" checked="true" name="subscribe[]" onclick="document.getElementById('unsubscribeall').checked=false;" value="{$newsletter.nl_id}"/><strong>{$newsletter.title}</strong><br/>
{/foreach}
- {formhelp note="Uncheck the boxes to opt-out of the specified newsletter."}
- <input type="checkbox" name="unsub_all" value="y" id="unsubscribeall" onclick="unsubscribe_all();"/><strong>Unsubscribe All</strong><br/>
- {formhelp note="Check this box to unsubscribe from all of the above newsletters."}
+ {formhelp note="Uncheck the box to opt-out of the specified newsletter."}
+ {if count($newsletters) > 1}
+ <input type="checkbox" name="unsub_all" value="y" id="unsubscribeall" onclick="unsubscribe_all();"/><strong>Unsubscribe All</strong><br/>
+ {formhelp note="Check this box to unsubscribe from all of the above newsletters."}
+ {/if}
{/forminput}
</div>
{/if}