replace moderate comments table with a subclass of the standard Plone folder-listing table. this basically breaks all functionality (filter, bulk actions) and kss actions are not working yet, but the pagination is working.
svn path=/plone.app.discussion/trunk/; revision=27698
This commit is contained in:
@@ -70,9 +70,19 @@
|
||||
-->
|
||||
</ul>
|
||||
|
||||
<form name="folderContentsForm"
|
||||
method="post"
|
||||
action="folder_object"
|
||||
tal:attributes="action context/absolute_url"
|
||||
class="kssattr-serveraction-foldercontents_update_table">
|
||||
<!-- TODO: change class and replace KSS methods -->
|
||||
<div tal:replace="structure view/contents_table"></div>
|
||||
<input tal:replace="structure context/@@authenticator/authenticator" />
|
||||
</form>
|
||||
|
||||
<form method="post"
|
||||
action="#"
|
||||
class="kssattr-serveraction-foldercontents_update_table"
|
||||
class="kssattr-serveraction-moderatecomments_update_table"
|
||||
tal:attributes="action string:${context/absolute_url}/@@bulk-actions">
|
||||
<select name="form.select.BulkAction">
|
||||
<option selected="selected" value="-1" i18n:translate="title_bulkactions">Bulk Actions</option>
|
||||
@@ -88,19 +98,32 @@
|
||||
name="form.button.BulkAction"
|
||||
i18n:attributes="value label_apply;" />
|
||||
|
||||
|
||||
<!--
|
||||
<table id="review-comments" class="listing" style="width: 100%" tal:condition="items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="7" class="nosort"
|
||||
i18n:translate="label_select_all">
|
||||
Select:
|
||||
<a tal:attributes="href string:#"
|
||||
id="foldercontents-selectall"
|
||||
i18n:name="label_link_all"
|
||||
i18n:translate="label_all">
|
||||
All
|
||||
</a>
|
||||
<tr tal:condition="not:view/table/selectcurrentbatch">
|
||||
<th colspan="7" class="nosort"><span i18n:translate="label_select" tal:omit-tag="">Select:</span> <a i18n:translate="label_all" tal:attributes="href view/table/selectscreen_url" id="foldercontents-selectall" class="update-selection">All</a></th>
|
||||
</tr>
|
||||
<tr tal:condition="view/table/show_select_all_items">
|
||||
<th colspan="7" class="nosort">
|
||||
<span tal:omit-tag="" i18n:translate="tableheading_all_items_selected">
|
||||
All <tal:block replace="view/table/batch/items_on_page" i18n:name="count"/> items on this
|
||||
page are selected.
|
||||
</span>
|
||||
<a tal:attributes="href view/table/selectall_url"
|
||||
id="foldercontents-selectall-completebatch" class="update-selection"
|
||||
i18n:translate="tableheading_select_all_items">Select all
|
||||
<tal:block replace="view/table/batch/size" i18n:name="count"/> items in this folder.</a>
|
||||
</th>
|
||||
</tr>
|
||||
<tr tal:condition="view/table/selectall">
|
||||
<th colspan="7" class="nosort">
|
||||
<span tal:omit-tag="" i18n:translate="tableheading_all_items_selected">
|
||||
All <tal:block replace="view/table/batch/size" i18n:name="count"/> items in this folder
|
||||
are selected.
|
||||
</span>
|
||||
<a tal:attributes="href view/table/selectnone_url" i18n:translate="tableheading_clear_selection"
|
||||
id="foldercontents-clearselection" class="update-selection">Clear selection</a>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -110,7 +133,7 @@
|
||||
<th i18n:translate="heading_context">In Response To</th>
|
||||
<th i18n:translate="heading_subject">Subject</th>
|
||||
<th i18n:translate="heading_comment">Comment</th>
|
||||
<th i18n:translate="heading_action">Action</th>
|
||||
<th i18n:translate="heading_action" class="nosort">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -174,7 +197,25 @@
|
||||
</tr>
|
||||
</tal:block>
|
||||
</tbody>
|
||||
<tfooter tal:condition="not:view/table/within_batch_size">
|
||||
<tr tal:condition="not:view/table/show_all">
|
||||
<th colspan="7" class="nosort">
|
||||
<a tal:attributes="href view/table/show_all_url"
|
||||
i18n:translate="label_show_all"
|
||||
id="foldercontents-show-all" class="update-selection">Show all items</a>
|
||||
</th>
|
||||
</tr>
|
||||
<tr tal:condition="view/table/show_all">
|
||||
<th colspan="7" class="nosort">
|
||||
<a tal:attributes="href view/table/view_url"
|
||||
i18n:translate="label_show_batched"
|
||||
id="foldercontents-show-batched" class="update-selection">Show batched</a>
|
||||
</th>
|
||||
</tr>
|
||||
</tfooter>
|
||||
|
||||
</table>
|
||||
-->
|
||||
</form>
|
||||
</tal:main-macro>
|
||||
</metal:main>
|
||||
|
||||
Reference in New Issue
Block a user