source: products/quintagroup.plonecomments/trunk/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_recent_comments_form.cpt @ 2611

Last change on this file since 2611 was 2611, checked in by kroman0, 14 years ago

Removed tabindex support

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