Changeset 11254 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 22 Feb 2014, 15:46:03 (11 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk
- Property svn:mergeinfo changed
-
main/waeup.kofa/trunk/src/waeup/kofa
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa merged eligible /main/waeup.kofa/branches/uli-autoinclude-less/src/waeup/kofa 8871-8888 /main/waeup.sirp/branches/uli-studentpw/src/waeup/kofa 6703-6755 /main/waeup.sirp/branches/ulif-extimgstore/src/waeup/kofa 7001-7062 /main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/kofa 7761-7794
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r11253 r11254 46 46 from waeup.kofa.browser.interfaces import ICaptchaManager 47 47 from waeup.kofa.browser.breadcrumbs import Breadcrumb 48 from waeup.kofa.browser.resources import toggleall49 48 from waeup.kofa.browser.layout import ( 50 49 NullValidator, jsaction, action, UtilityView, JSAction) 51 50 from waeup.kofa.browser.pages import ( 52 51 add_local_role, del_local_roles, doll_up, ExportCSVView) 53 from waeup.kofa.browser.resources import datepicker, tabs, datatable, warning54 52 from waeup.kofa.interfaces import ( 55 53 IKofaObject, ILocalRolesAssignable, IExtFileStore, IPDF, … … 116 114 117 115 def update(self, *args, **kw): 118 datatable.need()119 116 form = self.request.form 120 117 self.results = [] … … 127 124 else: 128 125 if 'search' in form: 129 self.flash(_('Empty search string') )126 self.flash(_('Empty search string'), type='warning') 130 127 return 131 128 self.results = search(query=self.searchterm, 132 129 searchtype=self.searchtype, view=self) 133 130 if not self.results: 134 self.flash(_('No applicant found.') )131 self.flash(_('No applicant found.'), type='warning') 135 132 return 136 133 … … 149 146 subunits = _('Applicants Containers') 150 147 151 def update(self):152 tabs.need()153 datatable.need()154 warning.need()155 self.tab1 = self.tab2 = self.tab3 = ''156 qs = self.request.get('QUERY_STRING', '')157 if not qs:158 qs = 'tab1'159 setattr(self, qs, 'active')160 return super(ApplicantsRootManageFormPage, self).update()161 162 148 def getLocalRoles(self): 163 149 roles = ILocalRolesAssignable(self.context) … … 180 166 child_id = form['val_id'] 181 167 else: 182 self.flash(_('No container selected!') )183 self.redirect(self.url(self.context, '@@manage')+' ?tab2')168 self.flash(_('No container selected!'), type='warning') 169 self.redirect(self.url(self.context, '@@manage')+'#tab2') 184 170 return 185 171 if not isinstance(child_id, list): … … 192 178 except: 193 179 self.flash(_('Could not delete:') + ' %s: %s: %s' % ( 194 id, sys.exc_info()[0], sys.exc_info()[1]))180 id, sys.exc_info()[0], sys.exc_info()[1]), type='danger') 195 181 if len(deleted): 196 182 self.flash(_('Successfully removed: ${a}', 197 183 mapping = {'a':', '.join(deleted)})) 198 self.redirect(self.url(self.context, '@@manage')+' ?tab2')184 self.redirect(self.url(self.context, '@@manage')+'#tab2') 199 185 return 200 186 … … 235 221 form_fields = grok.AutoFields( 236 222 IApplicantsContainerAdd).omit('code').omit('title') 237 238 def update(self):239 datepicker.need() # Enable jQuery datepicker in date fields.240 return super(ApplicantsContainerAddFormPage, self).update()241 223 242 224 @action(_('Add applicants container')) … … 249 231 if code in self.context.keys(): 250 232 self.flash( 251 _('An applicants container for the same application type and entrance year exists already in the database.')) 233 _('An applicants container for the same application ' 234 'type and entrance year exists already in the database.'), 235 type='warning') 252 236 return 253 237 # Add new applicants container... … … 378 362 return False 379 363 380 def update(self):381 datepicker.need() # Enable jQuery datepicker in date fields.382 tabs.need()383 toggleall.need()384 self.tab1 = self.tab2 = self.tab3 = ''385 qs = self.request.get('QUERY_STRING', '')386 if not qs:387 qs = 'tab1'388 setattr(self, qs, 'active')389 warning.need()390 datatable.need() # Enable jQurey datatables for contents listing391 return super(ApplicantsContainerManageFormPage, self).update()392 393 364 def getLocalRoles(self): 394 365 roles = ILocalRolesAssignable(self.context) … … 436 407 child_id = form['val_id'] 437 408 else: 438 self.flash(_('No applicant selected!') )439 self.redirect(self.url(self.context, '@@manage')+' ?tab2')409 self.flash(_('No applicant selected!'), type='warning') 410 self.redirect(self.url(self.context, '@@manage')+'#tab2') 440 411 return 441 412 if not isinstance(child_id, list): … … 448 419 except: 449 420 self.flash(_('Could not delete:') + ' %s: %s: %s' % ( 450 id, sys.exc_info()[0], sys.exc_info()[1]))421 id, sys.exc_info()[0], sys.exc_info()[1]), type='danger') 451 422 if len(deleted): 452 423 self.flash(_('Successfully removed: ${a}', 453 424 mapping = {'a':', '.join(deleted)})) 454 self.redirect(self.url(self.context, u'@@manage')+' ?tab2')425 self.redirect(self.url(self.context, u'@@manage')+'#tab2') 455 426 return 456 427 … … 461 432 child_id = form['val_id'] 462 433 else: 463 self.flash(_('No applicant selected!') )464 self.redirect(self.url(self.context, '@@manage')+' ?tab2')434 self.flash(_('No applicant selected!'), type='warning') 435 self.redirect(self.url(self.context, '@@manage')+'#tab2') 465 436 return 466 437 if not isinstance(child_id, list): … … 475 446 mapping = {'a': len(created)})) 476 447 else: 477 self.flash(_('No student could be created.') )478 self.redirect(self.url(self.context, u'@@manage')+' ?tab2')448 self.flash(_('No student could be created.'), type='warning') 449 self.redirect(self.url(self.context, u'@@manage')+'#tab2') 479 450 return 480 451 … … 612 583 def update(self): 613 584 msg = self.context.createStudent(view=self)[1] 614 self.flash(msg )585 self.flash(msg, type='warning') 615 586 self.redirect(self.url(self.context)) 616 587 return … … 652 623 mapping = {'a': len(created)})) 653 624 else: 654 self.flash(_('No student could be created.') )625 self.flash(_('No student could be created.'), type='warning') 655 626 self.redirect(self.url(self.context)) 656 627 return … … 672 643 if ticket.p_state == 'paid': 673 644 self.flash( 674 _('This type of payment has already been made.')) 645 _('This type of payment has already been made.'), 646 type='warning') 675 647 self.redirect(self.url(self.context)) 676 648 return … … 678 650 container = self.context.__parent__ 679 651 payment = createObject(self.factory) 680 error= applicants_utils.setPaymentDetails(652 failure = applicants_utils.setPaymentDetails( 681 653 container, payment, self.context) 682 if erroris not None:683 self.flash( error)654 if failure is not None: 655 self.flash(failure[0], type='danger') 684 656 self.redirect(self.url(self.context)) 685 657 return … … 731 703 self.context.p_id, self.context.p_category, 732 704 self.context.amount_auth, self.context.r_code)) 733 self.flash(msg )705 self.flash(msg, type='warning') 734 706 return 735 707 … … 785 757 if self.context.state in ('initialized', 'started', 'paid'): 786 758 self.flash( 787 _('Please pay and submit before trying to download the application slip.')) 759 _('Please pay and submit before trying to download ' 760 'the application slip.'), type='warning') 788 761 return self.redirect(self.url(self.context)) 789 762 return … … 806 779 size = file_size(upload) 807 780 if size > MAX_UPLOAD_SIZE: 808 view.flash(_('Uploaded image is too big!') )781 view.flash(_('Uploaded image is too big!'), type='danger') 809 782 return False 810 783 dummy, ext = os.path.splitext(upload.filename) 811 784 ext.lower() 812 785 if ext != '.jpg': 813 view.flash(_('jpg file extension expected.') )786 view.flash(_('jpg file extension expected.'), type='danger') 814 787 return False 815 788 upload.seek(0) # file pointer moved when determining size … … 851 824 852 825 def update(self): 853 datepicker.need() # Enable jQuery datepicker in date fields.854 warning.need()855 826 super(ApplicantManageFormPage, self).update() 856 827 self.wf_info = IWorkflowInfo(self.context) … … 894 865 errors = validator.validate_password(password, password_ctl) 895 866 if errors: 896 self.flash( ' '.join(errors) )867 self.flash( ' '.join(errors), type='danger') 897 868 return 898 869 if self.upload_success is False: # False is not None! … … 927 898 child_id = form['val_id'] 928 899 else: 929 self.flash(_('No payment selected.') )900 self.flash(_('No payment selected.'), type='warning') 930 901 self.redirect(self.url(self.context)) 931 902 return … … 941 912 except: 942 913 self.flash(_('Could not delete:') + ' %s: %s: %s' % ( 943 id, sys.exc_info()[0], sys.exc_info()[1]))914 id, sys.exc_info()[0], sys.exc_info()[1]), type='danger') 944 915 if len(deleted): 945 916 self.flash(_('Successfully removed: ${a}', … … 1013 984 1014 985 def emit_lock_message(self): 1015 self.flash(_('The requested form is locked (read-only).')) 986 self.flash(_('The requested form is locked (read-only).'), 987 type='warning') 1016 988 self.redirect(self.url(self.context)) 1017 989 return … … 1054 1026 return 1055 1027 if data.get('course1', 1) == data.get('course2', 2): 1056 self.flash(_('1st and 2nd choice must be different.')) 1028 self.flash(_('1st and 2nd choice must be different.'), 1029 type='warning') 1057 1030 return 1058 1031 self.applyData(self.context, **data) … … 1065 1038 return # error during image upload. Ignore other values 1066 1039 if self.dataNotComplete(): 1067 self.flash(self.dataNotComplete() )1040 self.flash(self.dataNotComplete(), type='danger') 1068 1041 return 1069 1042 self.applyData(self.context, **data) … … 1072 1045 # might have forgotten to lock the form after changing the state 1073 1046 if state != self.submit_state: 1074 self.flash(_('The form cannot be submitted. Wrong state!')) 1047 self.flash(_('The form cannot be submitted. Wrong state!'), 1048 type='danger') 1075 1049 return 1076 1050 IWorkflowInfo(self.context).fireTransition('submit') … … 1126 1100 def update(self): 1127 1101 if self.context.expired: 1128 self.flash(_('Outside application period.') )1102 self.flash(_('Outside application period.'), type='warning') 1129 1103 self.redirect(self.url(self.context)) 1130 1104 return … … 1164 1138 applicant = results[0] 1165 1139 if getattr(applicant,'firstname',None) is None: 1166 self.flash(_('An error occurred.') )1140 self.flash(_('An error occurred.'), type='danger') 1167 1141 return 1168 1142 elif applicant.firstname.lower() != firstname.lower(): … … 1170 1144 # know that a record was found and only the firstname 1171 1145 # verification failed. 1172 self.flash(_('No application record found.') )1146 self.flash(_('No application record found.'), type='warning') 1173 1147 return 1174 1148 elif applicant.password is not None and \ 1175 1149 applicant.state != INITIALIZED: 1176 1150 self.flash(_('Your password has already been set and used. ' 1177 'Please proceed to the login page.')) 1151 'Please proceed to the login page.'), 1152 type='warning') 1178 1153 return 1179 1154 # Store email address but nothing else. … … 1182 1157 else: 1183 1158 # No record found, this is the truth. 1184 self.flash(_('No application record found.') )1159 self.flash(_('No application record found.'), type='warning') 1185 1160 return 1186 1161 else: … … 1227 1202 grok.name('index.html') 1228 1203 grok.template('exportjobsindex') 1229 label = _(' ApplicantData Exports')1204 label = _('Data Exports') 1230 1205 pnav = 3 1231 1206 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantcontainerstatistics.pt
r8643 r11254 1 1 <tal:statistics define="stats context/statistics" i18n:domain="waeup.kofa"> 2 2 <h2 i18n:translate="">Container Statistics</h2> 3 <table class=" span8">3 <table class="table"> 4 4 <thead> 5 5 <tr> … … 17 17 </tbody> 18 18 </table> 19 <table class=" span8" tal:condition="python: stats[1]">19 <table class="table" tal:condition="python: stats[1]"> 20 20 <thead> 21 21 <tr> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt
r10353 r11254 41 41 Application Fee Payment Tickets 42 42 </h3> 43 <table i18n:domain="waeup.kofa" >43 <table i18n:domain="waeup.kofa" class="table table-condensed"> 44 44 <thead> 45 45 <tr> … … 54 54 <tbody> 55 55 <tr tal:repeat="value context/values"> 56 <td> <a tal:attributes="href value/__name__">56 <td> <a tal:attributes="href python:view.url(value)"> 57 57 <span tal:content="value/p_id">PID</span></a></td> 58 58 <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt
r10353 r11254 38 38 <td class="fieldname" i18n:translate="">Password:</td> 39 39 <td> 40 <input name="password" type="password" />40 <input class="form-control" name="password" type="password" /> 41 41 </td> 42 42 </tr> … … 44 44 <td class="fieldname" i18n:translate="">Retype Password:</td> 45 45 <td> 46 <input name="control_password" type="password" />46 <input class="form-control" name="control_password" type="password" /> 47 47 </td> 48 48 </tr> … … 50 50 <td class="fieldname" i18n:translate="">Application Transition:</td> 51 51 <td> 52 <select id="transition" name="transition" >52 <select id="transition" name="transition" class="form-control half"> 53 53 <option tal:repeat="transition view/getTransitions" 54 54 tal:attributes="value transition/name"> … … 84 84 </h3> 85 85 86 <table >86 <table i18n:domain="waeup.kofa" class="table table-condensed"> 87 87 <thead> 88 88 <tr> … … 104 104 tal:condition="python: not view.unremovable(cl)" /> 105 105 </td> 106 <td> <a tal:attributes="href cl/__name__">106 <td> <a tal:attributes="href python:view.url(cl)"> 107 107 <span tal:content="cl/p_id">PID</span></a></td> 108 108 <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantregemailsent.pt
r8855 r11254 19 19 <tal:credentials condition = "view/password" i18n:domain="waeup.kofa"> 20 20 <h3 i18n:translate="">Your login credentials are:</h3> 21 <table class=" bordered-table span6">21 <table class="table-bordered"> 22 22 <tr> 23 23 <td i18n:translate="">User Name:</td> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantscontaineraddpage.pt
r7737 r11254 1 1 <form action="." tal:attributes="action request/URL" method="post" 2 class="edit-form"enctype="multipart/form-data">2 enctype="multipart/form-data"> 3 3 4 4 <table class="form-table"> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantscontainermanagepage.pt
r9339 r11254 1 1 <form action="." tal:attributes="action request/URL" method="POST" 2 i18n:domain="waeup.kofa" class="edit-form"enctype="multipart/form-data">2 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 3 3 4 <ul class="tabs" data-tabs="tabs">5 <li tal:attributes="class view/tab1">6 <a href="#tab -1">4 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 5 <li class="active"> 6 <a href="#tab1" data-toggle="tab"> 7 7 <span i18n:translate="">Settings 8 8 </span></a> 9 9 </li> 10 <li tal:attributes="class view/tab2">11 <a href="#tab -2">10 <li> 11 <a href="#tab2" data-toggle="tab"> 12 12 <span i18n:translate="">Applicants 13 13 </span></a> 14 14 </li> 15 <li tal:attributes="class view/tab3">16 <a href="#tab -3">15 <li> 16 <a href="#tab3" data-toggle="tab"> 17 17 <span i18n:translate="">Local Roles 18 18 </span></a> … … 20 20 </ul> 21 21 <div class="tab-content"> 22 <div id="tab-1" tal:attributes="class view/tab1"> 22 <div id="tab1" class="active tab-pane"> 23 <br /> 23 24 <table class="form-table"> 24 25 <tbody> … … 33 34 </div> 34 35 </div> 35 <div id="tab -2" tal:attributes="class view/tab2">36 <div id="tab2" class="tab-pane"> 36 37 <tal:showApplicants condition="view/showApplicants"> 37 <input type="checkbox" onClick="toggle(this, 'val_id')" /> 38 <span i18n:translate="">Select all</span> 39 <br /><br /> 40 41 <table class="display dataTableManage"> 38 <br /> 39 <table class="kofa-data-table dataTableManage"> 42 40 <thead> 43 41 <tr> … … 55 53 </thead> 56 54 <tbody> 57 <tr class="gradeC"tal:repeat="appl context/values">55 <tr tal:repeat="appl context/values"> 58 56 <td> 59 57 <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" /> … … 78 76 </tbody> 79 77 </table> 78 <input type="checkbox" onClick="toggle(this, 'val_id')" /> 79 <span i18n:translate="">Select all</span> 80 <br /><br /> 80 81 <div tal:condition="view/availableActions"> 81 82 <span tal:repeat="action view/actions" tal:omit-tag=""> … … 100 101 </tal:showNoApplicants> 101 102 </div> 102 <div id="tab -3" tal:attributes="class view/tab3"> <br />103 <table class=" displaydataTableManage">103 <div id="tab3" class="tab-pane"> <br /> 104 <table class="kofa-data-table dataTableManage"> 104 105 <thead> 105 106 <tr> … … 115 116 </thead> 116 117 <tbody> 117 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>118 <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td> 118 119 <input type="checkbox" name="role_id" 119 120 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> … … 132 133 <table class="form-table"> 133 134 <tr> <td> 134 <select id="user" name="user" >135 <select id="user" name="user" class="form-control"> 135 136 <option tal:repeat="user view/getUsers" 136 137 tal:attributes="value user/name"> … … 139 140 </option> 140 141 </select> </td> <td> 141 <select id="local_role" name="local_role" >142 <select id="local_role" name="local_role" class="form-control"> 142 143 <option tal:repeat="localrole view/getLocalRoles" 143 144 tal:attributes="value localrole/name"> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantsrootmanagepage.pt
r8547 r11254 1 1 <form action="." tal:attributes="action request/URL" 2 2 i18n:domain="waeup.kofa" method="POST" enctype="multipart/form-data"> 3 <ul class="tabs " data-tabs="tabs">4 <li tal:attributes="class view/tab1">5 <a href="#tab -1">3 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 4 <li class="active"> 5 <a href="#tab1" data-toggle="tab"> 6 6 <span i18n:translate="">Introduction 7 7 </span></a> 8 8 </li> 9 <li tal:attributes="class view/tab2">10 <a href="#tab -2">9 <li> 10 <a href="#tab2" data-toggle="tab"> 11 11 <span tal:content="view/subunits">Contents 12 12 </span></a> 13 13 </li> 14 <li tal:attributes="class view/tab3">15 <a href="#tab -3">14 <li> 15 <a href="#tab3" data-toggle="tab"> 16 16 <span i18n:translate="">Local Roles 17 17 </span></a> … … 19 19 </ul> 20 20 <div class="tab-content"> 21 <div id="tab-1" tal:attributes="class view/tab1"> 21 <div id="tab1" class="active tab-pane"> 22 <br /> 22 23 <table class="form-table"> 23 24 <tbody> … … 25 26 </tbody> 26 27 </table> 27 28 28 <div tal:condition="view/availableActions"> 29 29 <span tal:repeat="action view/actions" tal:omit-tag=""> … … 33 33 </div> 34 34 </div> 35 <div id="tab-2" tal:attributes="class view/tab2"> 36 <h3 tal:content="view/subunits">SUBUNITS</h3> 37 35 <div id="tab2" class="tab-pane"> 36 <br /> 38 37 <p i18n:translate="note_armp"> 39 38 Please note that containers will be opened in manage mode here. … … 42 41 Please be patient until all records have been loaded. 43 42 </p> 44 45 <table class="display dataTableManage"> 43 <table class="kofa-data-table dataTableManage"> 46 44 <thead> 47 45 <tr> … … 59 57 </thead> 60 58 <tbody> 61 <tr tal:repeat="entry context/values" class="gradeC"> <td>59 <tr tal:repeat="entry context/values"> <td> 62 60 <input type="checkbox" name="val_id" 63 61 tal:attributes="value entry/__name__" /> </td> … … 78 76 </div> 79 77 </div> 80 <div id="tab -3" tal:attributes="class view/tab3">78 <div id="tab3" class="tab-pane"> 81 79 <br /> 82 <table class=" displaydataTableManage">80 <table class="kofa-data-table dataTableManage"> 83 81 <thead> 84 82 <tr> … … 94 92 </thead> 95 93 <tbody> 96 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">94 <tr tal:repeat="entry view/getUsersWithLocalRoles"> 97 95 <td> <input type="checkbox" name="role_id" 98 96 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> … … 109 107 </span> 110 108 </div> <br /><br /> 111 <table class="form-table"> 112 <tr> <td> 113 <select id="user" name="user"> 114 <option tal:repeat="user view/getUsers" 115 tal:attributes="value user/name"> 116 <span tal:replace="user/val/title">USERTITLE 117 </span> 118 </option> 119 </select> </td> <td> 120 <select id="local_role" name="local_role"> 121 <option tal:repeat="localrole view/getLocalRoles" 122 tal:attributes="value localrole/name"> 123 <span tal:replace="localrole/title">LOCALROLETITLE 124 </span> 125 </option> 126 </select> </td> <td> 127 <div tal:condition="view/availableActions"> 128 <span tal:repeat="action view/actions" tal:omit-tag=""> 129 <input tal:condition="python:action.label in view.tabthreeactions2" 130 tal:replace="structure action/render"/> 131 </span> 132 </div> </td> 133 </tr> 134 </table> 109 <div class="form-inline"> 110 <br /> 111 <div class="form-group"> 112 <select id="user" name="user" class="form-control"> 113 <option tal:repeat="user view/getUsers" 114 tal:attributes="value user/name"> 115 <span tal:replace="user/val/title">USERTITLE 116 </span> 117 </option> 118 </select> 119 </div> 120 <div class="form-group"> 121 <select id="local_role" name="local_role" class="form-control"> 122 <option tal:repeat="localrole view/getLocalRoles" 123 tal:attributes="value localrole/name"> 124 <span tal:replace="localrole/title">LOCALROLETITLE 125 </span> 126 </option> 127 </select> 128 </div> 129 <div class="form-group" tal:condition="view/availableActions"> 130 <span tal:repeat="action view/actions" tal:omit-tag=""> 131 <input tal:condition="python:action.label in view.tabthreeactions2" 132 tal:replace="structure action/render"/> 133 </span> 134 </div> 135 </div> 135 136 </div> 136 137 </div> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantsrootpage.pt
r10097 r11254 4 4 </span> 5 5 6 <table i18n:domain="waeup.kofa" >6 <table i18n:domain="waeup.kofa" class="table table-hover"> 7 7 <thead> 8 8 <tr> … … 14 14 </thead> 15 15 <tbody> 16 <tr tal:repeat="entry view/containers" class="gradeC">16 <tr tal:repeat="entry view/containers"> 17 17 <td tal:content="entry/year">Year 18 18 </td> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantssearchpage.pt
r10645 r11254 1 <form method="POST" i18n:domain="waeup.kofa" >1 <form method="POST" i18n:domain="waeup.kofa" class="form-inline"> 2 2 <br /> 3 <input class="btn primary" type="submit" name="search" 4 tal:attributes="value view/search_button" /> 3 <div class="form-group"> 4 <input class="btn btn-primary" type="submit" name="search" 5 tal:attributes="value view/search_button" /> 6 </div> 7 <div class="form-group"> 8 <select name="searchtype" class="form-control"> 9 <option i18n:translate="" value="applicant_id">with id</option> 10 <option i18n:translate="" value="fullname">with name</option> 11 <option i18n:translate="" value="reg_number">with registration number</option> 12 <option i18n:translate="" value="email">with email address</option> 13 </select> 14 </div> 15 <div class="form-group"> 16 <input type="text" class="form-control" name="searchterm" /> 17 </div> 5 18 6 <select name="searchtype"> 7 <option i18n:translate="" value="applicant_id">with id</option> 8 <option i18n:translate="" value="fullname">with name</option> 9 <option i18n:translate="" value="reg_number">with registration number</option> 10 <option i18n:translate="" value="email">with email address</option> 11 </select> 12 13 <input type="text" name="searchterm" /> 14 15 <p> </p> 19 <br /><br /> 16 20 <div tal:condition="view/results"> 17 21 <h3 i18n:translate="">Search Results</h3> … … 20 24 <input type="hidden" name="old_searchtype" 21 25 tal:attributes="value view/searchtype" /> 22 <table class=" displaydataTable">26 <table class="kofa-data-table dataTable"> 23 27 <thead> 24 28 <tr> … … 30 34 </thead> 31 35 <tbody> 32 <tr tal:repeat="item view/results" class="gradeC">36 <tr tal:repeat="item view/results"> 33 37 <td> <a tal:attributes="href python:view.url(item)"> 34 38 <span tal:content="item/applicant_id">XXXX_1234</span></a> … … 42 46 </tbody> 43 47 </table> 44 <br />45 48 </div> 46 49 </form> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/exportjobsindex.pt
r10655 r11254 1 <table i18n:domain="waeup.kofa" >1 <table i18n:domain="waeup.kofa" class="table table-condensed table-hover"> 2 2 <thead> 3 3 <tr> … … 25 25 <span tal:replace="job/creator">CREATOR</span> 26 26 </td> 27 <td nowrap>27 <td> 28 28 <span tal:replace="job/start_time">DATETIME</span> 29 29 </td> … … 32 32 </td> 33 33 <td nowrap> 34 <a href="" class="btn " i18n:translate=""34 <a href="" class="btn btn-default btn-xs" i18n:translate="" 35 35 tal:condition="job/show_refresh_button"> 36 <img tal:attributes="src static/actionicon_reload.png" />36 <img src="/static/img/actionicon_reload.png" /> 37 37 Reload 38 38 </a> 39 39 <form method="POST"> 40 <a href="" class="btn primary small"40 <a href="" class="btn btn-primary btn-xs" 41 41 tal:attributes="href job/download_url" 42 42 tal:condition="job/show_download_button"> 43 43 Download</a> 44 45 44 <input type="hidden" name="job_id" 46 45 tal:attributes="value job/job" /> 47 <input type="submit" class="btn small"46 <input type="submit" class="btn btn-default btn-xs" 48 47 name="DISCARD" value="Discard" 49 48 tal:condition="job/show_discard_button" /> … … 53 52 </tbody> 54 53 </table> 54 55 55 <form method="POST" i18n:domain="waeup.kofa"> 56 <div class="span12"> 57 58 </div> 59 <input class="btn primary" type="submit" name="CREATE" 56 <input class="btn btn-primary" type="submit" name="CREATE" 60 57 value="Start new export" 61 58 /> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
r10843 r11254 51 51 session_config = grok.getSite()['configuration'][session] 52 52 except KeyError: 53 return _(u'Session configuration object is not available.') 53 return _(u'Session configuration object is not available.'), None 54 54 payment.p_id = "p%s" % timestamp 55 55 payment.p_item = container.title
Note: See TracChangeset for help on using the changeset viewer.