Changeset 4098 for WAeUP_SRP/trunk/skins
- Timestamp:
- 29 Apr 2009, 08:05:56 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/cps_custom/config_form.pt
r3000 r4098 98 98 </th> 99 99 <td> 100 <input name="static_dir" id=" portal_session" value=""100 <input name="static_dir" id="static_dir" value="" 101 101 tal:attributes="value pprops/static_dir" /> 102 102 </td> … … 116 116 </td> 117 117 </tr> 118 118 <tr> 119 <th> 120 <label> 121 Date 1 122 </label> 123 </th> 124 <td> 125 <input type="text" name="date1" id="date1" value="" size="30" 126 tal:attributes="value pprops/date1" /> 127 </td> 128 </tr> 129 <tr> 130 <th> 131 <label> 132 Date 2 133 </label> 134 </th> 135 <td> 136 <input name="date2" id="date2" value="" size="30" 137 tal:attributes="value pprops/date2" /> 138 </td> 139 </tr> 140 <tr> 141 <th> 142 <label> 143 Date 3 144 </label> 145 </th> 146 <td> 147 <input name="date3" id="date3" value="" size="30" 148 tal:attributes="value pprops/date3" /> 149 </td> 150 </tr> 151 119 152 </table> 120 153 <p> -
WAeUP_SRP/trunk/skins/cps_custom/reconfig.py
r3000 r4098 19 19 static_dir=form.get('static_dir'), 20 20 institution_title=form.get('institution_title'), 21 date1=form.get('date1'), 22 date2=form.get('date2'), 23 date3=form.get('date3'), 24 date4=form.get('date4'), 25 date5=form.get('date5'), 26 date6=form.get('date6'), 21 27 ) 22 28 -
WAeUP_SRP/trunk/skins/waeup_ois/academic_report_slip.pt
r4077 r4098 12 12 term_complete info/complete1; 13 13 term options/term; 14 sem_series python:(('Term One','normal1','complete1','score_calc_average_1','yga1','counter1' ),15 ('Term Two','normal2','complete2','score_calc_average_2','yga2','counter2' ),16 ('Term Three','normal3','complete3','score_calc_average_3','yga3','counter3' ));14 sem_series python:(('Term One','normal1','complete1','score_calc_average_1','yga1','counter1','date1'), 15 ('Term Two','normal2','complete2','score_calc_average_2','yga2','counter2','date2'), 16 ('Term Three','normal3','complete3','score_calc_average_3','yga3','counter3','date3')); 17 17 sem python:sem_series[int(term)-1]; 18 18 "> … … 71 71 <tr > 72 72 <td width=50%> </td> 73 <td width=20%>Date: n/a</td> 73 <td width=20%>Date: <span tal:content="python:info[sem[6]]"/> 74 </td> 74 75 <td width=30% align='center'> 75 76 <img tal:attributes="src string:${static_base_url}butler.jpg" alt="Signature"/> -
WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py
r4036 r4098 18 18 """ 19 19 20 import DateTime 21 20 22 info = context.waeup_tool.getAccessInfo(context) 21 23 student_id = info['student_id'] … … 24 26 25 27 mtool = context.portal_membership 28 pprops = context.portal_properties 26 29 member = mtool.getAuthenticatedMember() 27 30 member_id = str(member) … … 177 180 info['app_doc'] = student.application.getContent() 178 181 182 if pprops.session == info['session']: 183 info['date1'] = DateTime.DateTime(pprops.date1).strftime('%d/%m/%Y') 184 info['date2'] = DateTime.DateTime(pprops.date2).strftime('%d/%m/%Y') 185 info['date3'] = DateTime.DateTime(pprops.date3).strftime('%d/%m/%Y') 186 else: 187 info['date1'] = 'n/a' 188 info['date2'] = 'n/a' 189 info['date3'] = 'n/a' 190 191 179 192 return info
Note: See TracChangeset for help on using the changeset viewer.