Ignore:
Timestamp:
29 Jan 2014, 18:42:53 (11 years ago)
Author:
Henrik Bettermann
Message:

First adjustments in datacenter.

Location:
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/pages.py

    r11001 r11005  
    11791179    label = _(u'Process CSV file')
    11801180    pnav = 0
    1181     cancel_button =_(u'Cancel')
     1181    cancel_button =_(u'Back to Data Center')
    11821182
    11831183    def getFiles(self):
     
    11911191    def update(self, filename=None, select=None, cancel=None):
    11921192        if cancel is not None:
    1193             self.flash(_('Import aborted.'))
    11941193            self.redirect(self.url(self.context))
    11951194            return
     
    15041503    pnav = 0
    15051504    search_button = _('Search')
    1506     back_button = _('Back')
     1505    back_button = _('Back to Data Center')
    15071506    placeholder = _('Enter a regular expression here...')
    15081507
     
    15431542    save_button =_(u'Save')
    15441543    reset_button =_(u'Reset')
    1545     cancel_button =_(u'Cancel')
     1544    cancel_button =_(u'Back to Data Center')
    15461545
    15471546    def update(self, newpath=None, move=False, overwrite=False,
     
    15621561                    mapping = {'a':name}))
    15631562        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')
    15661565            return
    15671566        if newpath:
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterimport1page.pt

    r7811 r11005  
    88</p>
    99<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"
    3335      tal:attributes="value view/cancel_button" />
    3436</form>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterlogspage.pt

    r9641 r11005  
    33  Currently no log files are available.
    44  </p>
    5   <table tal:condition="files" class="table condensed-table">
     5  <table tal:condition="files" class="table">
    66    <thead>
    77      <tr>
     
    1717    </thead>
    1818    <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>
    2221          <form method="POST" action="@@show">
    23             <input i18n:translate="" type="submit" class="btn primary"
    24                    name="show" tal:attributes="value view/show_button" />
     22            <input i18n:translate="" type="submit" class="btn btn-primary"
     23                   name="show" tal:attributes="value view/show_button" />
    2524            <input type="hidden" name="logname"
    26                    tal:attributes="value file/name" />
     25                   tal:attributes="value file/name" />
    2726          </form></td>
    2827        <td tal:content="file/name">file.name</td>
     
    3332  </table>
    3433  <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"
    3935        tal:attributes="value view/back_button"/>
    4036  </form>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterlogsshowfilepage.pt

    r8529 r11005  
    11<form method="post" class="form-horizontal">
    2   <input type="text" name="query"
     2  <input type="text" name="query" class="form-control"
    33         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"
    55         tal:attributes="value view/search_button" />
    6   <input class="btn" type="submit" name="back"
     6  <input class="btn btn-default" type="submit" name="back"
    77         tal:attributes="value view/back_button" />
    88  <input type="hidden" name="logname"
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacentermanagepage.pt

    r7811 r11005  
    11<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>&nbsp;&nbsp;
    10     <input type="checkbox" name="move" checked="checked" />
    11     <br /><br />
    12     <span  i18n:translate="">
    13     Overwrite contents in new location?
    14     </span>&nbsp;&nbsp;
    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" />
    238  </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" />
    2430</form>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenteruploadpage.pt

    r9930 r11005  
    4646    <tr>
    4747      <td>
    48         <input class="btn primary" type="submit" name="SUBMIT"
     48        <input class="btn btn-primary" type="submit" name="SUBMIT"
    4949            tal:attributes="value view/upload_button" />
    50         <input class="btn" type="submit" name="CANCEL"
     50        <input class="btn btn-default" type="submit" name="CANCEL"
    5151            tal:attributes="value view/cancel_button"/>
    5252      </td>
     
    6767<h2 i18n:translate="">Available Processors (Importers)</h2>
    6868
    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
    77118    </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=" table-responsive">
     1<div class="table-responsive">
    22  <table i18n:domain="waeup.kofa" class="table">
    33    <thead>
Note: See TracChangeset for help on using the changeset viewer.