-
Notifications
You must be signed in to change notification settings - Fork 156
/
jwiki_edit_comment.html
65 lines (57 loc) · 1.86 KB
/
jwiki_edit_comment.html
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
{# Copyright (C) 2016 Edgewall Software
This software is licensed as described in the file COPYING, which
you should have received as part of this distribution. The terms
are also available at http://trac.edgewall.com/license.html.
This software consists of voluntary contributions made by many
individuals. For the exact contribution history, see the revision
history and logs, available at http://trac.edgewall.org/.
#}
# extends "jlayout.html"
<!DOCTYPE html>
<html>
<head>
<title>
# block title
${title}
${ super() }
# endblock title
</title>
</head>
<body>
# block content
<div id="content" class="wiki">
# with current_href = href.wiki(page.name)
<h1>
# set name
<a href="${current_href}">${page.name}</a>
# endset
# trans version = page.version, name = name
Edit comment for version ${version} of ${name}
# endtrans
</h1>
<form id="edit-comment-form" action="${current_href}" method="post">
${jmacros.form_token_input()}
<p>
${_("Old comment:")}
${wiki_to_oneliner(context, page.comment or '--')}
</p>
<div class="field">
<label>${_("New comment:")}
<input type="hidden" name="action" value="edit_comment" />
<input type="text" name="new_comment" class="trac-autofocus"
size="40" value="${page.comment}" />
</label>
</div>
<div class="buttons">
<input type="hidden" name="version" value="${page.version}" />
<input type="submit" name="submit" class="trac-disable-on-submit"
value="${_('Submit changes')}" />
<input type="submit" name="cancel" value="${_('Cancel')}" />
</div>
</form>
# endwith
</div>
${ super() }
# endblock content
</body>
</html>