Changeset 10800
- Timestamp:
- 28 Nov 2013, 09:23:57 (11 years ago)
- Location:
- main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/browser.py
r10794 r10800 19 19 """ 20 20 import grok 21 from hurry.workflow.interfaces import IWorkflowState 21 22 from zope.formlib.textwidgets import BytesDisplayWidget 22 23 from waeup.kofa.applicants.browser import ( 23 24 ApplicantRegistrationPage, ApplicantsContainerPage) 25 from waeup.kofa.applicants.pdf import PDFApplicationSlip 24 26 from kofacustom.ekodisco.applicants.interfaces import ( 25 27 ICustomApplicant, ICustomApplicantEdit) 26 28 from kofacustom.nigeria.applicants.browser import ( 27 29 NigeriaApplicantDisplayFormPage, 28 NigeriaPDFApplicationSlip,29 30 ApplicantDisplayFormPage, 30 31 ApplicantManageFormPage, 31 32 ApplicantEditFormPage) 33 34 35 from kofacustom.ekodisco.applicants.workflow import STARTED 32 36 33 37 from kofacustom.ekodisco.interfaces import MessageFactory as _ … … 65 69 form_fields['applicant_id'].for_display = True 66 70 form_fields['reg_number'].for_display = True 71 72 submit_state = STARTED 73 74 @property 75 def display_actions(self): 76 state = IWorkflowState(self.context).getState() 77 actions = [[],[]] 78 if state == STARTED: 79 actions = [[_('Save'), _('Final Submit')], []] 80 return actions 81 82 class CustomPDFApplicationSlip(PDFApplicationSlip): 83 """Bypass NigeriaPDFApplicationSlip 84 """ -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/browser_templates/applicantdisplaypage.pt
r10789 r10800 38 38 </tbody> 39 39 </table> 40 <h3 i18n:domain="waeup.kofa" i18n:translate="">41 Payment Tickets42 </h3>43 <table i18n:domain="waeup.kofa">44 <thead>45 <tr>46 <th i18n:translate="">Payment Id</th>47 <th i18n:translate="">Creation Date</th>48 <th i18n:translate="">Payment Date</th>49 <th i18n:translate="">Category</th>50 <th i18n:translate="">Item</th>51 <th i18n:translate="">State</th>52 </tr>53 </thead>54 <tbody>55 <tr tal:repeat="value context/values">56 <td> <a tal:attributes="href value/__name__">57 <span tal:content="value/p_id">PID</span></a></td>58 <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td>59 <td tal:content="python: layout.formatDatetime(value.payment_date)">PAYMENT DATE</td>60 <td tal:content ="value/category">CATEGORY</td>61 <td tal:content ="value/display_item">ITEM</td>62 <td tal:content ="value/p_state_title">STATE</td>63 </tr>64 </tbody>65 </table> -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/browser_templates/applicanteditpage.pt
r10789 r10800 78 78 </span> 79 79 </div> 80 81 <br /><br />82 <h3 i18n:translate="">83 Payment Tickets84 </h3>85 86 <table>87 <thead>88 <tr>89 <th> </th>90 <th i18n:translate="">Payment Id</th>91 <th i18n:translate="">Creation Date</th>92 <th i18n:translate="">Payment Date</th>93 <th i18n:translate="">Category</th>94 <th i18n:translate="">Item</th>95 <th i18n:translate="">State</th>96 </tr>97 </thead>98 <tbody>99 <tr tal:repeat="cl context/values">100 <td>101 <input type="checkbox"102 name="val_id"103 tal:attributes="value cl/__name__"104 tal:condition="python: not view.unremovable(cl)" />105 </td>106 <td> <a tal:attributes="href cl/__name__">107 <span tal:content="cl/p_id">PID</span></a></td>108 <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>109 <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>110 <td tal:content ="cl/category">CATEGORY</td>111 <td tal:content ="cl/display_item">ITEM</td>112 <td tal:content ="cl/p_state_title">STATE</td>113 </tr>114 </tbody>115 </table>116 117 <div tal:condition="view/availableActions">118 <span tal:repeat="action view/actions"119 tal:omit-tag="">120 <input tal:condition="python:action.label in view.display_actions[1]"121 tal:replace="structure action/render"/>122 </span>123 </div>124 80 </form> -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/locales/en/LC_MESSAGES/waeup.kofa.po
r10793 r10800 206 206 207 207 msgid "Applicant Id" 208 msgstr " Cistomer Id"208 msgstr "" 209 209 210 210 msgid "${a} <br /> Application Form ${b}"
Note: See TracChangeset for help on using the changeset viewer.