1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | lang="en" |
---|
3 | i18n:domain="quills.app" |
---|
4 | metal:use-macro="here/main_template/macros/master"> |
---|
5 | <metal:block fill-slot="top_slot" |
---|
6 | tal:define="dummy python:request.set('disable_border',1)" /> |
---|
7 | <metal:override fill-slot="column_two_slot" /> |
---|
8 | <body> |
---|
9 | <div metal:fill-slot="main"> |
---|
10 | <metal:contentsmacro |
---|
11 | define-macro="contents" |
---|
12 | tal:define="errors options/state/getErrors | python: {};"> |
---|
13 | <h1 i18n:translate="manage_comments"> |
---|
14 | Manage Comments |
---|
15 | </h1> |
---|
16 | <p class="discreet" |
---|
17 | i18n:translate="no_comments" |
---|
18 | tal:condition="not: view/has_comments"> |
---|
19 | There are no comments for Weblog entries. |
---|
20 | </p> |
---|
21 | <metal:listing> |
---|
22 | <form name="commentsForm" |
---|
23 | method="post" |
---|
24 | tal:attributes="action request/ACTUAL_URL"> |
---|
25 | <span i18n:translate="">Author</span>: <input type='text' name='form.field.author' size='10' tal:attributes='value view/author'/> |
---|
26 | <span i18n:translate="">Subject</span>: <input type='text' name='form.field.subject' size='20' tal:attributes='value view/subject'/> |
---|
27 | <span i18n:translate="">Review state</span>: |
---|
28 | <select name='form.field.review_state'> |
---|
29 | <option value='' |
---|
30 | tal:attributes="selected python:view.review_state=='All' and 'selected' or None">All</option> |
---|
31 | <option value='published' |
---|
32 | tal:attributes="selected python:view.review_state=='published' and 'selected' or None">Published</option> |
---|
33 | <option value='private' |
---|
34 | tal:attributes="selected python:view.review_state=='private' and 'selected' or None">Private</option> |
---|
35 | </select> |
---|
36 | <input class="context" |
---|
37 | tabindex="" |
---|
38 | type="submit" |
---|
39 | name="form.button.Update" |
---|
40 | value="Update" |
---|
41 | i18n:attributes="value" /> |
---|
42 | <input class="context" |
---|
43 | tal:condition="view/filtered" |
---|
44 | tabindex="" |
---|
45 | type="submit" |
---|
46 | name="form.button.ResetFilter" |
---|
47 | value="Reset" |
---|
48 | i18n:attributes="value" /> |
---|
49 | <input class="context" |
---|
50 | tabindex="" |
---|
51 | type="submit" |
---|
52 | name="form.button.Delete" |
---|
53 | value="Delete" |
---|
54 | i18n:attributes="value" /> |
---|
55 | <input class="context" |
---|
56 | tabindex="" |
---|
57 | type="submit" |
---|
58 | name="form.button.Publish" |
---|
59 | value="Publish" |
---|
60 | i18n:attributes="value" /> |
---|
61 | <input type="hidden" name="form.submitted" value="1" /> |
---|
62 | <table |
---|
63 | class="listing" |
---|
64 | summary="Comments listing" |
---|
65 | tal:condition="view/has_comments"> |
---|
66 | <thead> |
---|
67 | <tr> |
---|
68 | <th class="nosort"> |
---|
69 | <input class="noborder" |
---|
70 | type="checkbox" |
---|
71 | src="select_all_icon.gif" |
---|
72 | name="selectButton" |
---|
73 | title="Select all items" |
---|
74 | onClick="toggleSelect(this,'selected_comments:list');" |
---|
75 | tal:attributes="src string:$portal_url/select_all_icon.gif" |
---|
76 | alt="Select all items" |
---|
77 | i18n:attributes="title label_select_all_items; alt label_select_all_items;" |
---|
78 | /> |
---|
79 | </th> |
---|
80 | <th class="nosort"> Date </th> |
---|
81 | <th class="nosort"> Author </th> |
---|
82 | <th class="nosort"> Subject </th> |
---|
83 | </tr> |
---|
84 | </thead> |
---|
85 | |
---|
86 | <tbody> |
---|
87 | <tal:items tal:repeat="comment view/table/batch"> |
---|
88 | <tr tal:define=" |
---|
89 | comment_id comment/id; |
---|
90 | comment_path comment/path; |
---|
91 | comment_url comment/url; |
---|
92 | comment_author comment/Creator; |
---|
93 | comment_subject comment/title_or_id; |
---|
94 | comment_modified comment/modified; |
---|
95 | oddrow repeat/comment/odd; |
---|
96 | item_class python:comment['wf_state']=='private' and 'state-private' or None" |
---|
97 | tal:attributes="class python:oddrow and 'even' or 'odd'" > |
---|
98 | |
---|
99 | <td> |
---|
100 | <input type="checkbox" |
---|
101 | class="noborder" |
---|
102 | name="selected_comments:list" id="#" |
---|
103 | value="#" |
---|
104 | tal:attributes=" |
---|
105 | value comment_path; |
---|
106 | id string:cb_$comment_id; |
---|
107 | checked python:request.get('ids_checked', False) and 'checked' or None; |
---|
108 | alt string:Select $comment_subject; |
---|
109 | title string:Select $comment_subject;" /> |
---|
110 | |
---|
111 | </td> |
---|
112 | |
---|
113 | <td tal:content="python:here.toLocalizedTime(comment_modified, long_format=1)"> |
---|
114 | 08/19/2001 03:01 AM |
---|
115 | </td> |
---|
116 | <td> <a tal:attributes="href comment_url; |
---|
117 | class item_class" tal:content="comment_author" /></td> |
---|
118 | <td> <a tal:attributes="href comment_url; |
---|
119 | class item_class" tal:content="comment_subject" /></td> |
---|
120 | |
---|
121 | </tr> |
---|
122 | </tal:items> |
---|
123 | </tbody> |
---|
124 | </table> |
---|
125 | </form> |
---|
126 | <div tal:replace="structure view/table/batching" /> |
---|
127 | </metal:listing> |
---|
128 | </metal:contentsmacro> |
---|
129 | </div> |
---|
130 | </body> |
---|
131 | </html> |
---|
132 | |
---|