Changeset 1692


Ignore:
Timestamp:
20 Apr 2007, 15:52:19 (18 years ago)
Author:
Henrik Bettermann
Message:

2nd clean-up

Location:
WAeUP_SRP/branches/regebro-noskins/skins
Files:
4 added
13 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/regebro-noskins/skins/waeup_default/isStaff.py

    r1077 r1692  
    2222       "SectionOfficer" in roles or\
    2323       "ClearanceOfficer" in roles or\
    24        "ClearanceOfficers" in member.getGroups()
     24       "ClearanceOfficers" in member.getGroups() or\
     25       "CourseAdvisers" in member.getGroups()
  • WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/get_waeup_skin.py

    r1685 r1692  
    88member = mtool.getAuthenticatedMember()
    99roles = member.getRoles()
    10 if 'Manager' in roles or 'SectionManager' in roles:
    11     return 'WAeUP_Backoffice'
    12 return 'WAeUP_Student'
     10if 'Student' in roles or mtool.isAnonymousUser():
     11     return 'WAeUP_Student'
     12return 'WAeUP_Backoffice'
     13
  • WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/main_template.pt

    r1690 r1692  
    2424  in_ws here/isInWorkspace;
    2525  waeup_skin here/get_waeup_skin;
     26  student_theme python:test(waeup_skin == 'WAeUP_Student',1,0);
     27  navigation_slot python:test(student_theme,'student_navigation_slot','navigation_slot');
     28  object_tabs python:test(student_theme,'student_object_tabs','staff_object_tabs');
     29 
    2630  ">
    2731  <metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     
    4751                tal:attributes="href string:${base_url}${waeup_skin}/render.css" />
    4852          <link rel="stylesheet" type="text/css" media="all"
    49                 tal:attributes="href string:${base_url}common-css2.css" />               
     53                tal:attributes="href string:${base_url}common2.css" />               
    5054          <metal:block define-slot="style_slot" />
    5155        </metal:block>
     
    6266            tal:attributes="href string:${base_url}icons/ng.png"
    6367            type="image/png" />
    64       <!-- CSS1 -->
    6568    </head>
    6669    <body tal:condition="emptybody"
     
    8689     
    8790     
    88       <table summary="Page Block"
     91      <table summary="Logo Block"
    8992             style="margin-left: auto; margin-right: auto; width: 100%;"
    9093             class="shapeNoBorder colorTransparent" cellpadding="0"
     
    9497            <td style="width: 20px;" valign="top"></td>
    9598            <td valign="top" style="width: 80px; padding: 0.5em; text-align: right;">
    96               <img tal:attributes="src string:${base_url}uniben_mark.jpg"  alt="Logo"
     99              <img tal:attributes="src string:${base_url}images/uniben_mark.jpg"  alt="Logo"
    97100                       height="84" width="82" />
    98101            </td>
    99102            <td style="padding: 2em 0em 0em 0em; text-align: left;" valign="top">
    100               <img tal:attributes="src string:${base_url}uniben_logo.gif"
     103              <img tal:attributes="src string:${base_url}images/uniben_logo.gif"
    101104                       alt="Logo" height="51" width="234" />
    102105            </td>
     
    105108        </tbody>
    106109      </table>
    107      
    108      
    109     <metal:block use-macro="here/?waeup_skin/theme/macros/navigation" />
    110     <metal:block use-macro="here/?waeup_skin/theme/macros/session" />
    111        
    112    
    113     <table summary="Page Block"
     110
     111      <table summary="Navigation Block"
     112             style="margin-left: auto; margin-right: auto; width: 100%;"
     113             class="shapeNoBorder colorTransparent" cellpadding="0"
     114             cellspacing="0">
     115        <tbody>
     116          <tr>
     117            <td style="width: 20px;" valign="top"></td>
     118            <td style="" valign="top">
     119              <div id="navigation_slot"
     120                       style="padding: 0em 0em 1px; text-align: right;"
     121                       class="fontColornavigation fontShapenavigation portalTabTabStyle cpsskinsHBox body">
     122                 <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot=navigation_slot)"
     123                  tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
     124              </div>
     125            </td>
     126            <td style="width: 20px;" valign="top"></td>
     127          </tr>
     128        </tbody>
     129      </table>
     130     
     131     
     132      <table summary="Main Table Block 1"
     133           style="margin-left: auto; margin-right: auto; width: 100%;"
     134           class="" cellpadding="0" cellspacing="0">
     135      <tbody>
     136        <tr>
     137          <td style="width: 20px;" valign="top"></td>
     138          <td style="width: 150px; text-align: left;"
     139              class="shape colorStaffBarColor" valign="top">
     140            <div id="portal_session" style="padding: 0.4em 0.4em 0.4em 0.3em;"
     141                 class="colorBarAreaColor fontColordefaultnovisitedlinks fontShapeaverage shapeAreaShape9">
     142                    <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='portal_session')"
     143                               tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
     144            </div>
     145          </td>
     146          <td style="text-align: left; padding: 0.2em 0.2em 0em;" class="shape colorBarColor" valign="top">
     147            <div id="object_tabs" class="fontColornavigation fontShapeaverage cpsskinsHBox body">
     148                <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot=object_tabs)"
     149                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
     150            </div>
     151          </td>
     152          <td tal:condition="not:student_theme"
     153              class="shape colorBarColor" valign="top" style="text-align: right;padding: 0.2em 0.2em 0em; width: 280px;">
     154            <div id="status_slot" class="fontColordefaultfontcolors fontShapeaverage cpsskinsHBox body">
     155                <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='status_slot')"
     156                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
     157            </div>
     158          </td>
     159          <td style="width: 20px;" class="shape color"
     160              valign="top"></td>
     161        </tr>
     162      </tbody>
     163    </table>
     164 
     165 
     166 
     167    <table summary="Main Table Block 2"
    114168             style="margin-left: auto; margin-right: auto; width: 100%;"
    115169             class="" cellpadding="0" cellspacing="0">
    116170      <tbody>
    117171        <tr>
    118           <metal:block use-macro="here/?waeup_skin/theme/macros/tdactions" />
     172          <td style="width: 20px;" valign="top"></td>
     173          <td style="width: 150px;padding: 0.4em 0.2em 0.2em;text-align: left;"
     174              class="shape colorBarColor fontColornavigation fontShapeaverage boxShapenavbox cpsskinsBox body" valign="top">
     175            <div id="staff_actions_slot" class="body">
     176              <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='staff_actions_slot')"
     177                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
     178              <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='global_actions_slot')"
     179                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
     180              <tal:block tal:condition="student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='student_actions_slot')"
     181                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
     182              <span tal:condition="student_theme">
     183              <br />
     184                <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_workflow')"
     185                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
     186              </span>                         
     187            </div>
     188            <div style="padding: 0.2em;">
     189              <div style="text-align: left;"
     190                   class="fontColornavigation fontShapeaverage"></div>
     191            </div>
     192          </td>
    119193          <td style="" class="shapeAreaShape5 colorBarAreaColor" valign="top">
    120194            <div style="padding: 0.5em; text-align: left;" class="fontColordefaultfontcolors fontShapeaverage">
     
    130204   
    131205   
    132     <table summary="Page Block"
     206    <table summary="Copyright Info Block"
    133207             style="margin-left: auto; margin-right: auto; width: 100%;"
    134208             cellspacing="0">
  • WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/slip_template.pt

    r1690 r1692  
    4343        <metal:block fill-slot="style_slot">
    4444          <link rel="stylesheet" type="text/css" media="all"
    45                 title="CPSSkins styles"
    4645                tal:attributes="href string:${base_url}common.css" />
    4746          <link rel="stylesheet" type="text/css" media="all"
    48                 title="CPSSkins styles"
    4947                tal:attributes="href string:${base_url}${waeup_skin}render.css" />
    50           <style type="text/css" media="all"
    51                  tal:content="string:@import url(${base_url}common-css2.css);"/>
     48          <link rel="stylesheet" type="text/css" media="all"
     49                tal:attributes="href string:${base_url}common2.css" />   
    5250          <metal:block define-slot="style_slot" />
    5351        </metal:block>
     
    8280      <a href="http://uniben.waeup.org/" accesskey="7"></a>
    8381    </div>
    84     <table summary="header"
     82   
     83    <table summary="Logo Block"
    8584           style="margin-left: auto; margin-right: auto; width: 100%;"
     85           class="shapeNoBorder colorTransparent" cellpadding="0"
    8686           cellspacing="0">
    8787      <tbody>
    8888        <tr>
    8989          <td style="width: 20px;" valign="top"></td>
    90           <td style="width: 80px;" valign="top">
    91             <div style="padding: 0.5em;">
    92               <div style="padding: 0.5em; text-align: right;"
    93                    class="fontColordefaultfontcolors fontShapeaverage">
    94                 <img tal:attributes="src string:${base_url}uniben_mark.jpg"  alt="Logo"
     90          <td valign="top" style="width: 80px; padding: 0.5em; text-align: right;">
     91            <img tal:attributes="src string:${base_url}images/uniben_mark.jpg"  alt="Logo"
    9592                     height="84" width="82" />
    96               </div>
    97             </div>
    9893          </td>
    99           <td style="" valign="top">
    100             <div style="padding: 1.5em 0em 0em;">
    101               <div style="padding: 0.5em; text-align: left;"
    102                    class="fontColordefaultfontcolors fontShapeaverage">
    103                 <img tal:attributes="src string:${base_url}uniben_logo.gif"
     94          <td style="padding: 2em 0em 0em 0em; text-align: left;" valign="top">
     95            <img tal:attributes="src string:${base_url}images/uniben_logo.gif"
    10496                     alt="Logo" height="51" width="234" />
    105               </div>
    106             </div>
    10797          </td>
    10898          <td style="width: 20px;" valign="top"></td>
     
    110100      </tbody>
    111101    </table>
    112     <table cellpadding="0" cellspacing="0" summary="Main"
     102     
     103    <table summary="Main Block" cellpadding="0" cellspacing="0"
    113104           style="margin-left:auto;margin-right:auto;width:100%;"
    114105           class="">
     
    116107        <td valign="top" style="width:700px"
    117108            class="shape color">
    118           <div style="padding: 0.2em">
    119             <div style="text-align: left;"
    120                  class="fontColordefaultfontcolors fontShapeTitleindex shapeAreaShape">
    121               <div style="text-align:left; padding:0">
    122                 <div style="padding:2em;">
     109          <div style="padding:2em; text-align: left;"
     110               class="fontColordefaultfontcolors fontShapeTitleindex shapeAreaShape">
    123111                  <metal:block define-slot="header" />
    124112                  <metal:block define-slot="main" />
    125113                  <metal:block define-slot="sub" />
    126                 </div>
    127               </div>
    128             </div>
    129114          </div>
    130115        </td>
  • WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/widget_portlet_actions.pt

    r1690 r1692  
    1717         <tal:block condition="python:show_icons and not icon_tag">
    1818           <img tal:attributes="src
    19              string:${base_url}noicon.png;
     19             string:${base_url}images/noicon.png;
    2020             alt action/title" />
    2121         </tal:block>
  • WAeUP_SRP/branches/regebro-noskins/skins/waeup_epayment/payment_receipt.pt

    r1427 r1692  
    1 <metal:body use-macro="here/main_template/macros/master">
     1<metal:body use-macro="here/slip_template/macros/master">
    22    <metal:main fill-slot="main"
    33                tal:define="info context/getStudentBaseInfo;
Note: See TracChangeset for help on using the changeset viewer.