Changeset 9676


Ignore:
Timestamp:
18 Nov 2012, 09:15:28 (12 years ago)
Author:
Henrik Bettermann
Message:

Nesting forms can't be tested. They are causing a ParseError?.

File:
1 edited

Legend:

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

    r9665 r9676  
     1<table i18n:domain="waeup.kofa">
     2  <thead>
     3    <tr>
     4      <th i18n:translate="">Report Number</th>
     5      <th i18n:translate="">Description</th>
     6      <th i18n:translate="">Creator</th>
     7      <th i18n:translate="">Creation Date</th>
     8      <th i18n:translate="">Status</th>
     9      <th>&nbsp;</th>
     10    </tr>
     11  </thead>
     12  <tbody>
     13    <tr tal:repeat="entry view/entries">
     14      <td>
     15        <span tal:replace="python: entry[0]">12</span>
     16      </td>
     17      <td>
     18        <span tal:replace="python: entry[1]">REPORT DESCRIPTION</span>
     19      </td>
     20      <td>
     21        <span tal:replace="python: entry[7]">CREATOR</span>
     22      </td>
     23      <td nowrap>
     24        <span tal:replace="python: entry[6]">DATETIME</span>
     25      </td>
     26      <td>
     27        <span tal:replace="python: entry[2]">STATUS</span>
     28      </td>
     29      <td nowrap>
     30        <form method="POST">
     31          <input type="hidden" name="job_id"
     32                 tal:attributes="value python: entry[0]" />
     33          <input type="submit" class="btn primary"
     34                 name="DOWNLOAD" value="Download"
     35                 tal:condition="python: entry[4]" />
     36          <input type="submit" class="btn secondary"
     37                 name="DISCARD" value="Discard"
     38                 tal:condition="python: entry[3]" />
     39        </form>
     40        <a href="" class="btn" tal:condition="python: entry[5]">
     41          Reload
     42          <img tal:attributes="src static/actionicon_reload.png" />
     43        </a>
     44      </td>
     45    </tr>
     46  </tbody>
     47</table>
    148<form method="POST" i18n:domain="waeup.kofa">
    2   <table>
    3     <thead>
    4       <tr>
    5         <th i18n:translate="">Report Number</th>
    6         <th i18n:translate="">Description</th>
    7         <th i18n:translate="">Creator</th>
    8         <th i18n:translate="">Creation Date</th>
    9         <th i18n:translate="">Status</th>
    10         <th>&nbsp;</th>
    11       </tr>
    12     </thead>
    13     <tbody>
    14       <tr tal:repeat="entry view/entries">
    15         <td>
    16           <span tal:replace="python: entry[0]">12</span>
    17         </td>
    18         <td>
    19           <span tal:replace="python: entry[1]">REPORT DESCRIPTION</span>
    20         </td>
    21         <td>
    22           <span tal:replace="python: entry[7]">CREATOR</span>
    23         </td>
    24         <td nowrap>
    25           <span tal:replace="python: entry[6]">DATETIME</span>
    26         </td>
    27         <td>
    28           <span tal:replace="python: entry[2]">STATUS</span>
    29         </td>
    30         <td nowrap>
    31           <form method="POST">
    32             <input type="hidden" name="job_id"
    33                    tal:attributes="value python: entry[0]" />
    34             <input type="submit" class="btn primary"
    35                    name="DOWNLOAD" value="Download"
    36                    tal:condition="python: entry[4]" />
    37             <input type="submit" class="btn secondary"
    38                    name="DISCARD" value="Discard"
    39                    tal:condition="python: entry[3]" />
    40             <a href="" class="btn"
    41                    tal:condition="python: entry[5]">
    42               Reload
    43               <img tal:attributes="src static/actionicon_reload.png" />
    44             </a>
    45           </form>
    46         </td>
    47       </tr>
    48     </tbody>
    49   </table>
    5049  <div class="span12">
    51     <a href="create" class="btn primary">Create new report</a>
     50    <a href="create" class="btn primary" i18n:translate="">
     51      Create new report
     52    </a>
    5253  </div>
    5354</form>
Note: See TracChangeset for help on using the changeset viewer.