Changeset 1692 for WAeUP_SRP/branches
- Timestamp:
- 20 Apr 2007, 15:52:19 (18 years ago)
- 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 22 22 "SectionOfficer" in roles or\ 23 23 "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 8 8 member = mtool.getAuthenticatedMember() 9 9 roles = member.getRoles() 10 if 'Manager' in roles or 'SectionManager' in roles: 11 return 'WAeUP_Backoffice' 12 return 'WAeUP_Student' 10 if 'Student' in roles or mtool.isAnonymousUser(): 11 return 'WAeUP_Student' 12 return 'WAeUP_Backoffice' 13 -
WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/main_template.pt
r1690 r1692 24 24 in_ws here/isInWorkspace; 25 25 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 26 30 "> 27 31 <metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" … … 47 51 tal:attributes="href string:${base_url}${waeup_skin}/render.css" /> 48 52 <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" /> 50 54 <metal:block define-slot="style_slot" /> 51 55 </metal:block> … … 62 66 tal:attributes="href string:${base_url}icons/ng.png" 63 67 type="image/png" /> 64 <!-- CSS1 -->65 68 </head> 66 69 <body tal:condition="emptybody" … … 86 89 87 90 88 <table summary=" PageBlock"91 <table summary="Logo Block" 89 92 style="margin-left: auto; margin-right: auto; width: 100%;" 90 93 class="shapeNoBorder colorTransparent" cellpadding="0" … … 94 97 <td style="width: 20px;" valign="top"></td> 95 98 <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" 97 100 height="84" width="82" /> 98 101 </td> 99 102 <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" 101 104 alt="Logo" height="51" width="234" /> 102 105 </td> … … 105 108 </tbody> 106 109 </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" 114 168 style="margin-left: auto; margin-right: auto; width: 100%;" 115 169 class="" cellpadding="0" cellspacing="0"> 116 170 <tbody> 117 171 <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> 119 193 <td style="" class="shapeAreaShape5 colorBarAreaColor" valign="top"> 120 194 <div style="padding: 0.5em; text-align: left;" class="fontColordefaultfontcolors fontShapeaverage"> … … 130 204 131 205 132 <table summary=" PageBlock"206 <table summary="Copyright Info Block" 133 207 style="margin-left: auto; margin-right: auto; width: 100%;" 134 208 cellspacing="0"> -
WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/slip_template.pt
r1690 r1692 43 43 <metal:block fill-slot="style_slot"> 44 44 <link rel="stylesheet" type="text/css" media="all" 45 title="CPSSkins styles"46 45 tal:attributes="href string:${base_url}common.css" /> 47 46 <link rel="stylesheet" type="text/css" media="all" 48 title="CPSSkins styles"49 47 tal:attributes="href string:${base_url}${waeup_skin}render.css" /> 50 < styletype="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" /> 52 50 <metal:block define-slot="style_slot" /> 53 51 </metal:block> … … 82 80 <a href="http://uniben.waeup.org/" accesskey="7"></a> 83 81 </div> 84 <table summary="header" 82 83 <table summary="Logo Block" 85 84 style="margin-left: auto; margin-right: auto; width: 100%;" 85 class="shapeNoBorder colorTransparent" cellpadding="0" 86 86 cellspacing="0"> 87 87 <tbody> 88 88 <tr> 89 89 <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" 95 92 height="84" width="82" /> 96 </div>97 </div>98 93 </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" 104 96 alt="Logo" height="51" width="234" /> 105 </div>106 </div>107 97 </td> 108 98 <td style="width: 20px;" valign="top"></td> … … 110 100 </tbody> 111 101 </table> 112 <table cellpadding="0" cellspacing="0" summary="Main" 102 103 <table summary="Main Block" cellpadding="0" cellspacing="0" 113 104 style="margin-left:auto;margin-right:auto;width:100%;" 114 105 class=""> … … 116 107 <td valign="top" style="width:700px" 117 108 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"> 123 111 <metal:block define-slot="header" /> 124 112 <metal:block define-slot="main" /> 125 113 <metal:block define-slot="sub" /> 126 </div>127 </div>128 </div>129 114 </div> 130 115 </td> -
WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/widget_portlet_actions.pt
r1690 r1692 17 17 <tal:block condition="python:show_icons and not icon_tag"> 18 18 <img tal:attributes="src 19 string:${base_url} noicon.png;19 string:${base_url}images/noicon.png; 20 20 alt action/title" /> 21 21 </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"> 2 2 <metal:main fill-slot="main" 3 3 tal:define="info context/getStudentBaseInfo;
Note: See TracChangeset for help on using the changeset viewer.