Ignore:
Timestamp:
28 Sep 2011, 19:45:05 (13 years ago)
Author:
Henrik Bettermann
Message:

Replace tabs.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates
Files:
4 edited

Legend:

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

    r4858 r6826  
    1515    <tbody>
    1616      <tr tal:repeat="file view/getFiles"
    17           tal:attributes="class python: repeat['file'].odd() and 'odd' or ''">
    18         <td>
    19           <button type="submit" name="select"
    20                   tal:attributes="value file/name"
    21                   >Select</button>
    22         </td>
    23         <td tal:content="file/name">Filename.csv</td>
    24         <td tal:content="python: file.lines - 1">12</td>
    25         <td tal:content="file/size">123 Bytes</td>
    26         <td tal:content="file/getDate">1.1.1970</td>
     17      tal:attributes="class python: repeat['file'].odd() and 'odd' or ''">
     18        <td>
     19          <button type="submit" name="select"
     20            tal:attributes="value file/name"
     21            >Select</button>
     22        </td>
     23        <td tal:content="file/name">Filename.csv</td>
     24        <td tal:content="python: file.lines - 1">12</td>
     25        <td tal:content="file/size">123 Bytes</td>
     26        <td tal:content="file/getDate">1.1.1970</td>
    2727      </tr>
    2828    </tbody>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport2page.pt

    r5000 r6826  
    1 <h2>Process CSV file</h2>
    2 <h3>Step 2</h3>
    3 
     1<h2>Process CSV file</h2><h3>Step 2</h3>
    42<form method="POST">
    5   <p>
    6     <b>File:</b> <span tal:content="view/filename">Filename.csv</span>
    7     <input type="hidden" name="filename"
    8            tal:attributes="value view/filename" />
     3  <p> <b>File:</b>
     4    <span tal:content="view/filename">Filename.csv
     5    </span>
     6    <input type="hidden" name="filename"  tal:attributes="value view/filename" />
    97  </p>
    10   <p>
    11     Please select a file-processor and a processing-mode from the
    12     selections below:
     8  <p> Please select a file-processor and a processing-mode from the  selections below:
    139  </p>
    14 
    1510  <div>
    1611    <table style="border: 1px solid #000;"
    17            tal:define="body view/getPreviewBody;
    18                        headers view/getPreviewHeader;
    19                        fieldnum python: len(headers)">
     12            tal:define="body view/getPreviewBody;
     13                        headers view/getPreviewHeader;
     14                        fieldnum python: len(headers)">
    2015      <thead>
    21         <tr style="border: 1px solid #ccc;">
    22           <th style="border: 1px solid #888;"
    23               tal:repeat="headerfield headers"
    24               tal:content="headerfield">
    25             headerfield
    26           </th>
    27         </tr>
     16        <tr style="border: 1px solid #ccc;">
     17          <th style="border: 1px solid #888;"
     18              tal:repeat="headerfield headers"
     19              tal:content="headerfield"> headerfield
     20          </th>
     21        </tr>
    2822      </thead>
    2923      <tbody>
    30         <tr tal:repeat="row body"
    31             tal:attributes="class python: repeat['row'].odd() and 'odd' or 'even'"
    32             style="border: 1px solid #000;">
    33           <td tal:repeat="value row"
    34               tal:content="value"
    35               style="border: 1px solid #000;">
    36             value
    37           </td>
    38         </tr>
     24        <tr tal:repeat="row body"
     25            tal:attributes="class python: repeat['row'].odd() and 'odd' or 'even'"
     26            style="border: 1px solid #000;">
     27          <td tal:repeat="value row"
     28              tal:content="value"  style="border: 1px solid #000;"> value  </td>
     29        </tr>
    3930      </tbody>
    4031    </table>
    4132  </div>
    42 
    43   <div>
    44     <b>Processor:</b>
    45 
     33  <div> <b>Processor:</b>
    4634    <select name="importer">
    4735      <option tal:repeat="importer view/getImporters"
    48               tal:attributes="value importer/name;
    49                               selected python: importer['name'] == view.importer and 'selected' or ''"
    50               tal:content="importer/title">
    51         Some Importer
     36          tal:attributes="value importer/name;
     37              selected python: importer['name'] == view.importer and 'selected' or ''"
     38          tal:content="importer/title"> Some Importer
    5239      </option>
    5340    </select>
    54 
    5541  </div>
    56 
    57   <p>&nbsp;</p>
    58 
    59   <div>
    60     <b>Mode:</b>
    61 
     42  <p>&nbsp;
     43  </p>
     44  <div> <b>Mode:</b>
    6245    <input type="radio" name="mode" value="create" checked="checked"
    63            tal:attributes="checked python: view.mode == 'create' and 'checked' or '';
    64                            disabled python: view.mode != 'create' and view.mode_locked and 'disabled' or ''" /> Create
    65     &nbsp;&nbsp;
     46       tal:attributes="checked python: view.mode == 'create' and 'checked' or '';
     47        disabled python: view.mode != 'create' and view.mode_locked and 'disabled' or ''" />
     48        Create  &nbsp;&nbsp;
    6649    <input type="radio" name="mode" value="update"
    67            tal:attributes="checked python: view.mode == 'update' and 'checked' or '';
    68                            disabled python: view.mode != 'update' and view.mode_locked and 'disabled' or ''" /> Update
    69     &nbsp;&nbsp;
     50       tal:attributes="checked python: view.mode == 'update' and 'checked' or '';
     51        disabled python: view.mode != 'update' and view.mode_locked and 'disabled' or ''" />
     52        Update  &nbsp;&nbsp;
    7053    <input type="radio" name="mode" value="remove"
    71            tal:attributes="checked python: view.mode == 'remove' and 'checked' or '';
    72                            disabled python: view.mode != 'remove' and view.mode_locked and 'disabled' or ''" /> Remove
    73 
    74     <p>&nbsp;</p>
     54       tal:attributes="checked python: view.mode == 'remove' and 'checked' or '';
     55        disabled python: view.mode != 'remove' and view.mode_locked and 'disabled' or ''" />
     56        Remove
     57    <p>&nbsp;
     58    </p>
    7559  </div>
    76 
    7760  <input type="submit" name="cancel" value="Cancel" />
    7861  <input type="submit" name="back1" value="Back to step 1" />
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport3page.pt

    r4858 r6826  
    1111    <b>File:</b> <span tal:content="view/filename">Filename.csv</span>
    1212    <input type="hidden" name="filename"
    13            tal:attributes="value view/filename" />
     13     tal:attributes="value view/filename" />
    1414  </p>
    1515  <p>
     
    1717    <span tal:content="view/importer/name">Importer Name</span>
    1818    <input type="hidden" name="importer"
    19            tal:attributes="value view/importer/util_name" />
     19     tal:attributes="value view/importer/util_name" />
    2020  </p>
    2121  <p>
     
    2323    <span tal:content="view/mode">mode</span>
    2424    <input type="hidden" name="mode"
    25            tal:attributes="value view/mode" />
     25     tal:attributes="value view/mode" />
    2626  </p>
    2727
    2828  <div>
    29     <div class="alert error ui-state-error"
    30          tal:condition="warnings">
     29    <div class="alert error ui-state-error" tal:condition="warnings">
    3130      <span class="ui-icon ui-icon-alert">A</span>
    3231      Current settings will give the follwing warnings, when importing:
    33       <div tal:repeat="warning warnings"
    34            tal:content="warning">
    35         Warning messages
     32      <div tal:repeat="warning warnings" tal:content="warning">
     33          Warning messages
    3634      </div>
    3735    </div>
    3836
    39     <div class="alert notice ui-state-info"
    40          tal:condition="not: warnings">
     37    <div class="alert notice ui-state-info" tal:condition="not: warnings">
    4138      <span class="ui-icon ui-icon-info">A</span>
    4239      Header fields OK
     
    4744  <div>
    4845    <table style="border: 1px solid #000;"
    49            tal:define="body view/getPreviewBody;
    50                        headers view/headerfields;
    51                        fieldnum python: len(headers)">
     46     tal:define="body view/getPreviewBody;
     47           headers view/headerfields;
     48           fieldnum python: len(headers)">
    5249      <thead>
    53         <tr style="border: 1px solid #ccc;">
    54           <th style="border: 1px solid #888;"
    55               tal:repeat="headerfield headers"
    56               tal:content="headerfield">
    57             headerfield
    58           </th>
    59         </tr>
    60         <tr style="border: 1px solid #ccc;">
    61           <th style="border: 1px solid #888; text-align=center;"
    62               tal:repeat="headerfield headers">
    63             <i>change to:</i>
    64           </th>
    65         </tr>
    66         <tr style="border: 1px solid #ccc;">
    67           <th style="border: 1px solid #888;"
    68               tal:repeat="headerfield headers">
    69             <select name="headerfield">
    70               <option tal:repeat="opt view/getPossibleHeaders"
    71                       tal:attributes="value opt/value;
    72                                       selected python: opt['value']==headerfield and 'selected' or '';"
    73                       tal:content="opt/title">
    74                 new_header_name
    75               </option>
    76             </select>
    77           </th>
    78         </tr>
    79       </thead>
    80       <tbody>
    81         <tr tal:repeat="row body"
    82             tal:attributes="class python: repeat['row'].odd() and 'odd' or 'even'"
    83             style="border: 1px solid #000;">
    84           <td tal:repeat="value row"
    85               tal:content="value"
    86               style="border: 1px solid #000;">
    87             value
    88           </td>
    89         </tr>
     50        <tr style="border: 1px solid #ccc;">
     51          <th style="border: 1px solid #888;"
     52              tal:repeat="headerfield headers"
     53              tal:content="headerfield">
     54            headerfield
     55          </th>
     56        </tr>
     57        <tr style="border: 1px solid #ccc;">
     58          <th style="border: 1px solid #888; text-align=center;"
     59              tal:repeat="headerfield headers">
     60            <i>change to:</i>
     61          </th>
     62        </tr>
     63        <tr style="border: 1px solid #ccc;">
     64          <th style="border: 1px solid #888;"
     65              tal:repeat="headerfield headers">
     66            <select name="headerfield">
     67              <option tal:repeat="opt view/getPossibleHeaders"
     68                tal:attributes="value opt/value;
     69                  selected python: opt['value']==headerfield and 'selected' or '';"
     70                tal:content="opt/title">
     71                new_header_name
     72              </option>
     73            </select>
     74          </th>
     75        </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;">
     81          <td tal:repeat="value row"
     82              tal:content="value"
     83              style="border: 1px solid #000;">
     84            value
     85          </td>
     86        </tr>
    9087      </tbody>
    9188    </table>
     
    9996  <input type="submit" name="back2" value="Back to step 2" />
    10097  <input tal:attributes="disabled python: len(warnings) and 'disabled' or ''"
    101         type="submit" name="proceed" value="Perform import..." />
     98  type="submit" name="proceed" value="Perform import..." />
    10299
    103100</form>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport4page.pt

    r4858 r6826  
    1717<form method="POST">
    1818  <input tal:condition="view/warn_num"
    19         type="submit" name="back" value="Back to step 3" />
     19    type="submit" name="back" value="Back to step 3" />
    2020  <input type="submit" name="finish" value="Back to data center" />
    2121  <input type="submit" name="showlog" value="View processing log" />
Note: See TracChangeset for help on using the changeset viewer.