Changeset 7451 for main/waeup.sirp/branches/henrik-bootstrap/src/waeup
- Timestamp:
- 12 Jan 2012, 08:34:09 (13 years ago)
- Location:
- main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser.py
r7449 r7451 38 38 from waeup.sirp.browser.interfaces import ICaptchaManager 39 39 from waeup.sirp.browser.breadcrumbs import Breadcrumb 40 from waeup.sirp.browser.layout import NullValidator, jsaction, action 40 from waeup.sirp.browser.layout import ( 41 NullValidator, jsaction, action, UtilityView) 41 42 from waeup.sirp.browser.pages import add_local_role, del_local_roles 42 43 from waeup.sirp.browser.resources import datepicker, tabs, datatable, warning … … 409 410 'applicant_id', 'firstname', 'lastname','email', 'course1') 410 411 411 class CreateStudentPage( grok.View):412 class CreateStudentPage(UtilityView, grok.View): 412 413 """Create a student object from applicatnt data 413 414 and copy applicant object. … … 426 427 return 427 428 428 class AcceptanceFeePaymentAddPage( grok.View):429 class AcceptanceFeePaymentAddPage(UtilityView, grok.View): 429 430 """ Page to add an online payment ticket 430 431 """ … … 493 494 self.context.__parent__.display_fullname,self.context.p_id) 494 495 495 class OnlinePaymentCallbackPage( grok.View):496 class OnlinePaymentCallbackPage(UtilityView, grok.View): 496 497 """ Callback view 497 498 """ … … 525 526 return 526 527 527 class ExportPDFPaymentSlipPage( grok.View):528 class ExportPDFPaymentSlipPage(UtilityView, grok.View): 528 529 """Deliver a PDF slip of the context. 529 530 """ … … 552 553 self.context.__parent__, applicantview) 553 554 554 class ExportPDFPage( grok.View):555 class ExportPDFPage(UtilityView, grok.View): 555 556 """Deliver a PDF slip of the context. 556 557 """ … … 763 764 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year') 764 765 form_fields['phone'].custom_widget = PhoneWidget 766 form_fields['applicant_id'].for_display = True 765 767 grok.template('applicanteditpage') 766 768 manage_applications = False -
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/static/waeup-base.css
r7450 r7451 8 8 9 9 body { 10 padding-top: 60px;10 padding-top: 56px; 11 11 background-color: #EEEEEE; 12 12 } 13 13 14 .content { 15 background-color: #FFFFFF; 16 margin-left: -20px; 17 margin-right: -20px; 18 padding-bottom: 20px; 19 padding-left: 20px; 20 padding-right: 20px; 21 padding-top: 20px; 22 border-top-left-radius: 4px; 23 border-top-right-radius: 4px; 14 .container-fluid>.sidebar { 15 width: 165px; 16 } 17 18 .container-fluid > .content { 19 margin-left: 180px; 24 20 } 25 21 26 22 .well { 27 background-color: #FFFFFF; 23 border: 0px; 24 background-color: #FFFFFF; 25 padding-bottom: 12px; 26 padding-left: 12px; 27 padding-right: 12px; 28 padding-top: 12px; 28 29 } 29 30 30 .breadcrumb { 31 background-color: #FFFFFF; 32 background-image: None; 33 border: 0px; 31 .content { 32 background-color: #FFFFFF; 33 margin-left: -20px; 34 margin-right: -20px; 35 padding-bottom: 16px; 36 padding-left: 20px; 37 padding-right: 20px; 38 padding-top: 16px; 39 border-top-left-radius: 3px; 40 border-top-right-radius: 3px; 34 41 } 35 42 … … 41 48 margin-left: 20px; 42 49 margin-right: 20px; 43 min-width: 940px; 50 margin-bottom: 14px; 51 padding-left: 20px; 52 padding-right: 20px; 53 width: 940px; 54 background-color: #FFFFFF; 55 background-image: None; 56 border: 0px; 57 border-top-left-radius: 3px; 58 border-top-right-radius: 3px; 44 59 } 45 60 … … 74 89 75 90 .actionbar { 76 margin-bottom: 20px;91 margin-bottom: 16px; 77 92 } 78 93 -
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/templates/staffsitelayout.pt
r7450 r7451 64 64 </div> 65 65 </div> 66 <div class="span1 2content">66 <div class="span13 content"> 67 67 <div 68 68 tal:define="message context/@@messages" -
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/browser.py
r7447 r7451 41 41 from waeup.sirp.browser.viewlets import ( 42 42 ManageActionButton, AddActionButton) 43 from waeup.sirp.browser.layout import jsaction, action 43 from waeup.sirp.browser.layout import jsaction, action, UtilityView 44 44 from waeup.sirp.interfaces import ( 45 45 ISIRPObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm, … … 293 293 if not self.hitlist: 294 294 self.flash('No student found.') 295 if 'remove' in form: 296 self.flash('No item selected.') 295 297 return 296 298 entries = form['entries'] … … 581 583 return 582 584 583 class StudentClearPage( grok.View):585 class StudentClearPage(UtilityView, grok.View): 584 586 """ Clear student by clearance officer 585 587 """ … … 600 602 return 601 603 602 class StudentRejectClearancePage( grok.View):604 class StudentRejectClearancePage(UtilityView, grok.View): 603 605 """ Reject clearance by clearance officers 604 606 """ … … 822 824 target = 'course_registration.pdf' 823 825 824 class ExportPDFCourseRegistrationSlipPage( grok.View):826 class ExportPDFCourseRegistrationSlipPage(UtilityView, grok.View): 825 827 """Deliver a PDF slip of the context. 826 828 """ … … 955 957 return 956 958 957 class ValidateCoursesPage( grok.View):959 class ValidateCoursesPage(UtilityView, grok.View): 958 960 """ Validate course list by course adviser 959 961 """ … … 976 978 return 977 979 978 class RejectCoursesPage( grok.View):980 class RejectCoursesPage(UtilityView, grok.View): 979 981 """ Reject course list by course adviser 980 982 """ … … 1297 1299 return self.view.url(self.view.context, self.target) 1298 1300 1299 class OnlinePaymentCallbackPage( grok.View):1301 class OnlinePaymentCallbackPage(UtilityView, grok.View): 1300 1302 """ Callback view 1301 1303 """ … … 1346 1348 return 1347 1349 1348 class ExportPDFPaymentSlipPage( grok.View):1350 class ExportPDFPaymentSlipPage(UtilityView, grok.View): 1349 1351 """Deliver a PDF slip of the context. 1350 1352 """ … … 1577 1579 target = 'bed_allocation.pdf' 1578 1580 1579 class ExportPDFBedTicketSlipPage( grok.View):1581 class ExportPDFBedTicketSlipPage(UtilityView, grok.View): 1580 1582 """Deliver a PDF slip of the context. 1581 1583 """ … … 1609 1611 target = 'relocate' 1610 1612 1611 class BedTicketRelocationPage( grok.View):1613 class BedTicketRelocationPage(UtilityView, grok.View): 1612 1614 """ Callback view 1613 1615 """ -
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/browser_templates/containermanagepage.pt
r7447 r7451 48 48 </table> 49 49 50 <div class="actionButtons"> 51 <input type="submit" name="remove" value="Remove selected" 52 onclick="return confirmPost('Are you sure?')"/> 53 </div> 50 <input type="submit" name="remove" value="Remove selected" class="btn" 51 onclick="return confirmPost('Are you sure?')"/> 54 52 55 53 </div> -
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/viewlets.py
r7450 r7451 104 104 grok.require('waeup.handleAccommodation') 105 105 link = 'accommodation' 106 text = u'Accommodation Data'106 text = u'Accommodation' 107 107 108 108 class StudentManageHistoryLink(StudentManageLink):
Note: See TracChangeset for help on using the changeset viewer.