Ignore:
Timestamp:
8 Jun 2012, 11:42:58 (12 years ago)
Author:
Henrik Bettermann
Message:

Transpose tables for previewing data on import pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/datacenterimport2page.pt

    r7811 r8651  
    1010  </p>
    1111  <div>
    12     <table
    13        tal:define="body view/getPreviewBody;
    14                     headers view/getPreviewHeader;
    15                     fieldnum python: len(headers)">
     12    <table tal:define="prev_table view/getPreviewTable;">
    1613      <thead>
    1714        <tr>
    18           <th tal:repeat="headerfield headers"
    19               tal:content="headerfield"> headerfield
    20           </th>
     15          <th i18n:translate="">Header</th>
     16          <th i18n:translate="">Sample Record 1</th>
     17          <th i18n:translate="">Sample Record 2</th>
     18          <th i18n:translate="">Sample Record 3</th>
    2119        </tr>
    2220      </thead>
    2321      <tbody>
    24         <tr tal:repeat="row body">
     22        <tr tal:repeat="row prev_table">
    2523          <td tal:repeat="value row"
    2624              tal:content="value"> value
Note: See TracChangeset for help on using the changeset viewer.