Changeset 326 for WAeUP_SRP/trunk


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

=several types + views

Location:
WAeUP_SRP/trunk
Files:
2 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/rolemap.xml

    r288 r326  
    22<rolemap>
    33  <roles>
    4     <role name="UniversityManager"/>
    5     <role name="FacultyManager"/>
    6     <role name="DepartmentManager"/>
    74    <role name="CourseAdvisor"/>
    85    <role name="Lecturer"/>
     
    107  </roles>
    118  <permissions>
    12     <permission name="Certificate Course Delete"
    13                 acquire="True">
    14       <role name="Owner"/>
    15       <role name="Manager"/>
    16       <role name="SectionManager"/>
    17       <role name="CourseAdvisor"/>
    18     </permission>
    199    <permission name="Add portal content" acquire="True">
    20       <role name="Owner"/>
    21       <role name="Manager"/>
    2210      <role name="Student"/>
    2311    </permission>
    2412    <permission name="Add portal folders" acquire="True">
    25       <role name="Owner"/>
    26       <role name="Manager"/>
    2713      <role name="Student"/>
    2814    </permission>
    2915    <permission name="Delete objects" acquire="True">
    30       <role name="Owner"/>
    3116      <role name="Manager"/>
    3217    </permission>
  • WAeUP_SRP/trunk/profiles/default/roots/campus.xml

    r289 r326  
    11<?xml version="1.0"?>
    22<object name="campus">
    3   <property name="title">University Portal</property>
     3  <property name="Title">University Portal</property>
    44  <property name=".cpsskins_theme">waeup_plain_theme</property>
    55  <object name="academics" portal_type="AcademicsFolder" />
  • WAeUP_SRP/trunk/profiles/default/roots/campus/accommodation.xml

    r289 r326  
    11<?xml version="1.0"?>
    22<object name="accommodation">
    3   <property name="title">Accommodation</property>
     3  <property name="Title">Accommodation</property>
    44</object>
  • WAeUP_SRP/trunk/profiles/default/roots/campus/students.xml

    r289 r326  
    11<?xml version="1.0"?>
    22<object name="students">
    3   <property name="title">Students</property>
     3  <property name="Title">Students</property>
    44</object>
  • WAeUP_SRP/trunk/profiles/default/types/AcademicsFolder.xml

    r308 r326  
    1313 <property name="allowed_content_types">
    1414  <element value="Faculty"/>
    15   <element value="SCFolder"/>
    1615 </property>
    1716 <property name="allow_discussion">False</property>
     
    2625 <property name="layouts">
    2726  <element value="common"/>
    28   <element value="folder"/>
     27  <element value="metadata"/>
    2928 </property>
    3029 <property name="layout_clusters">
  • WAeUP_SRP/trunk/profiles/default/types/AccoFolder.xml

    r319 r326  
    2424 <property name="layouts">
    2525  <element value="common"/>
     26  <element value="metadata"/>
    2627 </property>
    2728 <property name="layout_clusters">
  • WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml

    r319 r326  
    2525 <property name="layouts">
    2626  <element value="common"/>
     27  <element value="metadata"/>
    2728 </property>
    2829 <property name="layout_clusters">
  • WAeUP_SRP/trunk/profiles/default/types/StudyLevel.xml

    r319 r326  
    3232 <property name="cps_is_portlet">False</property>
    3333 <alias from="(Default)" to="level_view"/>
     34 <alias from="created" to="level_created"/>
    3435 <alias from="view" to="level_view"/>
    3536 <action title="View" action_id="view" category="object" condition_expr=""
  • 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.