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

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

Fixed configlet templates

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