root/branches/release-41/tmpl/cms/dialog/comment_reply.tmpl @ 2692

Revision 2692, 3.3 kB (checked in by auno, 17 months ago)

Fixed to work previewing comment reply. BugzID:80425

  • Property svn:keywords set to Id Author Date Revision
Line 
1<$mt:setvar name="page_title" value="<__trans phrase="Reply to comment">"$>
2<$mt:include name="dialog/header.tmpl"$>
3<mt:if name="closing">
4<script type="text/javascript">
5/* <![CDATA[ */
6closeDialog('<mt:var name="return_url">');
7/* ]]> */
8</script>
9</mt:if>
10<mt:if name="error">
11    <mtapp:statusmsg
12        id="generic-error"
13        class="error">
14        <mt:var name="error">
15    </mtapp:statusmsg>
16</mt:if>
17<form action="<mt:var name="script_url">" method="post" name="comments_form" id="comments-form" class="<mt:if name="preview_html">preview</mt:if>">
18    <input type="hidden" name="__mode" value="" />
19    <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
20    <input type="hidden" name="reply_to" value="<mt:var name="reply_to">" />
21    <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" />
22    <input type="hidden" name="return_url" value="<mt:if name="return_url"><mt:var name="return_url"><mt:else><mt:var name="mt_url">?__mode=list_comments&amp;blog_id=<mt:var name="blog_id"></mt:if>" />
23    <div id="comment">
24        <p class="comment-meta"><__trans phrase="On [_1], [_2] commented on [_3]" params="<span class="comment-date"><$mt:var name="comment_created_on"$></span>%%<span class="commenter-name"><$mt:var name="commenter_name" escape="html"$></span>%%<span class="entry-title"><$mt:var name="entry_title" escape="html"$></span>"></p>
25        <div class="comment-body">
26            <$mt:var name="comment_text"$>
27        </div>
28    </div>
29<mt:if name="preview_html">
30    <div id="comment-preview">
31        <div class="intro"><__trans phrase="Preview of your comment"></div>
32        <div id="reply-body">
33            <mt:var name="preview_html">
34        </div>
35    </div>
36</mt:if>
37    <div id="comment-reply">
38        <div class="intro"><__trans phrase="Your reply:"></div>
39        <textarea id="reply-body" name="text" rows="" cols="" class="full-width medium"><$mt:var name="text"$></textarea>
40    </div>
41    <div class="actions-bar">
42        <div class="actions-bar-inner pkg actions">
43            <button
44                mt:command="submit"
45                mt:mode="reply"
46                type="submit"
47                accesskey="s"
48                title="<__trans phrase="Submit reply (s)">"
49                id="publish-comment-action"
50                class="primary-button"
51                ><__trans phrase="Submit"></button>
52            <button
53                mt:command="submit"
54                mt:mode="reply_preview"
55                type="submit"
56                accesskey="v"
57                title="<__trans phrase="Preview reply (v)">"
58                id="preview-comment-action"
59                ><__trans phrase="Preview"></button>
60            <button
61                onclick="DOM.removeClassName( DOM.getElement('comments-form'), 'preview' ); return false"
62                type="submit"
63                accesskey="r"
64                title="<__trans phrase="Re-edit reply (r)">"
65                id="re-edit-comment-action"
66                ><__trans phrase="Re-edit"></button>
67            <button
68                onclick="closeDialog(); return false"
69                type="submit"
70                accesskey="x"
71                title="<__trans phrase="Cancel (x)">"
72                ><__trans phrase="Cancel"></button>
73        </div>
74    </div>
75</form>
76<mt:include name="dialog/footer.tmpl">
Note: See TracBrowser for help on using the browser.