Changeset 11005
- Timestamp:
- 29 Jan 2014, 18:42:53 (11 years ago)
- Location:
- main/waeup.kofa/branches/uli-diazo-themed
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/layout/static/css/base.css
r11003 r11005 87 87 display: inline; 88 88 } 89 90 .table-condensed .btn { 91 margin: 0px; 92 font-size: 12px; 93 } 94 89 95 90 96 /* Content actionbar */ -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/pages.py
r11001 r11005 1179 1179 label = _(u'Process CSV file') 1180 1180 pnav = 0 1181 cancel_button =_(u' Cancel')1181 cancel_button =_(u'Back to Data Center') 1182 1182 1183 1183 def getFiles(self): … … 1191 1191 def update(self, filename=None, select=None, cancel=None): 1192 1192 if cancel is not None: 1193 self.flash(_('Import aborted.'))1194 1193 self.redirect(self.url(self.context)) 1195 1194 return … … 1504 1503 pnav = 0 1505 1504 search_button = _('Search') 1506 back_button = _('Back ')1505 back_button = _('Back to Data Center') 1507 1506 placeholder = _('Enter a regular expression here...') 1508 1507 … … 1543 1542 save_button =_(u'Save') 1544 1543 reset_button =_(u'Reset') 1545 cancel_button =_(u' Cancel')1544 cancel_button =_(u'Back to Data Center') 1546 1545 1547 1546 def update(self, newpath=None, move=False, overwrite=False, … … 1562 1561 mapping = {'a':name})) 1563 1562 except: 1564 self.flash(_('Given storage path cannot be used. '))1565 self.flash(_('Error: ${a}', mapping = {'a':sys.exc_info()[1]}))1563 self.flash(_('Given storage path cannot be used. ${a}', 1564 mapping = {'a':sys.exc_info()[1]}), type='danger') 1566 1565 return 1567 1566 if newpath: -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterimport1page.pt
r7811 r11005 8 8 </p> 9 9 <form i18n:domain="waeup.kofa" method="POST"> 10 <table> 11 <thead> 12 <th /> 13 <th i18n:translate="">Filename</th> 14 <th i18n:translate="">Datasets</th> 15 <th i18n:translate="">Size</th> 16 <th i18n:translate="">Date</th> 17 </thead> 18 <tbody> 19 <tr tal:repeat="file view/getFiles"> 20 <td> 21 <button i18n:translate="" 22 type="submit" name="select" class="btn primary" 23 tal:attributes="value file/name">Select</button> 24 </td> 25 <td tal:content="file/name">Filename.csv</td> 26 <td tal:content="python: file.lines - 1">12</td> 27 <td tal:content="file/size">123 Bytes</td> 28 <td tal:content="file/getDate">1.1.1970</td> 29 </tr> 30 </tbody> 31 </table> 32 <input type="submit" name="cancel" class="btn" 10 <div class="table-responsive"> 11 <table class="table"> 12 <thead> 13 <th /> 14 <th i18n:translate="">Filename</th> 15 <th i18n:translate="">Datasets</th> 16 <th i18n:translate="">Size</th> 17 <th i18n:translate="">Date</th> 18 </thead> 19 <tbody> 20 <tr tal:repeat="file view/getFiles"> 21 <td> 22 <button i18n:translate="" 23 type="submit" name="select" class="btn btn-primary" 24 tal:attributes="value file/name">Select</button> 25 </td> 26 <td tal:content="file/name">Filename.csv</td> 27 <td tal:content="python: file.lines - 1">12</td> 28 <td tal:content="file/size">123 Bytes</td> 29 <td tal:content="file/getDate">1.1.1970</td> 30 </tr> 31 </tbody> 32 </table> 33 </div> 34 <input type="submit" name="cancel" class="btn btn-default" 33 35 tal:attributes="value view/cancel_button" /> 34 36 </form> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterlogspage.pt
r9641 r11005 3 3 Currently no log files are available. 4 4 </p> 5 <table tal:condition="files" class="table condensed-table">5 <table tal:condition="files" class="table"> 6 6 <thead> 7 7 <tr> … … 17 17 </thead> 18 18 <tbody> 19 <tr tal:repeat="file files" 20 tal:attributes="class python: repeat['file'].odd() and 'odd' or 'even'"> 21 <td class="text-center"> 19 <tr tal:repeat="file files"> 20 <td> 22 21 <form method="POST" action="@@show"> 23 <input i18n:translate="" type="submit" class="btn primary"24 22 <input i18n:translate="" type="submit" class="btn btn-primary" 23 name="show" tal:attributes="value view/show_button" /> 25 24 <input type="hidden" name="logname" 26 25 tal:attributes="value file/name" /> 27 26 </form></td> 28 27 <td tal:content="file/name">file.name</td> … … 33 32 </table> 34 33 <form method="POST"> 35 <button class="btn primary"> 36 <span i18n:translate="">Reload page</span> 37 </button> 38 <input i18n:translate="" type="submit" class="btn" name="back" 34 <input i18n:translate="" type="submit" class="btn btn-default" name="back" 39 35 tal:attributes="value view/back_button"/> 40 36 </form> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterlogsshowfilepage.pt
r8529 r11005 1 1 <form method="post" class="form-horizontal"> 2 <input type="text" name="query" 2 <input type="text" name="query" class="form-control" 3 3 tal:attributes="value view/query; placeholder view/placeholder" /> 4 <input class="btn primary" type="submit" name="search"4 <input class="btn btn-primary" type="submit" name="search" 5 5 tal:attributes="value view/search_button" /> 6 <input class="btn " type="submit" name="back"6 <input class="btn btn-default" type="submit" name="back" 7 7 tal:attributes="value view/back_button" /> 8 8 <input type="hidden" name="logname" -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacentermanagepage.pt
r7811 r11005 1 1 <form i18n:domain="waeup.kofa" method="POST"> 2 <div> 3 <span i18n:translate="">Storage path:</span> 4 <input type="text" name="newpath" 5 tal:attributes="value context/storage" /> 6 <br /><br /> 7 <span i18n:translate=""> 8 Copy existing data to new storage? 9 </span> 10 <input type="checkbox" name="move" checked="checked" /> 11 <br /><br /> 12 <span i18n:translate=""> 13 Overwrite contents in new location? 14 </span> 15 <input type="checkbox" name="overwrite" checked="no" /> 16 <br /><br /> 17 <input class="btn primary" type="submit" name="save" 18 tal:attributes="value view/save_button" /> 19 <input class="btn" type="reset" name="reset" 20 tal:attributes="value view/reset_button" /> 21 <input class="btn" type="submit" name="cancel" 22 tal:attributes="value view/cancel_button" /> 2 3 <br /> 4 <div class="form-group"> 5 <label i18n:translate="">Storage path</label> 6 <input type="text" name="newpath" class="form-control" 7 tal:attributes="value context/storage" /> 23 8 </div> 9 10 <div class="checkbox"> 11 <label> 12 <input type="checkbox" name="move" checked="checked"> 13 Copy existing data to new storage? 14 </label> 15 </div> 16 17 <div class="checkbox"> 18 <label> 19 <input type="checkbox" name="overwrite"> 20 Overwrite contents in new location? 21 </label> 22 </div> 23 24 <input class="btn btn-primary" type="submit" name="save" 25 tal:attributes="value view/save_button" /> 26 <input class="btn btn-default" type="reset" name="reset" 27 tal:attributes="value view/reset_button" /> 28 <input class="btn btn-default" type="submit" name="cancel" 29 tal:attributes="value view/cancel_button" /> 24 30 </form> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenteruploadpage.pt
r9930 r11005 46 46 <tr> 47 47 <td> 48 <input class="btn primary" type="submit" name="SUBMIT"48 <input class="btn btn-primary" type="submit" name="SUBMIT" 49 49 tal:attributes="value view/upload_button" /> 50 <input class="btn " type="submit" name="CANCEL"50 <input class="btn btn-default" type="submit" name="CANCEL" 51 51 tal:attributes="value view/cancel_button"/> 52 52 </td> … … 67 67 <h2 i18n:translate="">Available Processors (Importers)</h2> 68 68 69 <table i18n:domain="waeup.kofa"> 70 <thead> 71 <tr> 72 <th i18n:translate="">Processor</th> 73 <th i18n:translate="">Required Schema Fields</th> 74 <th i18n:translate="">Optional Schema Fields</th> 75 <th i18n:translate="">Non-Schema Fields</th> 76 <th i18n:translate="">CSV Skeleton File</th> 69 <div class="table-responsive"> 70 <table i18n:domain="waeup.kofa" class="table table-condensed"> 71 <thead> 72 <tr> 73 <th i18n:translate="">Processor</th> 74 <th i18n:translate="">Required Schema Fields</th> 75 <th i18n:translate="">Optional Schema Fields</th> 76 <th i18n:translate="">Non-Schema Fields</th> 77 </tr> 78 </thead> 79 <tr tal:repeat="importer view/getImporters"> 80 <td> 81 <span tal:content="importer/title">TITLE</span><br /><br /> 82 <a i18n:translate="" class="btn btn-primary btn-xs" 83 tal:attributes="href python: 'skeleton?name=' + importer['name']"> 84 Download CSV Skeleton File 85 </a> 86 </td> 87 <td nowrap> 88 <span tal:repeat="field importer/fields"> 89 <tal:schemafield condition="field/f_type"> 90 <tal:required condition="field/f_required"> 91 <span tal:replace="field/f_name"></span> 92 (<span tal:replace="field/f_type"></span>) 93 <br /> 94 </tal:required> 95 </tal:schemafield> 96 </span> 97 </td> 98 <td nowrap> 99 <span tal:repeat="field importer/fields"> 100 <tal:schemafield condition="field/f_type"> 101 <tal:notrequired condition="not:field/f_required"> 102 <span tal:replace="field/f_name"></span> 103 (<span tal:replace="field/f_type"></span>) 104 <br /> 105 </tal:notrequired> 106 </tal:schemafield> 107 </span> 108 </td> 109 <td> 110 <span tal:repeat="field importer/fields"> 111 <tal:extrafield condition="not:field/f_type"> 112 <span tal:replace="field/f_name"></span> 113 <br /> 114 </tal:extrafield> 115 </span> 116 </td> 117 77 118 </tr> 78 </thead> 79 <tr tal:repeat="importer view/getImporters"> 80 <td tal:content="importer/title"></td> 81 <td nowrap> 82 <span tal:repeat="field importer/fields"> 83 <tal:schemafield condition="field/f_type"> 84 <tal:required condition="field/f_required"> 85 <span tal:replace="field/f_name"></span> 86 (<span tal:replace="field/f_type"></span>) 87 <br /> 88 </tal:required> 89 </tal:schemafield> 90 </span> 91 </td> 92 <td nowrap> 93 <span tal:repeat="field importer/fields"> 94 <tal:schemafield condition="field/f_type"> 95 <tal:notrequired condition="not:field/f_required"> 96 <span tal:replace="field/f_name"></span> 97 (<span tal:replace="field/f_type"></span>) 98 <br /> 99 </tal:notrequired> 100 </tal:schemafield> 101 </span> 102 </td> 103 <td> 104 <span tal:repeat="field importer/fields"> 105 <tal:extrafield condition="not:field/f_type"> 106 <span tal:replace="field/f_name"></span> 107 <br /> 108 </tal:extrafield> 109 </span> 110 </td> 111 112 <td> 113 <a i18n:translate="" 114 tal:attributes="href python: 'skeleton?name=' + importer['name']">Download</a> 115 </td> 116 </tr> 117 </table> 119 </table> 120 </div> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/exportjobsindex.pt
r11002 r11005 1 <div class=" 1 <div class="table-responsive"> 2 2 <table i18n:domain="waeup.kofa" class="table"> 3 3 <thead>
Note: See TracChangeset for help on using the changeset viewer.