Changeset 326 for WAeUP_SRP/trunk/skins
- Timestamp:
- 17 Jul 2006, 19:51:03 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt
r309 r326 13 13 version_in_tabs python:'version' in detail_tab_columns; 14 14 context_url context_url|here/getContextUrl; 15 display_buttons context/academics_contents_display_buttons; 15 16 "> 16 17 <tal:block condition="start"> … … 18 19 <thead> 19 20 <tr> 20 <td > </td>21 <td tal:condition="display_buttons"> </td> 21 22 <th tal:condition="type_in_tabs" align="center"> 22 23 <strong tal:define="sort_type python:sort_by=='type'" … … 49 50 tal:attributes="href python:'%s/changeDisplayParams?display_order=%s' % (context_url, test(sort_author and direction=='asc','author_desc','author_asc'))" 50 51 i18n:translate="label_info_tab_author"></a></strong></th> 51 <th ></th>52 <th tal:condition=" status_in_tabs" align="center">52 <th tal:condition="display_buttons"></th> 53 <th tal:condition="python: display_buttons and status_in_tabs" align="center"> 53 54 <strong tal:define="sort_status python:sort_by=='status'" 54 55 tal:omit-tag="not:sort_status"><a href="" … … 68 69 '/folder_contents', '')" 69 70 tal:attributes="class python:test(repeat['item'].even(), 'even ajaxtd', 'odd ajaxtd')"> 70 <td align="left" valign="middle" style="width: 5px;"> 71 <td align="left" valign="middle" style="width: 5px;" 72 tal:condition="display_buttons"> 71 73 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 72 74 tal:condition="not:no_form" … … 95 97 title info/description;"> 96 98 <strong tal:content="info/long_title|info/title_or_id">ID</strong></a></td> 97 <td align="right" >98 <a href="dummy" tal:attributes="href string:${item/absolute_url}/academics_edit_form">[edit]</a></td>99 <td align="right" tal:condition="display_buttons"> 100 <a href="dummy" tal:attributes="href string:${item/absolute_url}/academics_edit_form">[edit]</a></td> 99 101 <td align="right" tal:condition="size_in_tabs"> 100 102 <span tal:condition="info/size|nothing" tal:content="info/size"> </span></td> … … 103 105 <td align="center" tal:condition="author_in_tabs"> 104 106 <span tal:content="info/creator"> </span></td> 105 <td align="center" tal:condition=" status_in_tabs"107 <td align="center" tal:condition="python:status_in_tabs and display_buttons" 106 108 tal:content="info/review_state" tal:attributes="class info/review_state" 107 109 i18n:translate="">published</td> -
WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt
r317 r326 4 4 direction params/direction; 5 5 format string:detail_tab; 6 6 7 displayed python:request.get('displayed', None); 7 8 "> … … 25 26 style="display:none" 26 27 tal:attributes="href string:${context_url}/folder_factories"></a> 27 <div style="text-align: right" tal:condition="python: False and (not here.isInWorkspace() or (here.isInWorkspace() and sort_by))">28 <form action="" method="post"29 tal:attributes="action string:${here_url}/changeDisplayParams">30 <p>31 <tal:block condition="python:not here.isInWorkspace()">32 <metal:params use-macro="here/content_lib_display_params_form/macros/display_params_form" />33 <input type="submit" value="button_apply" class="standalone"34 i18n:attributes="value" />35 </tal:block>36 <tal:block condition="python:here.isInWorkspace() and sort_by">37 <input type="hidden" name="display_order" value="None" />38 <input type="submit" value="label_none" class="standalone"39 i18n:attributes="value" />40 </tal:block>41 </p>42 </form>43 </div>44 28 </metal:header> 45 29 … … 60 44 <metal:main fill-slot="main" 61 45 tal:define="list_here python:checkPerm('List folder contents', here);"> 62 63 46 <div tal:condition="not: list_here" 64 47 tal:define="response request/RESPONSE;url here_url;"> … … 79 62 class="folderButtons" 80 63 tal:define="can_add python:checkPerm('Add portal content', here); 81 can_del python:checkPerm('Delete objects', here);"> 64 can_del python:checkPerm('Delete objects', here); 65 display_buttons context/academics_contents_display_buttons;"> 82 66 <tr> 83 67 <td align="left" valign="top" rowspan="3"></td> 84 68 <td align="left" valign="top"> 85 <span tal:condition=" items">69 <span tal:condition="display_buttons" > 86 70 <input type="button" value="button_select_all" class="context" 87 71 onclick="someJavaScriptFunctionThatWillBeReplaced" … … 89 73 tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' 90 74 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" /> 91 </span>92 <span tal:condition="python: False and can_add">93 <input type="submit" name="folder_cut:method" value="button_cut"94 class="context" i18n:attributes="value"95 tal:condition="can_del" />96 <input type="submit" name="folder_copy:method" value="button_copy"97 class="context" i18n:attributes="value" />98 </span>99 <span tal:condition="python:False and can_add and here.cb_dataValid()">100 <input type="submit" name="folder_paste:method" value="button_paste"101 class="context" i18n:attributes="value" />102 75 </span> 103 76 <span tal:condition="can_del"> … … 113 86 </td> 114 87 </tr> 115 <tr tal:define="isWsManager python:checkPerm('Change subobjects order',116 here);"117 tal:condition="python:False and isWsManager and sort_by is None">118 <td>119 <input type="submit" value="button_move_up" class="context moveUp"120 i18n:attributes="value" name="moveItemsUp:method" />121 <input type="submit" value="button_move_down" class="context moveDown"122 i18n:attributes="value" name="moveItemsDown:method" />123 <input type="submit" value="button_move_top" class="context moveTop"124 i18n:attributes="value" name="moveItemsTop:method" />125 <input type="submit" value="button_move_bottom"126 class="context moveBottom"127 i18n:attributes="value" name="moveItemsBottom:method" />128 </td>129 </tr>130 88 </table> 131 89 </form>
Note: See TracChangeset for help on using the changeset viewer.