2009-06-28 13:49:00 +02:00
|
|
|
|
|
|
|
<div id="folderlisting-main-table"
|
|
|
|
i18n:domain="plone">
|
|
|
|
<input type="hidden" name="sort_on"
|
|
|
|
tal:attributes="value request/sort_on|string:getObjPositionInParent"
|
|
|
|
/>
|
|
|
|
<input type="hidden" name="pagenumber" tal:attributes="value view/batch/pagenumber"/>
|
|
|
|
<input type="hidden" name="show_all" tal:attributes="value view/show_all"/>
|
|
|
|
<input type="hidden" name="orig_template" tal:attributes="value view/viewname"/>
|
|
|
|
<tal:block condition="view/selectall">
|
|
|
|
<input type="hidden" name="paths:list"
|
|
|
|
tal:repeat="item view/batch/items_not_on_page"
|
|
|
|
tal:attributes="value item/path"/>
|
|
|
|
</tal:block>
|
|
|
|
|
|
|
|
<!-- <div metal:use-macro="context/document_actions/macros/document_actions">
|
|
|
|
Document actions (print, sendto etc)
|
|
|
|
</div> -->
|
|
|
|
<p class="discreet"
|
|
|
|
tal:condition="not: view/batch"
|
|
|
|
i18n:translate="description_no_visible_items_add_paste">
|
|
|
|
This folder has no visible items. To add content, press the
|
|
|
|
add button, or paste content from another location.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<metal:listing define-macro="folder_listing"
|
|
|
|
tal:define="nosortclass view/get_nosort_class">
|
|
|
|
|
|
|
|
<div class="visualClear" id="clear-space-before-navigation"><!-- --></div>
|
|
|
|
|
|
|
|
<div tal:replace="structure view/batching" tal:condition="not:view/show_all"/>
|
|
|
|
<table class="listing"
|
|
|
|
id="listing-table"
|
|
|
|
summary="Content listing"
|
|
|
|
i18n:attributes="summary summary_content_listing;"
|
|
|
|
tal:condition="view/items">
|
|
|
|
<thead>
|
|
|
|
<tr tal:condition="not:view/selectcurrentbatch">
|
|
|
|
<th colspan="6" class="nosort"><span i18n:translate="label_select" tal:omit-tag="">Select:</span> <a i18n:translate="label_all" tal:attributes="href view/selectscreen_url" id="foldercontents-selectall" class="update-selection">All</a></th>
|
|
|
|
</tr>
|
|
|
|
<tr tal:condition="view/show_select_all_items">
|
|
|
|
<th colspan="6" class="nosort">
|
|
|
|
<span tal:omit-tag="" i18n:translate="tableheading_all_items_selected">
|
|
|
|
All <tal:block replace="view/batch/items_on_page" i18n:name="count"/> items on this
|
|
|
|
page are selected.
|
|
|
|
</span>
|
|
|
|
<a tal:attributes="href view/selectall_url"
|
|
|
|
id="foldercontents-selectall-completebatch" class="update-selection"
|
|
|
|
i18n:translate="tableheading_select_all_items">Select all
|
|
|
|
<tal:block replace="view/batch/size" i18n:name="count"/> items in this folder.</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
<tr tal:condition="view/selectall">
|
|
|
|
<th colspan="6" class="nosort">
|
|
|
|
<span tal:omit-tag="" i18n:translate="tableheading_all_items_selected">
|
|
|
|
All <tal:block replace="view/batch/size" i18n:name="count"/> items in this folder
|
|
|
|
are selected.
|
|
|
|
</span>
|
|
|
|
<a tal:attributes="href view/selectnone_url" i18n:translate="tableheading_clear_selection"
|
|
|
|
id="foldercontents-clearselection" class="update-selection">Clear selection</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th class="nosort"> </th>
|
|
|
|
<th class="nosort column"
|
|
|
|
id="foldercontents-title-column"> <tal:title i18n:translate="listingheader_title"
|
|
|
|
>Title</tal:title> </th>
|
|
|
|
<!--<th class="nosort column"
|
|
|
|
id="foldercontents-size-column"> <tal:size i18n:translate="listingheader_size"
|
|
|
|
>Size</tal:size> </th>-->
|
|
|
|
<th class="nosort column"
|
|
|
|
id="foldercontents-modified-column"> <tal:modified i18n:translate="listingheader_modified"
|
|
|
|
>Modified</tal:modified> </th>
|
|
|
|
<th class="nosort column"
|
|
|
|
id="foldercontents-status-column"> <tal:state i18n:translate="listingheader_status"
|
|
|
|
>State</tal:state> </th>
|
|
|
|
<th class="nosort column"
|
|
|
|
id="foldercontents-order-column"
|
|
|
|
tal:condition="view/show_sort_column">
|
|
|
|
<tal:order i18n:translate="listingheader_order">Order</tal:order> </th>
|
|
|
|
<th class="nosort column"
|
|
|
|
id="foldercontents-action-column"> <tal:title i18n:translate="listingheader_action"
|
|
|
|
>Action</tal:title> </th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<metal:block tal:condition="view/batch">
|
|
|
|
<tbody>
|
|
|
|
<tal:items tal:repeat="item view/batch">
|
|
|
|
<tr tal:attributes="class item/table_row_class;
|
|
|
|
id string:folder-contents-item-${item/id};" >
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">
|
|
|
|
* We have to check if the browserDefault stuff is really necessary
|
|
|
|
* Create title_or_id metadata in the catalog (why not just use item.Title or item.getId? (alecm))
|
|
|
|
</tal:comment>
|
|
|
|
|
|
|
|
<td class="notDraggable">
|
|
|
|
<input type="checkbox"
|
|
|
|
class="noborder"
|
|
|
|
name="paths:list" id="#"
|
|
|
|
value="#"
|
|
|
|
tal:attributes="value item/path;
|
|
|
|
id string:cb_${item/id};
|
|
|
|
checked item/checked;
|
|
|
|
alt string:Select ${item/title_or_id};
|
|
|
|
title string:Select ${item/title_or_id}" />
|
|
|
|
<input type="hidden" name="selected_obj_paths:list" value="#"
|
|
|
|
tal:attributes="value item/relative_url" />
|
|
|
|
<label tal:content="item/title_or_id"
|
|
|
|
tal:attributes="for string:cb_${item/id}"
|
|
|
|
class="hiddenStructure">
|
|
|
|
Item Title
|
|
|
|
</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span tal:attributes="class item/type_class">
|
|
|
|
<img tal:replace="structure item/icon" />
|
|
|
|
<a href="#" tal:attributes="href item/view_url;
|
|
|
|
title item/url_href_title;
|
|
|
|
class item/state_class;">
|
|
|
|
<strong tal:omit-tag="not: item/is_browser_default"
|
|
|
|
tal:content="item/title_or_id"/>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="state-expired"
|
|
|
|
tal:condition="item/is_expired"
|
|
|
|
i18n:translate="time_expired">expired</span>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<!--<td>
|
|
|
|
<span tal:condition="not: item/size"> </span>
|
|
|
|
<span tal:condition="item/size"
|
|
|
|
tal:content="item/size"
|
|
|
|
tal:attributes="class item/state_class"> size </span>
|
|
|
|
</td>-->
|
|
|
|
<td tal:content="item/modified"
|
|
|
|
tal:attributes="class item/state_class">
|
|
|
|
08/19/2001 03:01 AM
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span i18n:translate=""
|
|
|
|
tal:condition="item/state_title"
|
|
|
|
tal:content="item/state_title"
|
|
|
|
tal:attributes="class item/state_class" />
|
|
|
|
<span tal:condition="not: item/state_title"> </span>
|
|
|
|
</td>
|
|
|
|
<td tal:condition="view/show_sort_column" class="draggable">
|
|
|
|
<a href=""
|
|
|
|
title="Move item up"
|
|
|
|
i18n:attributes="title title_move_item_up;"
|
|
|
|
tal:attributes="href string:${view/base_url}/folder_position?position=up&id=${item/quoted_id}">
|
|
|
|
▲
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href=""
|
|
|
|
title="Move item down"
|
|
|
|
i18n:attributes="title title_move_item_down;"
|
|
|
|
tal:attributes="href string:${view/base_url}/folder_position?position=down&id=${item/quoted_id}">
|
|
|
|
▼
|
|
|
|
</a>
|
|
|
|
</td>
|
2009-06-28 20:29:01 +02:00
|
|
|
<td style="width: 11.5em">
|
2009-06-28 13:49:00 +02:00
|
|
|
<form action=""
|
2009-06-28 20:29:01 +02:00
|
|
|
class="background-form moderate-publish-comment"
|
2009-06-28 13:49:00 +02:00
|
|
|
method="post"
|
|
|
|
style="display: inline"
|
|
|
|
tal:attributes="action string:${item/url}/@@moderate-publish-comment"
|
2009-06-28 20:29:01 +02:00
|
|
|
tal:condition="python:item['wf_state'] == 'pending'">
|
2009-06-28 13:49:00 +02:00
|
|
|
<input type="hidden" name="comment_id" tal:attributes="value item/id" />
|
2009-06-28 20:29:01 +02:00
|
|
|
<input type="hidden" name="workflow_action" tal:attributes="value string:publish;
|
2009-06-28 13:49:00 +02:00
|
|
|
todo string:view/transition" />
|
|
|
|
<input class="context comment-publish-button"
|
|
|
|
type="submit"
|
|
|
|
value="Publish"
|
|
|
|
i18n:attributes="value label_publish"
|
|
|
|
/>
|
|
|
|
</form>
|
|
|
|
<form action=""
|
|
|
|
method="post"
|
2009-06-28 20:29:01 +02:00
|
|
|
class="background-form moderate-delete-comment"
|
2009-06-28 13:49:00 +02:00
|
|
|
style="display: inline"
|
|
|
|
tal:attributes="action string:${item/url}/@@moderate-delete-comment">
|
|
|
|
<input type="hidden" name="comment_id" tal:attributes="value item/id" />
|
|
|
|
<input class="destructive comment-delete-button"
|
|
|
|
type="submit"
|
|
|
|
value="Delete"
|
|
|
|
i18n:attributes="value label_delete;"
|
|
|
|
/>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tal:items>
|
|
|
|
</tbody>
|
|
|
|
<tfooter tal:condition="not:view/within_batch_size">
|
|
|
|
<tr tal:condition="not:view/show_all">
|
|
|
|
<th colspan="6" class="nosort">
|
|
|
|
<a tal:attributes="href view/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/show_all">
|
|
|
|
<th colspan="6" class="nosort">
|
|
|
|
<a tal:attributes="href view/view_url"
|
|
|
|
i18n:translate="label_show_batched"
|
|
|
|
id="foldercontents-show-batched" class="update-selection">Show batched</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</tfooter>
|
|
|
|
</metal:block>
|
|
|
|
</table>
|
|
|
|
<div tal:replace="structure view/batching" tal:condition="not:view/show_all"/>
|
|
|
|
<tal:buttons tal:repeat="button view/buttons">
|
|
|
|
<input class="context"
|
|
|
|
type="submit"
|
|
|
|
name=""
|
|
|
|
value=""
|
|
|
|
i18n:attributes="value"
|
|
|
|
tal:attributes="value button/title; name button/url; class button/cssclass" />
|
|
|
|
</tal:buttons>
|
|
|
|
</metal:listing>
|
|
|
|
</div>
|