summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-05-04 16:40:20 +0000
committerChristian Fowler <spider@viovio.com>2007-05-04 16:40:20 +0000
commit6f08113c0bd6d49d8417e214031c839aedfc2ca0 (patch)
treead6854aaf41040952b0a0fc3225c2bee872be786 /templates
parent6706642dae930d27f2efb7b99a20d9550a8f4c9d (diff)
downloadnewsletters-6f08113c0bd6d49d8417e214031c839aedfc2ca0.tar.gz
newsletters-6f08113c0bd6d49d8417e214031c839aedfc2ca0.tar.bz2
newsletters-6f08113c0bd6d49d8417e214031c839aedfc2ca0.zip
add test_mode to enable resending message, hide validated only option for now
Diffstat (limited to 'templates')
-rw-r--r--templates/mail_edition_header.tpl2
-rw-r--r--templates/send_newsletters.tpl15
-rw-r--r--templates/view_edition.tpl2
3 files changed, 14 insertions, 5 deletions
diff --git a/templates/mail_edition_header.tpl b/templates/mail_edition_header.tpl
index 1765d77..da9cf8d 100644
--- a/templates/mail_edition_header.tpl
+++ b/templates/mail_edition_header.tpl
@@ -8,3 +8,5 @@
{/if}
</div>
+ <div><small>{tr}If you have trouble reading this email,{/tr} <a href="{$gContent->getDisplayUrl()}">{tr}read it on the web{/tr}</a></small></div>
+
diff --git a/templates/send_newsletters.tpl b/templates/send_newsletters.tpl
index 456c263..06c3217 100644
--- a/templates/send_newsletters.tpl
+++ b/templates/send_newsletters.tpl
@@ -20,7 +20,8 @@
{if $smarty.request.emited eq 'y'}
{tr}The newsletter was sent to {$sent} email addresses{/tr}
{elseif $smarty.request.preview}
- <input type="hidden" name="validated" value="{$validated}" />
+ <input type="hidden" name="validated" value="{$smarty.request.validated}" />
+ <input type="hidden" name="test_mode" value="{$smarty.request.test_mode}" />
{jstabs}
{jstab title="Preview Newsletter"}
{legend legend="Preview Newsletter"}
@@ -65,12 +66,20 @@
</div>
<div class="row">
+ {formlabel label="Send Test"}
+ {forminput}
+ <input type="checkbox" name="test_mode" />
+ {formhelp note="This will enable you to send the newsletter to the same recipients again."}
+ {/forminput}
+ </div>
+{*
+ <div class="row">
{formlabel label="Only send to validated emails"}
{forminput}
- <input type="checkbox" name="validated" "checked" />
+ <input type="checkbox" name="validated" checked="checked" />
{/forminput}
</div>
-
+*}
<div class="row submit">
<input type="submit" name="preview" value="{tr}Preview{/tr}" />
</div>
diff --git a/templates/view_edition.tpl b/templates/view_edition.tpl
index 50a023a..24ce74c 100644
--- a/templates/view_edition.tpl
+++ b/templates/view_edition.tpl
@@ -11,8 +11,6 @@
<a href="{$smarty.const.NEWSLETTERS_PKG_URL}edition.php?edition_id={$gContent->mEditionId}&amp;remove=1">{biticon ipackage="icons" iname="edit-delete" iexplain="delete"}</a>
{/if}
</div>
- {else}
- <div><small>{tr}This newsletter can be viewed on the web at{/tr} <a href="{$gContent->getDisplayUrl()}">{$gContent->getDisplayUrl()}</a></small></div>
{/if}
<div class="header">