Changeset 1901


Ignore:
Timestamp:
15 Jun 2007, 11:46:09 (17 years ago)
Author:
joachim
Message:
 
Location:
WAeUP_SRP/trunk/skins/waeup_directory
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_directory/member_create_form.pt

    r953 r1901  
    55  "/>
    66<metal:block use-macro="here/main_template/macros/master">
    7   <metal:block fill-slot="style_slot">
    8     <tal:block define="global actions
    9       python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'create')"/>
    10 
    11     <link rel="Stylesheet" type="text/css" href=""
    12       tal:attributes="href string:${base_url}document.css" />
    13   </metal:block>
    14 
    15  
    16  
    177  <metal:block fill-slot="main" tal:define="
    18       dummy dir/checkCreateEntryAllowed;
    19       validate python: request.has_key('member_create_form');
    20       create_request python: validate and request or nothing;
    21       res python: dir.renderCreateEntryDetailed(
    22       validate=validate, request=create_request,
    23       created_callback='member_created');
    24       global rendered_main python: res[0];
    25       rendered_ok python: res[1];
    26       ds python: res[2];
    27       global portal_status_message python: validate and (rendered_ok and
    28         'psm_content_changed' or 'psm_content_error') or '';">
    29 
     8  actions python:context.getMembersDirectoryActions('create');
     9  dummy dir/checkCreateEntryAllowed;
     10  validate python: request.has_key('member_create_form');
     11  create_request python: validate and request or nothing;
     12  res python: dir.renderCreateEntryDetailed(
     13  validate=validate, request=create_request,
     14  created_callback='member_created');
     15  global rendered_main python: res[0];
     16  rendered_ok python: res[1];
     17  ds python: res[2];
     18  global portal_status_message python: validate and (rendered_ok and
     19  'psm_content_changed' or 'psm_content_error') or '';"
     20  >
     21    <span metal:use-macro="here/member_view/macros/members_actions" />
    3022    <h3>
    3123      Create Member     
    3224    </h3>       
    33 
    3425    <div tal:replace="structure rendered_main">Rendered main...</div>
    3526  </metal:block>
    36 
    3727</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_directory/member_edit_form.pt

    r953 r1901  
    66  "/>
    77<metal:block use-macro="here/main_template/macros/master">
    8 
    9   <metal:block fill-slot="style_slot">
    10     <tal:block define="global actions
    11       python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'edit', id)"/>
    12     <link rel="Stylesheet" type="text/css" href=""
    13       tal:attributes="href string:${base_url}document.css" />
    14   </metal:block>
    15 
    168  <metal:block fill-slot="main" tal:define="
    17       title_field dir/title_field;
    18       validate python: request.has_key('member_edit_form');
    19       edit_request python: validate and request or nothing;
    20       res python: dir.renderEditEntryDetailed(id, request=edit_request);
    21       global rendered_main python: res[0];
    22       rendered_ok python: res[1];
    23       ds python: res[2];
    24       global title ds/?title_field|id;
    25       portal_status_message request/portal_status_message|nothing;
    26       global portal_status_message python: portal_status_message or (validate
    27         and (rendered_ok and 'psm_content_changed' or 'psm_content_error'))
    28         or '';">
    29        
     9  actions python:context.getMembersDirectoryActions('edit');
     10  title_field dir/title_field;
     11  validate python: request.has_key('member_edit_form');
     12  edit_request python: validate and request or nothing;
     13  res python: dir.renderEditEntryDetailed(id, request=edit_request);
     14  global rendered_main python: res[0];
     15  rendered_ok python: res[1];
     16  ds python: res[2];
     17  global title ds/?title_field|id;
     18  portal_status_message request/portal_status_message|nothing;
     19  global portal_status_message python: portal_status_message or (validate
     20  and (rendered_ok and 'psm_content_changed' or 'psm_content_error'))
     21  or '';"
     22  >
     23    <span metal:use-macro="here/member_view/macros/members_actions" />
    3024    <h3>
    3125      <span tal:content="ds/fullname" />     
    3226    </h3>       
    33        
    3427    <div tal:replace="structure rendered_main">Rendered main...</div>
    3528  </metal:block>
    36 
    3729</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_directory/member_view.pt

    r1796 r1901  
    55  global dirtitle dir/title_or_id;
    66  "/>
    7 <metal:block use-macro="here/main_template/macros/master">
    8 
    9   <metal:block fill-slot="head_slot">
    10     <tal:block define="global actions
    11       python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'view', id)"/>   
    12   </metal:block>
    13 
    14   <metal:block fill-slot="style_slot"> 
    15     <link rel="Stylesheet" type="text/css" href=""
    16       tal:attributes="href string:${base_url}document.css" />
    17   </metal:block>
    18 
    19 
    20 
     7  <metal:block use-macro="here/main_template/macros/master">
    218  <metal:block fill-slot="main" tal:define="
    22                                 res python: dir.renderEntryDetailed(id);
    23                                 global rendered_main python: res[0];
    24                                 ds python: res[1];
    25                                 global title ds/?title_field|id;">
    26    
     9  actions python:context.getMembersDirectoryActions('view');
     10  res python: dir.renderEntryDetailed(id);
     11  global rendered_main python: res[0];
     12  ds python: res[1];
     13  global title ds/?title_field|id;"
     14  >
     15    <div class="fontColordefaultfontcolors fontShapeaverage cpsskinsHBox body"
     16         metal:define-macro="members_actions">
     17      <span tal:repeat="action actions">
     18        <a tal:define="icon_tag action/icon_tag"
     19           tal:attributes="href action/url;
     20           class python:icon_tag and 'noicon' or None"
     21           >
     22          <tal:block condition="python:icon_tag"
     23                     content="structure icon_tag"/>
     24          <tal:block condition="python:not icon_tag">
     25            <img tal:attributes="src
     26            string:${base_url}noicon.png;
     27            alt action/title"
     28            />
     29          </tal:block>
     30          <tal:block i18n:translate="" content="action/title" />
     31        </a>
     32      </span>
     33    </div>
    2734    <h3>
    2835      <span tal:content="ds/fullname" />     
    2936    </h3>
    30 
    31    
    3237    <div tal:replace="structure rendered_main">Rendered main...</div>
    3338    <input type="submit" name="back" i18n:attributes="value"
    34       class="standalone" value="button_back" onClick="history.back()" />
     39           class="standalone" value="button_back" onClick="history.back()" />
    3540  </metal:block>
     41</metal:block>
    3642
    37 </metal:block>
  • WAeUP_SRP/trunk/skins/waeup_directory/search_members_form.pt

    r953 r1901  
    44  global dirtitle dir/title_or_id;
    55  "/>
    6 <metal:block use-macro="here/main_template/macros/master">
    7   <metal:block fill-slot="style_slot">
    8     <tal:block define="dummy
    9       python:context.setDirectoryBreadCrumbs(request, dirname, dir, dirtitle)"/>
    10     <tal:block define="global actions
    11       python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'search')"/>
    12 
    13     <link rel="Stylesheet" type="text/css" href=""
    14       tal:attributes="href string:${base_url}document.css" />
    15 
    16   </metal:block>
    17 
     6  <metal:block use-macro="here/main_template/macros/master" >
    187  <metal:block fill-slot="header"/>
    19 
    208  <metal:block fill-slot="main" tal:define="
    21     validate python: request.has_key('cpsdirectory_search_button');
    22     res python: dir.renderSearchDetailed(request=request, validate=validate,
    23                                       callback='search_members');
    24     global rendered_main python: res[0];
    25     global ok python: res[1];
    26     ds python: res[2];
    27     global portal_status_message python: (validate and not ok and
    28       'psm_content_error') or request.form.get('portal_status_message', '');">
     9  actions python:context.getMembersDirectoryActions('search');
     10  validate python: request.has_key('cpsdirectory_search_button');
     11  res python: dir.renderSearchDetailed(request=request, validate=validate,
     12  callback='search_members');
     13  global rendered_main python: res[0];
     14  global ok python: res[1];
     15  ds python: res[2];
     16  global portal_status_message python: (validate and not ok and
     17  'psm_content_error') or request.form.get('portal_status_message', '');"
     18  >
     19    <span metal:use-macro="here/member_view/macros/members_actions" />
    2920    <h3>
    3021      Search Member Section
     
    3324    <div tal:replace="structure rendered_main">Rendered main...</div>
    3425  </metal:block>
    35 
    3626</metal:block>
Note: See TracChangeset for help on using the changeset viewer.