Changeset 5589 for WAeUP_SRP/trunk/skins
- Timestamp:
- 11 Nov 2010, 07:29:08 (14 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_futminna
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_futminna/config_form.pt
r5215 r5589 161 161 </td> 162 162 </tr> 163 <tr> 164 <th> 165 <label> 166 Enable Accommodation Booking: 167 </label> 168 </th> 169 <td> 170 <input type="checkbox" name="enable_acco_booking" id="enable_acco_booking" value="" 171 tal:attributes="value pprops/enable_acco_booking; 172 checked pprops/enable_acco_booking" /> 173 </td> 174 </tr> 163 175 164 176 </table> -
WAeUP_SRP/trunk/skins/waeup_futminna/getAccommodationInfo.py
r5042 r5589 16 16 import DateTime 17 17 18 booking_disabled = True 18 19 pprops = context.portal_properties 20 booking_disabled = not pprops.enable_acco_booking 21 19 22 20 23 request = context.REQUEST … … 88 91 d = {} 89 92 d['sex'] = 'male' 90 d['bt'] = 'all'93 #d['bt'] = 'all' 91 94 if student_record.sex: 92 95 d['sex'] = 'female' 96 97 if level == 100: 98 d['bt'] = 'fr' 99 else: 100 d['bt'] = 're' 93 101 94 102 info['sex']=d['sex']
Note: See TracChangeset for help on using the changeset viewer.