-
Notifications
You must be signed in to change notification settings - Fork 19
/
commentform_advanced.thtml
92 lines (83 loc) · 3.91 KB
/
commentform_advanced.thtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{# begin {templatelocation} #}
{noscript}
<div id="advanced_editor" style="display:none;">
{start_block_postacomment}
<div id="commenteditform">
<form action="{form_url}" method="post" onsubmit='set_postcontent();' id="commentform_advanced" class="linear">
<div class="user_basic">
<dl>
<dt class="username">{lang_username}</dt>
<dd class="username">{cid}
<input type="hidden" name="order" value="{order}"{xhtml}>
<input type="hidden" name="format" value="{format}"{xhtml}>
<input type="hidden" name="cpage" value="{cpage}"{xhtml}>
<input type="hidden" name="{nprefix}sid" value="{sid}"{xhtml}>
<input type="hidden" name="{nprefix}pid" value="{pid}"{xhtml}>
<input type="hidden" name="{nprefix}type" value="{type}"{xhtml}>
<input type="hidden" name="{gltoken_name}" value="{gltoken}"{xhtml}>
<input type="hidden" name="{nprefix}uid" value="{uid}"{xhtml}>
{username}<span{hidewhenediting}> <a href="{action_url}" rel="nofollow" class="logoutorcreateaccount">{lang_logoutorcreateaccount}</a></span>
</dd>
<dt class="title"><label for="commentform-title">{lang_title}</label></dt>
<dd class="title"><input type="text" size="32" value="{title}" maxlength="96" name="title" id="commentform-title" class="text"{xhtml}></dd>
<dt><label for="comment_text">{lang_comment}</label></dt>
<dd>
<div id="text_editor" style="display: {show_texteditor};">
<textarea cols="90" rows="10" name="comment" id="comment_text">{comment}</textarea>
</div>
<div id="html_editor" style="display: {show_htmleditor};">
<textarea cols="90" rows="10" name="comment_html" id="comment_html">{comment}</textarea>
</div>
</dd>
<dd class="description">{allowed_html}</dd>
{record_edit}
<dt><label for="commentform-postmode">{lang_postmode}</label></dt>
<dd>
<select id="sel_editmode" name="postmode" onchange="change_editmode(this);">
{postmode_options}
</select>
</dd>
</dl>
{!if is_anon}
<dl class="importantstuff">
<dt>{lang_importantstuff}</dt>
<dd>
<ul>
<li>{lang_instr_line1}</li>
<li>{lang_instr_line2}</li>
<li>{lang_instr_line3}</li>
<li>{lang_instr_line4}</li>
<li>{lang_instr_line5}</li>
</ul>
</dd>
</dl>
{!endif}
{captcha}
<ul class="submit">
<li><input type="submit" name="{nprefix}mode" value="{lang_preview}" class="submit"{xhtml}></li>
<li>
<input type="hidden" name="formtype" value="{formtype}"{xhtml}>
{!if allow_save}
<button type="submit" name="{nprefix}mode" value="{lang_save}" class="g-recaptcha"{!if invisible_recaptcha}{invisible_recaptcha}{!endif}>{lang_save}</button>
{!endif}
<input type="submit" value="{lang_cancel}" name="{nprefix}mode"{xhtml}>
{!if allow_delete}
<button type="submit" name="mode" value="{lang_delete}" class="uk-button uk-button-danger g-recaptcha" onclick="return confirm('{confirm_message}');"{!if invisible_recaptcha}{invisible_recaptcha}{!endif}>{lang_delete}</button>
{!endif}
{!if allow_notify}
<p><input type="checkbox" name="notify"{notify_checked}>{lang_notify}</p>
{!endif}
</li>
</ul>
</div>
</form>
</div>
{end_block}
</div>
<!-- BEGIN record_edit -->
<dd><input type="checkbox" name="record_edit" {record_edit_checked} value="1">{lang_record_edit}</dd>
<!-- END record_edit -->
<!-- BEGIN username_anon -->
<input type="text" name="username" size="16" value="{username_value}" maxlength="32"{xhtml}> ({lang_anonymous})
<!-- END username_anon -->
{# end {templatelocation} #}