Changeset 11006
- Timestamp:
- 30 Jan 2014, 10:07:29 (11 years ago)
- Location:
- main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/pages.py
r11005 r11006 52 52 from waeup.kofa.browser.layout import jsaction, action, UtilityView 53 53 from waeup.kofa.browser.resources import ( 54 warning, tabs , datatable)54 warning, tabs) 55 55 from waeup.kofa.interfaces import MessageFactory as _ 56 56 from waeup.kofa.interfaces import( … … 530 530 531 531 def update(self, userid=None, adduser=None, manage=None, delete=None): 532 datatable.need()533 532 if manage is not None and userid is not None: 534 533 self.redirect(self.url(userid) + '/@@manage') … … 746 745 747 746 def update(self, *args, **kw): 748 datatable.need()749 747 form = self.request.form 750 748 self.hitlist = [] … … 791 789 792 790 def update(self): 793 datatable.need()794 791 warning.need() 795 792 return super(ConfigurationContainerManageFormPage, self).update() … … 903 900 904 901 def update(self): 905 datatable.need()906 902 warning.need() 907 903 return super(DatacenterPage, self).update() … … 940 936 label = _(u'Processed Files') 941 937 pnav = 0 942 943 def update(self): 944 datatable.need() 938 cancel_button =_('Back to Data Center') 939 940 def update(self, CANCEL=None): 941 if CANCEL is not None: 942 self.redirect(self.url(self.context)) 943 return 945 944 return super(DatacenterFinishedPage, self).update() 946 945 … … 953 952 max_files = 20 954 953 upload_button =_(u'Upload') 955 cancel_button =_(u' Cancel')954 cancel_button =_(u'Back to Data Center') 956 955 957 956 def getPreviewHeader(self): … … 1385 1384 1386 1385 def update(self, headerfield=None, back2=None, cancel=None, proceed=None): 1387 datatable.need()1388 1386 session = ISession(self.request)['waeup.kofa'] 1389 1387 self.filename = session.get('import_filename', None) … … 1580 1578 pnav = 0 1581 1579 export_button = _(u'Create CSV file') 1580 cancel_button =_(u'Back to Data Center') 1582 1581 1583 1582 def getExporters(self): … … 1591 1590 return sorted(title_name_tuples) 1592 1591 1593 def update(self, CREATE=None, DISCARD=None, exporter=None, job_id=None): 1592 def update(self, CREATE=None, DISCARD=None, exporter=None, 1593 job_id=None, CANCEL=None): 1594 if CANCEL is not None: 1595 self.redirect(self.url(self.context)) 1596 return 1594 1597 if CREATE: 1595 1598 job_id = self.context.start_export_job( … … 1805 1808 def update(self): 1806 1809 warning.need() 1807 datatable.need()1808 1810 return super(FacultyManageFormPage, self).update() 1809 1811 … … 1869 1871 1870 1872 def update(self, *args, **kw): 1871 datatable.need()1872 1873 form = self.request.form 1873 1874 self.hitlist = [] … … 1933 1934 1934 1935 def update(self): 1935 datatable.need()1936 1936 super(DepartmentPage, self).update() 1937 1937 return … … 1989 1989 def update(self): 1990 1990 warning.need() 1991 datatable.need()1992 1991 super(DepartmentManageFormPage, self).update() 1993 1992 return … … 2151 2150 def update(self): 2152 2151 warning.need() 2153 datatable.need()2154 2152 return super(CourseManageFormPage, self).update() 2155 2153 … … 2189 2187 2190 2188 def update(self): 2191 datatable.need()2192 2189 return super(CertificatePage, self).update() 2193 2190 … … 2218 2215 def update(self): 2219 2216 warning.need() 2220 datatable.need()2221 2217 return super(CertificateManageFormPage, self).update() 2222 2218 -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterexportpage.pt
r9841 r11006 8 8 <br /> 9 9 10 <form method="POST" >10 <form method="POST" class="form-inline"> 11 11 <label for="exporter"> 12 12 Exporter (Data Type): 13 13 </label> 14 <div class=" input">14 <div class="form-group"> 15 15 <select name="exporter"> 16 16 <span tal:repeat="items view/getExporters" tal:omit-tag=""> … … 23 23 </select> 24 24 </div> 25 <br /> 26 <div class="input"> 27 <input i18n:translate="" type="submit" class="btn primary" 25 <div class="form-group"> 26 <input i18n:translate="" type="submit" class="btn btn-primary" 28 27 name="CREATE" tal:attributes="value view/export_button" /> 28 </div> 29 <div class="form-group"> 30 <input type="submit" name="CANCEL" class="btn btn-default" 31 tal:attributes="value view/cancel_button" /> 29 32 </div> 30 33 </form> … … 39 42 <br /><br /> 40 43 41 <table i18n:domain="waeup.kofa"> 42 <thead> 43 <tr> 44 <th i18n:translate="">Export Number</th> 45 <th i18n:translate="">Exporter</th> 46 <th i18n:translate="">Filter</th> 47 <th i18n:translate="">Creator</th> 48 <th i18n:translate="">Creation Date</th> 49 <th i18n:translate="">Status</th> 50 <th> </th> 51 </tr> 52 </thead> 53 <tbody> 54 <tr tal:repeat="job view/entries"> 55 <td> 56 <span tal:replace="job/job">12</span> 57 </td> 58 <td> 59 <span tal:replace="structure job/exporter">EXPORTER</span> 60 </td> 61 <td> 62 <span tal:replace="structure job/args">ARGS</span> 63 </td> 64 <td> 65 <span tal:replace="job/creator">CREATOR</span> 66 </td> 67 <td nowrap> 68 <span tal:replace="job/start_time">DATETIME</span> 69 </td> 70 <td> 71 <span tal:replace="job/status">STATUS</span> 72 </td> 73 <td nowrap> 74 <a href="" class="btn small" i18n:translate="" 75 tal:condition="job/show_refresh_button"> 76 <img tal:attributes="src static/actionicon_reload.png" /> 77 Reload 78 </a> 79 <form method="POST"> 80 <a href="" class="btn primary small" 81 tal:attributes="href job/download_url" 82 tal:condition="job/show_download_button"> 83 Download</a> 84 85 <input type="hidden" name="job_id" 86 tal:attributes="value job/job" /> 87 <input type="submit" class="btn small" 88 name="DISCARD" value="Discard" 89 tal:condition="job/show_discard_button" /> 90 </form> 91 </td> 92 </tr> 93 </tbody> 94 </table> 44 <div class="table-responsive"> 45 <table i18n:domain="waeup.kofa" class="table table-condensed table-hover"> 46 <thead> 47 <tr> 48 <th i18n:translate="">Export Number</th> 49 <th i18n:translate="">Exporter</th> 50 <th i18n:translate="">Filter</th> 51 <th i18n:translate="">Creator</th> 52 <th i18n:translate="">Creation Date</th> 53 <th i18n:translate="">Status</th> 54 <th> </th> 55 </tr> 56 </thead> 57 <tbody> 58 <tr tal:repeat="job view/entries"> 59 <td> 60 <span tal:replace="job/job">12</span> 61 </td> 62 <td> 63 <span tal:replace="structure job/exporter">EXPORTER</span> 64 </td> 65 <td> 66 <span tal:replace="structure job/args">ARGS</span> 67 </td> 68 <td> 69 <span tal:replace="job/creator">CREATOR</span> 70 </td> 71 <td nowrap> 72 <span tal:replace="job/start_time">DATETIME</span> 73 </td> 74 <td> 75 <span tal:replace="job/status">STATUS</span> 76 </td> 77 <td nowrap> 78 <a href="" class="btn btn-default btn-xs" i18n:translate="" 79 tal:condition="job/show_refresh_button"> 80 <img tal:attributes="src static/actionicon_reload.png" /> 81 Reload 82 </a> 83 <form method="POST"> 84 <a href="" class="btn btn-primary btn-xs" 85 tal:attributes="href job/download_url" 86 tal:condition="job/show_download_button"> 87 Download</a> 88 <input type="hidden" name="job_id" 89 tal:attributes="value job/job" /> 90 <input type="submit" class="btn btn-default btn-xs" 91 name="DISCARD" value="Discard" 92 tal:condition="job/show_discard_button" /> 93 </form> 94 </td> 95 </tr> 96 </tbody> 97 </table> 98 </div> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterfinishedpage.pt
r10999 r11006 21 21 </tbody> 22 22 </table> 23 <form method="POST"> 24 <input i18n:translate="" type="submit" class="btn btn-default" name="CANCEL" 25 tal:attributes="value view/cancel_button"/> 26 </form> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenteruploadpage.pt
r11005 r11006 44 44 </td> 45 45 </tr> 46 <tr>47 <td>48 <input class="btn btn-primary" type="submit" name="SUBMIT"49 tal:attributes="value view/upload_button" />50 <input class="btn btn-default" type="submit" name="CANCEL"51 tal:attributes="value view/cancel_button"/>52 </td>53 <td>54 </td>55 </tr>56 46 </table> 47 <br /> 48 <input class="btn btn-primary" type="submit" name="SUBMIT" 49 tal:attributes="value view/upload_button" /> 50 <input class="btn btn-default" type="submit" name="CANCEL" 51 tal:attributes="value view/cancel_button"/> 57 52 </form> 58 53 <br /> 59 54 <p i18n:translate=""> 60 55 Import managers will be automatically informed by email after file upload.
Note: See TracChangeset for help on using the changeset viewer.