root/trunk/Sandbox/plugins/Sandbox/templates/sandbox/comment_preview.mtml @ 1127

Revision 1127, 6.0 kB (checked in by bsmith, 14 months ago)

bugzid:82056

Adding class "form-submit" for parity with Sandbox for WP (along side id "form-submit" which is required by MT javascript to show/hide buttons when user is logged in)

  • Property svn:executable set to *
Line 
1<mt:SetVarBlock name="title"><__trans phrase="[_1] - Comment Preview" params="<$mt:BlogName encode_html="1"$>"></mt:SetVarBlock>
2
3<$mt:Include module="<__trans phrase="Header">"$>
4
5<div id="container">
6    <div id="content">
7
8        <div id="post-0" class="page">
9            <h2 class="entry-title"><__trans phrase="Previewing your Comment"></h2>
10            <div id="comments">
11
12                <div id="comments-list" class="comments">
13                    <ol>
14                        <li id="comment-<$mt:CommentID$>" class="<$mt:SandboxCommentClass$>">
15                            <div class="comment-author vcard">
16            <mt:IfCommentParent>
17                                <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<span class="fn n"><$mt:CommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>">
18            <mt:Else>
19                                <span class="fn n"><$mt:CommentAuthorLink$></span>
20            </mt:IfCommentParent>
21                            </div>
22                            <div class="comment-meta"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>"><__trans phrase="Posted [_1] at [_2]" params="<$mt:CommentDate format="%x"$>%%<$mt:CommentDate format="%X"$>"></abbr> <span class="meta-sep">|</span> <a href="#comment-<$mt:CommentID$>" title="<__trans phrase="Permalink to this comment">"><__trans phrase="Permalink"></a> <span class="meta-sep">|</span> <mt:IfCommentsAccepted><$mt:CommentReplyToLink$></mt:IfCommentsAccepted></div>
23                            <$mt:CommentBody$>
24                        </li>
25                    </ol>
26                </div><!-- #comments-list .comments -->
27
28        <mt:IfCommentsAccepted>
29                <div id="respond">
30                    <h3><__trans phrase="Post a Comment"></h3>
31                    <div id="comment-greeting"></div>
32                    <div class="formcontainer">
33                        <form id="commentform" action="<$mt:CGIPath$><$mt:CommentScript$>" method="post" name="comments_form" onsubmit="return mtCommentOnSubmit(this)">
34                            <input type="hidden" name="static" value="1" />
35                            <input type="hidden" name="entry_id" value="<$mt:EntryID$>" />
36                            <input type="hidden" name="__lang" value="<$mt:BlogLanguage$>" />
37                            <input type="hidden" name="parent_id" value="<$mt:CommentParentID$>" id="comment-parent-id" />
38                            <input type="hidden" name="armor" value="1" />
39                            <input type="hidden" name="preview" value="" />
40                            <input type="hidden" name="sid" value="" />
41                            <input type="hidden" name="bakecookie" value="1" />
42
43                            <div id="comment-form-commenter">
44                                <div class="form-label"><label for="author"><__trans phrase="Name"></label> <span class="required">*</span></div>
45                                <div class="form-input"><input id="author" class="required text" name="author" type="text" value="<mt:If name="comment_preview"><$mt:CommentAuthor encode_html="1"$></mt:If>" size="30" tabindex="3" onfocus="mtCommentFormOnFocus()" /></div>
46
47                                <div class="form-label"><label for="email"><__trans phrase="Email"></label> <span class="required">*</span></div>
48                                <div class="form-input"><input id="email" class="required text" name="email" type="text" value="<mt:If name="comment_preview"><$mt:CommentEmail encode_html="1"$></mt:If>" size="30" tabindex="4" onfocus="mtCommentFormOnFocus()" /></div>
49
50                                <div class="form-label"><label for="url"><__trans phrase="Website"></label></div>
51                                <div class="form-input"><input id="url" class="text" name="url" type="text" value="<mt:If name="comment_preview"><$mt:CommentURL encode_html="1"$></mt:If>" size="30" maxlength="50" tabindex="5" onfocus="mtCommentFormOnFocus()" /></div>
52                            </div>
53                            <div id="comment-form-reply" style="display:none">
54                                <input type="checkbox" id="comment-reply" name="comment_reply" value="" onclick="mtSetCommentParentID()" />
55                                <label for="comment-reply" id="comment-reply-label"></label>
56                            </div>
57
58                            <div class="form-label"><label for="comment"><__trans phrase="Comments"> <em><mt:IfAllowCommentHTML><__trans phrase="You may use HTML tags for style"></mt:IfAllowCommentHTML></em></label></div>
59                            <div class="form-textarea"><textarea id="comment" class="required text" name="text" cols="45" rows="8" tabindex="6" onfocus="mtCommentFormOnFocus()"><mt:If name="comment_preview"><$mt:CommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></mt:If></textarea></div>
60
61                            <div id="comments-form-captcha"></div>
62
63                            <div id="form-submit" class="form-submit">
64                                <input type="submit" accesskey="s" name="post" id="comment-submit" class="button" value="Submit" />
65                                <input type="submit" accesskey="v" name="preview_button" id="comment-preview" class="button" value="Preview" onclick="this.form.preview.value='1';" />
66                            </div>
67
68                        </form><!-- #commentform -->
69                    </div><!-- .formcontainer -->
70
71                </div><!-- #respond -->
72                <script type="text/javascript">
73                <!--
74                mtAttachEvent("load", mtEntryOnLoad);
75                mtAttachEvent("unload", mtEntryOnUnload);
76                //-->
77                </script>
78        </mt:IfCommentsAccepted>
79            </div><!-- #comments -->
80
81        </div><!-- .post -->
82
83    </div><!-- #content -->
84</div><!-- #container -->
85
86<$mt:Include module="<__trans phrase="Sidebar">"$>
87
88<$mt:Include module="<__trans phrase="Footer">"$>
Note: See TracBrowser for help on using the browser.