source: enpraxis.educommons/trunk/enpraxis/educommons/browser/table.pt @ 8

Revision 8, 6.6 KB checked in by brent, 4 years ago (diff)

Adding 3.2-dev branch to trunk.

Line 
1<div id="folderlisting-main-table"
2     i18n:domain="plone">
3  <input type="hidden" name="sort_on"
4         tal:attributes="value request/sort_on|string:getObjPositionInCourse"
5         />
6  <input type="hidden" name="pagenumber" tal:attributes="value view/batch/pagenumber"/>
7  <input type="hidden" name="orig_template" tal:attributes="value view/viewname"/>
8  <tal:block condition="view/selectall">
9    <input type="hidden" name="paths:list"
10           tal:repeat="item view/batch/items_not_on_page"
11           tal:attributes="value item/path"/>
12  </tal:block>
13
14  <!-- <div metal:use-macro="context/document_actions/macros/document_actions">
15      Document actions (print, sendto etc)
16  </div> -->
17  <p class="discreet"
18     tal:condition="not: view/batch"
19     i18n:translate="description_no_visible_items_add_paste">
20     This folder has no visible items. To add content, press the
21     add button, or paste content from another location.
22  </p>
23
24  <metal:listing define-macro="folder_listing"
25                 tal:define="nosortclass view/get_nosort_class">
26                             
27  <div class="visualClear" id="clear-space-before-navigation"><!-- --></div>
28
29    <table class="listing"
30           id="listing-table"
31           summary="Content listing"
32           i18n:attributes="summary summary_content_listing;"
33           tal:condition="view/items">
34      <thead>
35          <tr>
36            <th class="nosort">&nbsp;</th>
37            <th tal:attributes="class nosortclass"
38                id="foldercontents-title-column">&nbsp;<tal:title i18n:translate="listingheader_title"
39                >Title</tal:title>&nbsp;</th>
40            <th tal:attributes="class nosortclass"
41                id="foldercontents-size-column">&nbsp;<tal:size i18n:translate="listingheader_size"
42                >Size</tal:size>&nbsp;</th>
43            <th tal:attributes="class nosortclass"
44                id="foldercontents-modified-column">&nbsp;<tal:modified i18n:translate="listingheader_modified"
45                >Modified</tal:modified>&nbsp;</th>
46            <th tal:attributes="class nosortclass"
47                id="foldercontents-status-column">&nbsp;<tal:state i18n:translate="listingheader_status"
48                >State</tal:state>&nbsp;</th>
49            <th class="nosort"
50                id="foldercontents-order-column"
51                tal:condition="view/show_sort_column">
52              &nbsp;<tal:order i18n:translate="listingheader_order">Order</tal:order>&nbsp;</th>
53          </tr>
54      </thead>
55
56      <metal:block tal:condition="view/batch">
57      <tbody>
58          <tal:items tal:repeat="item view/batch">
59              <tr tal:attributes="class item/table_row_class;
60                                  id string:folder-contents-item-${item/id};" >
61
62                 <tal:comment replace="nothing">
63                      * We have to check if the browserDefault stuff is really necessary
64                      * Create title_or_id metadata in the catalog (why not just use item.Title or item.getId? (alecm))
65                 </tal:comment>
66
67                 <td class="notDraggable">
68                     <input type="checkbox"
69                            class="noborder"
70                            name="paths:list" id="#"
71                            value="#"
72                            tal:attributes="value   item/path;
73                                            id      string:cb_${item/id};
74                                            checked item/checked;
75                                            alt     string:Select ${item/title_or_id};
76                                            title   string:Select ${item/title_or_id}" />
77                <input type="hidden" name="selected_obj_paths:list" value="#"
78                       tal:attributes="value item/relative_url" />
79                <label tal:content="item/title_or_id"
80                       tal:attributes="for string:cb_${item/id}"
81                       class="hiddenStructure">
82                  Item Title
83                </label>
84              </td>
85              <td>
86                  <span tal:attributes="class item/type_class">
87                      <img tal:replace="structure item/icon" />
88                      <a href="#" tal:attributes="href  item/view_url;
89                                                title string: ${item/obj_type}: ${item/description};
90                                                class item/state_class;">
91                        <strong tal:omit-tag="not: item/is_browser_default"
92                            tal:content="item/title_or_id"/>
93                      </a>
94                  </span>
95
96                  <span class="state-expired"
97                        tal:condition="item/is_expired"
98                        i18n:translate="time_expired">expired</span>
99              </td>
100
101              <td>
102                <span tal:condition="not: item/size"> &nbsp; </span>
103                <span tal:condition="item/size"
104                      tal:content="item/size"
105                      tal:attributes="class item/state_class"> size </span>
106              </td>
107              <td tal:content="item/modified"
108                  tal:attributes="class item/state_class">
109                  08/19/2001 03:01 AM
110              </td>
111              <td>
112                  <span i18n:translate=""
113                        tal:condition="item/state_title"
114                        tal:content="item/state_title"
115                        tal:attributes="class item/state_class" />
116                  <span tal:condition="not: item/state_title">&nbsp;</span>
117              </td>
118              <td tal:condition="view/show_sort_column">
119                <a href=""
120                   title="Move item up"
121                   i18n:attributes="title title_move_item_up;"
122                   tal:attributes="href string:Course_Nav_position?position=up&amp;id=${item/quoted_id}&amp;url=${item/path}">
123                  &#9650;
124                </a>
125                &nbsp;
126                <a href=""
127                   title="Move item down"
128                   i18n:attributes="title title_move_item_down;"
129                   tal:attributes="href string:Course_Nav_position?position=down&amp;id=${item/quoted_id}&amp;url=${item/path}">
130                  &#9660;
131                </a>
132              </td>
133             </tr>
134          </tal:items>
135      </tbody>
136    </metal:block>
137  </table>
138  <tal:buttons tal:repeat="button view/buttons">
139    <input class="context"
140           type="submit"
141           name=""
142           value=""
143           i18n:attributes="value"
144           tal:attributes="value button/title; name button/url; class button/cssclass" />
145  </tal:buttons>
146  </metal:listing>
147</div>
Note: See TracBrowser for help on using the repository browser.