root/branches/athena/default_templates/comment_form.mtml @ 1092

Revision 1092, 3.6 kB (checked in by hachi, 2 years ago)

Merging release-15 to athena branch. svn merge -r59987:60375 http://svn.sixapart.com/repos/eng/movabletype/branches/release-15 .

  • Property svn:executable set to *
Line 
1<MTEntryIfCommentsOpen>
2<div class="comments-open" id="comments-open">
3    <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2>
4    <div class="comments-open-content">
5    <MTIfRegistrationAllowed>
6            <div id="comment-form-external-auth">
7                <script type="text/javascript">
8                <!--
9                <MTIf name="comment_preview_template">is_preview = true;</MTIf>
10                writeCommenterGreeting(commenter_name, <$MTEntryID$>, <$MTEntryBlogID$>, commenter_id, commenter_url);
11                //-->
12                </script>
13            </div>
14    </MTIfRegistrationAllowed>
15        <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" id="comments-form" onsubmit="if (this.bakecookie.checked) rememberMe(this)">
16            <input type="hidden" name="static" value="1" />
17            <input type="hidden" name="entry_id" value="<$MTEntryID$>" />
18            <input type="hidden" name="__lang" value="<$MTBlogLanguage$>" />
19            <div id="comments-open-data">
20                <div id="comment-form-name">
21                    <label for="comment-author"><__trans phrase="Name"></label>
22                    <input id="comment-author" name="author" size="30" value="<MTIf name="comment_preview_template"><$MTCommentAuthor encode_html="1"$></MTIf>" />
23                </div>
24                <div id="comment-form-email">
25                    <label for="comment-email"><__trans phrase="Email Address"></label>
26                    <input id="comment-email" name="email" size="30" value="<MTIf name="comment_preview_template"><$MTCommentEmail encode_html="1"$></MTIf>" />
27                </div>
28                <div id="comment-form-url">
29                    <label for="comment-url"><__trans phrase="URL"></label>
30                    <input id="comment-url" name="url" size="30" value="<MTIf name="comment_preview_template"><$MTCommentURL encode_html="1"$></MTIf>" />
31                </div>
32                <div id="comment-form-remember-me">
33                    <label for="comment-bake-cookie"><input type="checkbox" id="comment-bake-cookie" name="bakecookie" onclick="if (!this.checked) forgetMe(document.comments_form)" value="1" />
34                        <__trans phrase="Remember personal info?"></label>
35                </div>
36            </div>
37            <div id="comments-open-text">
38                <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label>
39                <textarea id="comment-text" name="text" rows="15" cols="50"><MTIf name="comment_preview_template"><$MTCommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></MTIf></textarea>
40            </div>
41            <MTIfNonEmpty tag="MTCaptchaFields">
42            <MTIfCommentsAccepted><MTIfRegistrationAllowed><MTElse><$MTCaptchaFields$></MTIfRegistrationAllowed></MTIfCommentsAccepted>
43            <div id="comments-open-captcha">
44            </div>
45            </MTIfNonEmpty>
46            <div id="comments-open-footer">
47                <input type="submit" accesskey="v" name="preview" id="comment-preview" value="<__trans phrase="Preview">" />
48                <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" />
49    <MTIf name="comment_preview_template">
50                <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$MTEntryPermalink$>'" />
51    </MTIf>
52            </div>
53        </form>
54    </div>
55</div>
56</MTEntryIfCommentsOpen>
Note: See TracBrowser for help on using the browser.