1 | <html xmlns="http://www.w3.org/1999/xhtml"
|
---|
2 | xml:lang="en"
|
---|
3 | lang="en"
|
---|
4 | i18n:domain="plone"
|
---|
5 | metal:use-macro="here/prefs_main_template/macros/master">
|
---|
6 | <!-- metal:use-macro="here/main_template/macros/master" -->
|
---|
7 | <body>
|
---|
8 |
|
---|
9 | <div metal:fill-slot="prefs_configlet_main"
|
---|
10 | tal:define="errors python:request.get('controller_state', None).getErrors();">
|
---|
11 |
|
---|
12 | <div metal:define-macro="main" i18n:domain="plone">
|
---|
13 | <div class="configlet">
|
---|
14 | <div class="documentEditable">
|
---|
15 |
|
---|
16 | <!-- simulating views -->
|
---|
17 | <ul class="contentViews"
|
---|
18 | tal:define="tabs python:('Configure qPloneComments','prefs_comments_setup_form'), ('Recent comments moderation','prefs_recent_comments_form'),;
|
---|
19 | tabs python:[ {'label':label, 'name':name} for (label,name) in tabs ];"
|
---|
20 | >
|
---|
21 | <li class="selected"
|
---|
22 | tal:repeat="tab tabs"
|
---|
23 | tal:attributes="class python:tab['name']==template.id and 'selected' or ''">
|
---|
24 | <a href=""
|
---|
25 | tal:attributes="href string:${here/absolute_url}/${tab/name}"
|
---|
26 | i18n:translate="" tal:content="tab/label">Recent comments moderation</a>
|
---|
27 | </li>
|
---|
28 | </ul>
|
---|
29 |
|
---|
30 | <div class="contentActions">
|
---|
31 |
|
---|
32 | </div>
|
---|
33 | <!-- End of tabs -->
|
---|
34 |
|
---|
35 | <div class="documentContent" metal:define-slot="prefs_content"
|
---|
36 | tal:define ="results python:here.portal_catalog.searchResults(portal_type='Discussion Item',review_state='private',sort_on='created',sort_order='reverse');">
|
---|
37 | <h1 i18n:translate="qpc_setup">Recent comments</h1>
|
---|
38 |
|
---|
39 | <a href=""
|
---|
40 | class="link-parent"
|
---|
41 | tal:attributes="href string: $portal_url/plone_control_panel"
|
---|
42 | i18n:translate="label_up_to_plone_setup">
|
---|
43 | Up to Plone Setup
|
---|
44 | </a>
|
---|
45 | <div tal:condition="not:results"> No new comments.</div>
|
---|
46 |
|
---|
47 | <div tal:condition="results"
|
---|
48 | tal:define="dummy python:results and results[0].getObject()"
|
---|
49 | tal:on-error="string:You must have DiscussionManager role to access this page">
|
---|
50 |
|
---|
51 | <form name="edit_form"
|
---|
52 | action="href"
|
---|
53 | method="post"
|
---|
54 | enctype="multipart/form-data"
|
---|
55 | tal:condition="results"
|
---|
56 | tal:attributes="action string:${here/getId}/${template/getId}">
|
---|
57 | <fieldset>
|
---|
58 | <legend i18n:translate="legend_qpc_notification_legend">List of recent comments</legend>
|
---|
59 |
|
---|
60 | <table><tbody>
|
---|
61 |
|
---|
62 | <tr>
|
---|
63 | <th class="nosort">
|
---|
64 | <input class="noborder"
|
---|
65 | type="checkbox"
|
---|
66 | src="select_all_icon.gif"
|
---|
67 | name="selectButton"
|
---|
68 | title="Select all items"
|
---|
69 | onClick="toggleSelect(this,'ids:list');"
|
---|
70 | tal:attributes="src string:$portal_url/select_all_icon.gif"
|
---|
71 | alt="Select all items"
|
---|
72 | i18n:attributes="title label_select_all_items; alt label_select_all_items;"
|
---|
73 | />
|
---|
74 | </th>
|
---|
75 | <th class="nosort"> <tal:title i18n:translate="listingheader_comment"
|
---|
76 | >Comment</tal:title> </th>
|
---|
77 | </tr>
|
---|
78 |
|
---|
79 | <tal:comment tal:repeat="comment results">
|
---|
80 | <tal:object tal:define="comm_url comment/getURL;
|
---|
81 | oddrow repeat/comment/odd;">
|
---|
82 | <tr class="" tal:attributes="class python:test(oddrow, 'even', 'odd')">
|
---|
83 | <td><input value="0" type="checkbox"
|
---|
84 | name="ids:list"
|
---|
85 | tal:attributes="value python:comment.getObject().getId()" /></td>
|
---|
86 | <td>
|
---|
87 | <dl>
|
---|
88 | <dt>
|
---|
89 | <a href="#"
|
---|
90 | tal:attributes="href comment/getURL;"
|
---|
91 | tal:content="comment/Title"/>
|
---|
92 | </dt>
|
---|
93 | <dd>
|
---|
94 | <span><em tal:content="string: ${comment/Creator}"> Creator</em></span>
|
---|
95 | <span tal:content="python: comment.getObject().text[:400]+'...'"> Description</span>
|
---|
96 | </dd>
|
---|
97 | </dl>
|
---|
98 | </td>
|
---|
99 | </tr>
|
---|
100 | </tal:object>
|
---|
101 | </tal:comment>
|
---|
102 |
|
---|
103 | </tbody></table>
|
---|
104 |
|
---|
105 | <div class="formControls">
|
---|
106 | <input type="hidden" name="form.submitted" value="1" />
|
---|
107 |
|
---|
108 | <input class="context"
|
---|
109 | tabindex=""
|
---|
110 | type="submit"
|
---|
111 | name="form.button.form_delete"
|
---|
112 | value="Delete"
|
---|
113 | i18n:attributes="value"
|
---|
114 | tal:attributes="tabindex tabindex/next;"
|
---|
115 | />
|
---|
116 |
|
---|
117 | <input class="context"
|
---|
118 | tabindex=""
|
---|
119 | type="submit"
|
---|
120 | name="form.button.form_publish"
|
---|
121 | value="Publish"
|
---|
122 | i18n:attributes="value"
|
---|
123 | tal:attributes="tabindex tabindex/next;"
|
---|
124 | />
|
---|
125 |
|
---|
126 |
|
---|
127 | </div>
|
---|
128 | </fieldset>
|
---|
129 | </form>
|
---|
130 | </div>
|
---|
131 | </div>
|
---|
132 | </div>
|
---|
133 | </div>
|
---|
134 | </div>
|
---|
135 | </div>
|
---|
136 | </body>
|
---|
137 | </html> |
---|