Ignore:
Timestamp:
29 Sep 2011, 06:40:38 (13 years ago)
Author:
Henrik Bettermann
Message:

Reduce style declarations in page templates.

datacenterimport3page.pt: Do not render warning messages on top of table. We can use the flash slot instead. Only the 'Header fields OK' notification is still displayed on top of table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport3page.pt

    r6826 r6829  
    11<h2>Process CSV file</h2>
    22<h3>Step 3</h3>
    3 <div tal:define="warnings view/getWarnings">
    43<form>
    5 
    64  <p>
    75    Eventually modify headerfields of import file below.
    86  </p>
    9 
    107  <p>
    11     <b>File:</b> <span tal:content="view/filename">Filename.csv</span>
     8    <b>File:</b>
     9    <span tal:content="view/filename">Filename.csv</span>
    1210    <input type="hidden" name="filename"
    1311     tal:attributes="value view/filename" />
     
    2523     tal:attributes="value view/mode" />
    2624  </p>
    27 
     25  <div class="alert notice ui-state-info" tal:condition="not: view/getWarnings">
     26    <span class="ui-icon ui-icon-info">A</span>
     27    Header fields OK
     28  </div>
    2829  <div>
    29     <div class="alert error ui-state-error" tal:condition="warnings">
    30       <span class="ui-icon ui-icon-alert">A</span>
    31       Current settings will give the follwing warnings, when importing:
    32       <div tal:repeat="warning warnings" tal:content="warning">
    33           Warning messages
    34       </div>
    35     </div>
    36 
    37     <div class="alert notice ui-state-info" tal:condition="not: warnings">
    38       <span class="ui-icon ui-icon-info">A</span>
    39       Header fields OK
    40     </div>
    41   </div>
    42 
    43 
    44   <div>
    45     <table style="border: 1px solid #000;"
     30    <table class = "zebra"
    4631     tal:define="body view/getPreviewBody;
    4732           headers view/headerfields;
    4833           fieldnum python: len(headers)">
    4934      <thead>
    50         <tr style="border: 1px solid #ccc;">
     35        <tr>
    5136          <th style="border: 1px solid #888;"
    5237              tal:repeat="headerfield headers"
     
    5540          </th>
    5641        </tr>
    57         <tr style="border: 1px solid #ccc;">
     42        <tr>
    5843          <th style="border: 1px solid #888; text-align=center;"
    5944              tal:repeat="headerfield headers">
     
    6146          </th>
    6247        </tr>
    63         <tr style="border: 1px solid #ccc;">
     48        <tr>
    6449          <th style="border: 1px solid #888;"
    6550              tal:repeat="headerfield headers">
     
    7459          </th>
    7560        </tr>
    76             </thead>
    77             <tbody>
    78         <tr tal:repeat="row body"
    79             tal:attributes="class python: repeat['row'].odd() and 'odd' or 'even'"
    80             style="border: 1px solid #000;">
     61      </thead>
     62      <tbody>
     63        <tr tal:repeat="row body">
    8164          <td tal:repeat="value row"
    8265              tal:content="value"
     
    8972  </div>
    9073
    91 
    9274  <input type="submit" name="cancel" value="Cancel" />
    9375  <input type="reset" name="reset" value="Reset" />
     
    9577  <br />
    9678  <input type="submit" name="back2" value="Back to step 2" />
    97   <input tal:attributes="disabled python: len(warnings) and 'disabled' or ''"
     79  <input tal:attributes="disabled python: view.getWarnings() and 'disabled' or ''"
    9880   type="submit" name="proceed" value="Perform import..." />
    99 
    10081</form>
    101 </div>
Note: See TracChangeset for help on using the changeset viewer.