root/branches/release-29/tmpl/cms/dialog/entry_notify.tmpl @ 1309

Revision 1309, 3.3 kB (checked in by ddavis, 23 months ago)

standarize js comment tag escape. BugzID:58265

  • Property svn:keywords set to Id Revision
Line 
1<mt:setvar name="page_title" value="<__trans phrase="Send a Notification">">
2<mt:setvarblock name="html_head" append="1">
3<script type="text/javascript">
4/* <![CDATA[ */
5function doValidateNotifyRecips(f) {
6    if (f.send_notify_list && f.send_notify_list.checked)
7        return true
8
9    if (f.send_notify_emails && !f.send_notify_emails.value) {
10        alert('<__trans phrase="You must specify at least one recipient." escape="singlequotes">');
11        return false;
12    }
13
14    return true;
15}
16/* ]]> */
17</script>
18</mt:setvarblock>
19<mt:include name="dialog/header.tmpl">
20
21<p><__trans phrase="Your blog's name, this entry's title and a link to view it will be sent in the notification.  Additionally, you can add a  message, include an excerpt of the entry and/or send the entire entry."></p>
22
23<form name="notify_form" id="notify_form" method="post" action="<mt:var name="script_url">" target="_top">
24    <input type="hidden" name="__mode" value="send_notify" />
25    <input type="hidden" name="entry_id" value="<mt:var name="entry_id">" />
26    <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
27
28    <mtapp:setting
29        id="send_notify_list"
30        label="<__trans phrase="Recipients">"
31        label_class="top-label"
32        show_hint="1"
33        hint="<__trans phrase="Enter email addresses on separate lines, or comma separated.">">
34        <ul>
35            <li><input type="checkbox" name="send_notify_list" id="send_notify_list" value="1" class="cb" checked="checked" /> <label for="send_notify_list"><__trans phrase="All addresses from Address Book"></label></li>
36            <li><textarea name="send_notify_emails" class="full-width lines-4" id="send_notify_emails" cols="" rows="3"></textarea></li>
37        </ul>
38    </mtapp:setting>
39    <mtapp:setting
40        id="message"
41        label="<__trans phrase="Optional Message">"
42        label_class="top-label">
43        <textarea name="message" id="message" class="full-width lines-5" cols="" rows="4"><mt:var name="notification" escape="html"></textarea>
44    </mtapp:setting>
45    <mtapp:setting
46        id="send_content"
47        label="<__trans phrase="Optional Content">"
48        label_class="top-label"
49        hint=""
50        show_hint="0">
51        <ul>
52            <li><input type="checkbox" name="send_excerpt" id="send_excerpt" value="1" /> <label for="send_excerpt"><__trans phrase="Entry Excerpt"></label></li>
53            <li><input type="checkbox" name="send_body" id="send_body" value="1" /> <label for="send_body"><__trans phrase="Entry Body"> <span class="disabled"><__trans phrase="(Entry Body will be sent without any text formatting applied)"></span></label></li>
54        </ul>
55    </mtapp:setting>
56
57    <div class="actions-bar">
58        <div class="actions-bar-inner pkg actions">
59            <button
60                onclick="return doValidateNotifyRecips(this.form);"
61                type="submit"
62                accesskey="s"
63                title="<__trans phrase="Send notification (s)">"
64                class="primary-button"
65                ><__trans phrase="Send"></button>
66            <button
67                onclick="closeDialog(); return false"
68                type="submit"
69                accesskey="x"
70                title="<__trans phrase="Cancel (x)">"
71                ><__trans phrase="Cancel"></button>
72        </div>
73    </div>
74</form>
75<mt:include name="dialog/footer.tmpl">
Note: See TracBrowser for help on using the browser.