Changeset 7467 for main/waeup.sirp/trunk/src/waeup/sirp/hostels
- Timestamp:
- 13 Jan 2012, 09:00:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py
r7459 r7467 100 100 grok.template('containerpage') 101 101 label = 'Accommodation Section' 102 title = 'Hostels'103 102 pnav = 5 104 103 … … 118 117 grok.template('containermanagepage') 119 118 pnav = 5 120 title = 'Hostels'121 119 label = 'Manage accommodation section' 122 120 … … 154 152 #grok.template('hosteladdpage') 155 153 form_fields = grok.AutoFields(IHostel) 156 title = 'Hostels'157 154 label = 'Add hostel' 158 155 pnav = 5 … … 187 184 return self.context.hostel_name 188 185 189 @property190 def title(self):191 return self.context.hostel_name192 193 186 class HostelManageActionButton(ManageActionButton): 194 187 grok.order(1) … … 214 207 'Release selected beds'] 215 208 not_occupied = NOT_OCCUPIED 216 217 @property218 def title(self):219 return self.context.hostel_name220 209 221 210 @property … … 310 299 pnav = 5 311 300 312 @property313 def title(self):314 co = self.context.getBedCoordinates()315 return '%s, Block %s, Room %s, Bed %s' % (316 self.context.__parent__.hostel_name, co[1], co[2], co[3])317 318 301 @action('Save') 319 302 def save(self, **data):
Note: See TracChangeset for help on using the changeset viewer.