Changeset 326 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
17 Jul 2006, 19:51:03 (18 years ago)
Author:
joachim
Message:

=several types + views

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  
    1313                         version_in_tabs python:'version' in detail_tab_columns;
    1414                         context_url context_url|here/getContextUrl;
     15                         display_buttons context/academics_contents_display_buttons;
    1516                        ">
    1617<tal:block condition="start">
     
    1819  <thead>
    1920    <tr>
    20       <td> </td>
     21      <td tal:condition="display_buttons"> </td>
    2122      <th tal:condition="type_in_tabs" align="center">
    2223        <strong tal:define="sort_type python:sort_by=='type'"
     
    4950           tal:attributes="href python:'%s/changeDisplayParams?display_order=%s' % (context_url, test(sort_author and direction=='asc','author_desc','author_asc'))"
    5051           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">
    5354        <strong tal:define="sort_status python:sort_by=='status'"
    5455           tal:omit-tag="not:sort_status"><a href=""
     
    6869                '/folder_contents', '')"
    6970    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">
    7173    <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    7274           tal:condition="not:no_form"
     
    9597                               title info/description;">
    9698    <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>
    99101  <td align="right" tal:condition="size_in_tabs">
    100102    <span tal:condition="info/size|nothing" tal:content="info/size"> </span></td>
     
    103105  <td align="center" tal:condition="author_in_tabs">
    104106    <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"
    106108      tal:content="info/review_state" tal:attributes="class info/review_state"
    107109      i18n:translate="">published</td>
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt

    r317 r326  
    44                        direction params/direction;
    55                        format string:detail_tab;
     6                       
    67                        displayed python:request.get('displayed', None);
    78                       ">
     
    2526     style="display:none"
    2627     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>
    4428</metal:header>
    4529
     
    6044<metal:main fill-slot="main"
    6145  tal:define="list_here python:checkPerm('List folder contents', here);">
    62 
    6346  <div tal:condition="not: list_here"
    6447    tal:define="response request/RESPONSE;url here_url;">
     
    7962      class="folderButtons"
    8063      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;">
    8266      <tr>
    8367        <td align="left" valign="top" rowspan="3"></td>
    8468        <td align="left" valign="top">
    85           <span tal:condition="items">
     69          <span tal:condition="display_buttons" >
    8670            <input type="button" value="button_select_all" class="context"
    8771                   onclick="someJavaScriptFunctionThatWillBeReplaced"
     
    8973                   tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
    9074                                   % (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" />
    10275          </span>
    10376          <span tal:condition="can_del">
     
    11386        </td>
    11487      </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>
    13088    </table>
    13189  </form>
Note: See TracChangeset for help on using the changeset viewer.