- Timestamp:
- 10 Jan 2012, 21:38:44 (13 years ago)
- Location:
- main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser.py
r7332 r7447 29 29 from waeup.sirp.browser.viewlets import ( 30 30 ManageActionButton, PrimaryNavTab) 31 from waeup.sirp.browser.layout import jsaction, JSAction31 from waeup.sirp.browser.layout import jsaction, action 32 32 from waeup.sirp.interfaces import ISIRPObject 33 33 from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED … … 141 141 return 142 142 143 @ grok.action('Add hostel', validator=NullValidator)143 @action('Add hostel', validator=NullValidator) 144 144 def addSubunit(self, **data): 145 145 self.redirect(self.url(self.context, 'addhostel')) … … 158 158 pnav = 5 159 159 160 @ grok.action('Create hostel')160 @action('Create hostel') 161 161 def addHostel(self, **data): 162 162 hostel = Hostel() … … 230 230 return 231 231 232 @ grok.action('Save')232 @action('Save') 233 233 def save(self, **data): 234 234 msave(self, **data) 235 235 return 236 236 237 @ grok.action('Update all beds')237 @action('Update all beds') 238 238 def updateBeds(self, **data): 239 239 removed, added, modified, modified_beds = self.context.updateBeds() … … 245 245 return 246 246 247 @ grok.action('Switch reservation of selected beds')247 @action('Switch reservation of selected beds') 248 248 def switchReservations(self, **data): 249 249 form = self.request.form … … 273 273 return 274 274 275 @ grok.action('Release selected beds')275 @action('Release selected beds') 276 276 def releaseBeds(self, **data): 277 277 form = self.request.form … … 316 316 self.context.__parent__.hostel_name, co[1], co[2], co[3]) 317 317 318 @ grok.action('Save')318 @action('Save') 319 319 def save(self, **data): 320 320 msave(self, **data) -
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser_templates/containermanagepage.pt
r6959 r7447 1 1 <h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2> 2 <div class=" form-status" tal:define="status view/status" tal:condition="status"> Form Status:2 <div class="alert-message error" tal:define="status view/status" tal:condition="status"> Form Status: 3 3 <span i18n:translate="" tal:content="view/status"> Form status summary 4 4 </span> 5 5 </div> 6 <form action="." tal:attributes="action request/URL" method="POST" class="edit-form"enctype="multipart/form-data">7 <table class="zebra">6 <form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data"> 7 <table> 8 8 <thead> 9 9 <tr> … … 25 25 </tbody> 26 26 </table> 27 <div class="actionButtons"tal:condition="view/availableActions">27 <div tal:condition="view/availableActions"> 28 28 <span tal:repeat="action view/actions" tal:omit-tag=""> 29 29 <input tal:replace="structure action/render"/> -
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser_templates/containerpage.pt
r6959 r7447 5 5 </div> 6 6 7 <table class="zebra">7 <table> 8 8 <thead> 9 9 <tr> -
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/hostels/browser_templates/hostelmanagepage.pt
r7068 r7447 3 3 tal:content="view/label">Label</h2> 4 4 5 <div class=" form-status"5 <div class="alert-message error" 6 6 tal:define="status view/status" 7 7 tal:condition="status"> … … 18 18 19 19 <form action="." tal:attributes="action request/URL" method="POST" 20 class="edit-form"enctype="multipart/form-data">20 enctype="multipart/form-data"> 21 21 22 <div id="tabs"> 23 <ul> 24 <li><a href="#tab-1"><span>Hostel Data</span></a></li> 25 <li><a href="#tab-2"><span>Beds</span></a></li> 26 </ul> 22 <ul class="tabs" data-tabs="tabs"> 23 <li class="active"><a href="#tab-1"><span>Hostel Data</span></a></li> 24 <li><a href="#tab-2"><span>Beds</span></a></li> 25 </ul> 27 26 28 <div id="tab-1"> 29 <table class="zebra"> 27 <div class="tab-content"> 28 <div id="tab-1" class="active"> 29 <table class="form-table"> 30 30 <tbody> 31 31 <tal:block repeat="widget view/widgets"> 32 32 <tr> 33 <td class="label"> 34 <label tal:attributes="for widget/name"> 35 <span class="required" tal:condition="widget/required">*</span> 36 <span i18n:translate="" tal:content="widget/label">label</span>: 37 </label> 33 <td class="fieldname"> 34 <span class="required" tal:condition="widget/required">*</span> 35 <span i18n:translate="" tal:content="widget/label">label</span>: 38 36 </td> 39 <td class="field">37 <td> 40 38 <span class="widget" tal:content="structure widget"> 41 39 <input type="text" /> … … 45 43 </tal:error> 46 44 <tal:hint tal:condition="widget/hint"> 47 <span class="hint"tal:content="structure widget/hint">hint</span>45 <span tal:content="structure widget/hint">hint</span> 48 46 </tal:hint> 49 47 </td> … … 52 50 </tbody> 53 51 </table> 54 <div class="actionButtons"tal:condition="view/availableActions">52 <div tal:condition="view/availableActions"> 55 53 <span tal:repeat="action view/actions" 56 54 tal:omit-tag=""> … … 97 95 </table> 98 96 99 <div class="actionButtons"tal:condition="view/availableActions">97 <div tal:condition="view/availableActions"> 100 98 <span tal:repeat="action view/actions" 101 99 tal:omit-tag="">
Note: See TracChangeset for help on using the changeset viewer.