Changeset 432 for WAeUP_SRP/trunk
- Timestamp:
- 27 Aug 2006, 17:59:06 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_display_contents_column.pt
r305 r432 22 22 ajax feedback 23 23 </div> 24 <table tal:condition="python: not no_table and batch_items" width="100%" cellspacing="0"25 cellpadding="5" summary="content column layout" id="folder_content">26 <tbody id="folder_content_tbody">27 <tal:block tal:repeat="item batch_items">28 <tal:block define="info python:here.getContentInfo(item, level=1, cpsmcat=cpsmcat);29 review_state python:info['review_state'];30 item_id item/getId|string:noid,31 proxy_creator item/Creator|info/creator"32 condition="python:review_state != 'draft'33 or (review_state == 'draft' and proxy_creator == member_id)34 or is_local_manager">35 <tr valign="top" class="ajaxtd">36 <td align="left" valign="top">37 <div tal:attributes="id python:'draggable'+str(item_id);38 class python:test(not no_form and sort_by is None, 'draggable droppable', '');39 onmouseover python:test(not no_form and sort_by is None,40 'setCursor(this, \'move\')', '')">41 <table summary="content">42 <tr>43 <td align="left" valign="top" style="width: 5px">44 <input type="" name="" value="" id="" class="noborder"45 tal:define="id item/getId"46 tal:condition="python:(review_state not in ('locked', 'draft')47 or is_local_manager) and not no_form"48 tal:attributes="value49 python:site_wide and item.getContextUrl(utool=utool) or id;50 id python:'cb_' + id;51 checked python:id in choosen_ids;52 type python:input_type;53 name python:input_name;" />54 </td>55 <td>56 <metal:block57 use-macro="here/academics_content_lib_info_detail_tab/macros/info_detail_tabs" />58 </td>59 </tr>60 </table>61 </div>62 </td>63 </tr>64 </tal:block>65 </tal:block>66 </tbody>67 </table>68 24 <tal:block condition="no_table"> 69 25 <tal:block repeat="item batch_items"> -
WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt
r430 r432 1 1 <metal:html tal:define="display_change request/change_display|nothing; 2 params here/ getDisplayParams;2 params here/academicsDisplayParams; 3 3 sort_by params/sort_by; 4 4 direction params/direction; … … 20 20 Page Title 21 21 </h3> 22 <div tal:condition="nothing" id="bylineFolder"23 class="ddefault">24 <small>25 <span metal:use-macro="here/content_lib_byline/macros/byline">By Me</span>26 </small>27 </div>28 <a href="" accesskey="V"29 style="display:none"30 tal:attributes="href string:${context_url}/"></a>31 <a href="" accesskey="N"32 style="display:none"33 tal:attributes="href string:${context_url}/folder_factories"></a>34 22 </metal:header> 35 23 … … 64 52 items python:here.getFolderContents(displayed=displayed);"> 65 53 66 <metal:block use-macro="here/academics_content_lib_display_contents/macros/display_contents" /> 54 <!-- a content_lib macro --> 55 <!-- $Id: content_lib_display_contents.pt 32722 2006-02-10 15:21:49Z mturcu $ --> 56 57 <!-- List contents in 'items' in the specified number of columns 58 with the given format --> 59 60 <tal:block 61 define="tmp_format format|nothing; 62 tmp_sort_by sort_by|nothing; 63 tmp_direction direction|nothing; 64 tmp_columns columns|nothing; 65 tmp_items_per_page items_per_page|nothing; 66 tmp_nav_action nav_action|nothing; 67 tmp_filter filter|nothing; 68 tmp_detail_tab_columns detail_tab_columns|nothing; 69 params python:here.getDisplayParams(format=tmp_format, 70 sort_by=tmp_sort_by, 71 direction=tmp_direction, 72 columns=tmp_columns, 73 items_per_page=tmp_items_per_page, 74 nav_action=tmp_nav_action, 75 nb_items=len(items), 76 filter=tmp_filter, 77 detail_tab_columns=tmp_detail_tab_columns); 78 format params/format; 79 sort_by params/sort_by; 80 direction params/direction; 81 columns params/columns; 82 items_per_page params/items_per_page; 83 nav_action params/nav_action; 84 filter params/filter; 85 detail_tab_columns params/detail_tab_columns; 86 mq nocall:modules/ZTUtils/make_query; 87 form request/form; 88 zoom zoom|python:0; 89 batches_all python:here.getBatchList(items, columns, items_per_page, 90 zoom); 91 batches python:batches_all[0]; 92 batch_info python:batches_all[1]; 93 zoomed python:batches_all[2]; 94 "> 95 <span tal:condition="python:0"> 96 <span tal:content="params" /><br /> 97 <span tal:content="batches_all" /><br /> 98 </span> 99 <tal:block tal:condition="python: batch_info and batch_info['nb_pages'] > 1"> 100 <div class="batchLayout"> 101 <span i18n:translate=""> 102 Objects: 103 <strong> 104 <tal:block replace="batch_info/start" 105 i18n:name="batch_start" /> - <tal:block replace="batch_info/limit" 106 i18n:name="batch_limit" /> 107 </strong> 108 of <tal:block replace="batch_info/length" 109 i18n:name="batch_length" /> 110 </span> 111 </div> 112 <br /> 113 </tal:block> 114 <table width="100%" cellspacing="0" cellpadding="0" 115 summary="zoomed layout" 116 tal:condition="zoomed"> 117 <tr tal:repeat="item zoomed"> 118 <td align="left" valign="top"> 119 <tal:block define="no_form not:nothing; 120 info python:here.getContentInfo(item, level=1, cpsmcat=cpsmcat);"> 121 <metal:block use-macro="here/content_lib_info_summary/macros/info_summary" /> 122 <br /><br /> 123 </tal:block> 124 </td> 125 </tr> 126 </table> 127 <table width="100%" cellspacing="0" cellpadding="0" 128 summary="content layout column" 129 tal:condition="batches"> 130 <tr> 131 <td align="left" valign="top" 132 tal:repeat="batch_items batches"> 133 <tal:block condition="batch_items"> 134 <!-- a content_lib macro --> 135 <!-- $Id: content_lib_display_contents_column.pt 34674 2006-03-23 08:57:49Z madarche $ --> 136 137 <!-- Final display of items in a column using the given format --> 138 <tal:block define="no_form no_form|nothing; 139 site_wide site_wide|nothing; 140 format python:format or 'detail'; 141 choosen_ids python:request.SESSION.get('choosen_ids', []); 142 dummy python:request.SESSION.update({'choosen_ids': []}); 143 no_table python:format == 'detail_tab'; 144 use_radio use_radio|nothing; 145 input_type python: test(use_radio, 'radio', 'checkbox'); 146 input_name python: test(use_radio, 'ids', 'ids:list'); 147 member here/portal_membership/getAuthenticatedMember; 148 member_id member/id; 149 is_local_manager python:member.has_role( 150 ('Manager', 'WorkspaceManager'), here); 151 "> 152 <div id="ajax_psm" style="display:none" tal:condition="python:not no_form"> 153 ajax feedback 154 </div> 155 <tal:block condition="no_table"> 156 <tal:block repeat="item batch_items"> 157 <tal:block define="info python:here.getContentInfo(item, level=1, cpsmcat=cpsmcat); 158 review_state python:info['review_state']; 159 proxy_creator python:item.Creator(); 160 start repeat/item/start|nothing; 161 end repeat/item/end|nothing"> 162 <tal:block tal:condition="python:review_state!='draft' or (review_state=='draft' and proxy_creator == member_id) or is_local_manager"> 163 <metal:block use-macro="here/academics_content_lib_info_detail_tab/macros/info_detail_tab" /> 164 </tal:block> 165 </tal:block> 166 </tal:block> 167 <br /> 168 </tal:block> 169 </tal:block> 170 <tal:block tal:replace="nothing"> 171 XXX Deactivated for CPS 3.4.0, will be re-enabled for 3.4.1 172 173 <tal:block tal:condition="python:not no_form and sort_by is None" 174 tal:define="ajax_working_msg python:cpsmcat('ajax_working'); 175 ajax_working_msg python:ajax_working_msg.replace('\'', '\\\''); 176 ajax_failing_msg python:cpsmcat('ajax_failing'); 177 ajax_failing_msg python:ajax_failing_msg.replace('\'', '\\\'')"> 178 179 <script type="text/javascript" tal:content="structure string: 180 var editor = new CPSContainerEditor('draggable', 'droppable', 181 'droppable-in', '${format}', 182 '${ajax_working_msg}', 183 'folder_content', 'ajax_psm', 184 '${ajax_failing_msg}'); 185 // hooking observers 186 if (treeview_editor) { 187 loadScript('portletrefresher', '++resource++portletrefresher.js'); 188 189 function refresh(event_id, trigger_id) { 190 191 portlet_refresher.refreshPortlet(trigger_id); 192 editor.reload(); 193 } 194 195 if ($$('portlet_navigation_sections')) 196 container_events.observeEvent('element_dropped', 'portlet_navigation_sections', 197 refresh); 198 199 if ($$('portlet_navigation_workspaces')) 200 container_events.observeEvent('element_dropped', 'portlet_navigation_workspaces', 201 refresh); 202 203 } 204 205 "> 206 </script> 207 208 </tal:block> 209 </tal:block> 210 </tal:block> 211 212 </td> 213 </tr> 214 </table> 215 <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1"> 216 <div class="pageNavigationLayout"> 217 <a tal:define="previous batch_info/previous" 218 tal:condition="python:previous is not None" 219 tal:attributes="href python:'%s?%s'%(request['URL'], 220 mq(request.form, b_start=0))"> 221 (<<)</a> 222 <a tal:define="previous batch_info/previous" 223 tal:condition="python:previous is not None" 224 tal:attributes="href python:'%s?%s'%(request['URL'], 225 mq(request.form, b_start=previous))" 226 i18n:translate="batch_previous">Previous</a> 227 <tal:block repeat="page batch_info/pages"> 228 <tal:block condition="python:page != batch_info['start'] - 1"> 229 <a tal:attributes="href python:'%s?%s'%(request['URL'], 230 mq(request.form, b_start=page))" 231 tal:content="repeat/page/number">1</a> 232 </tal:block> 233 <tal:block condition="python:page == batch_info['start'] - 1"> 234 <span tal:content="string:${repeat/page/number}" /> 235 </tal:block> 236 </tal:block> 237 <a tal:define="next batch_info/next" 238 tal:condition="python:next is not None" 239 tal:attributes="href python:'%s?%s'%(request['URL'], 240 mq(request.form, b_start=next))" 241 i18n:translate="batch_next">Next</a> 242 <a tal:define="next batch_info/next; 243 last_page python:batch_info['pages'][-1]" 244 tal:condition="python:next is not None" 245 tal:attributes="href python:'%s?%s'%(request['URL'], 246 mq(request.form, b_start=last_page))"> 247 (>>)</a> 248 </div> 249 </tal:block> 250 </tal:block> 67 251 68 252 <table width="100%" cellspacing="0" cellpadding="2" -
WAeUP_SRP/trunk/skins/waeup_custom/getCustomDisplayParams.py
r332 r432 28 28 'sort_by': None, 29 29 'direction': 'asc', 30 'items_per_page': 30,30 'items_per_page': 50, 31 31 'nav_action': 'folder_view', 32 32 'filter': 0,
Note: See TracChangeset for help on using the changeset viewer.