Changeset 7198 for main/waeup.sirp/trunk


Ignore:
Timestamp:
25 Nov 2011, 13:35:24 (13 years ago)
Author:
Henrik Bettermann
Message:

Use WAeUP datetime format and replace tabs in pagetemplates

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

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/batchcontainer.pt

    r6427 r7198  
    1010      <tr>
    1111        <th>&nbsp;</th>
    12         <th>Prefix</th><th>Entries/(invalidated)</th><th>Cost</th>
    13         <th>Created</th><th>Creator</th>
     12  <th>Prefix</th><th>Entries/(invalidated)</th><th>Cost</th>
     13  <th>Created</th><th>Creator</th>
    1414      </tr>
    1515    </thead>
    1616    <tbody>
    1717      <tr tal:repeat="batch context/values"
    18           tal:attributes="class python: repeat['batch'].odd() and 'even' or 'odd'">
    19         <td>
    20           <input type="checkbox" name="batches" value="batch/prefix"
    21                  tal:attributes="value batch/__name__" />
    22         </td>
    23         <td>
    24           <span tal:replace="batch/prefix">APP</span>
    25           -
    26           <span tal:replace="batch/num">10</span>
    27         </td>
    28         <td>
    29           <span tal:replace="batch/entry_num">1012</span>
    30           /
    31           <span tal:replace="batch/used_num">512</span>
    32         </td>
    33         <td tal:content="batch/cost">12.12</td>
    34         <td tal:content="python: batch.creation_date.ctime()">2009/12/24</td>
    35         <td tal:content="batch/creator">some user</td>
     18    tal:attributes="class python: repeat['batch'].odd() and 'even' or 'odd'">
     19  <td>
     20    <input type="checkbox" name="batches" value="batch/prefix"
     21     tal:attributes="value batch/__name__" />
     22  </td>
     23  <td>
     24    <span tal:replace="batch/prefix">APP</span>
     25    -
     26    <span tal:replace="batch/num">10</span>
     27  </td>
     28  <td>
     29    <span tal:replace="batch/entry_num">1012</span>
     30    /
     31    <span tal:replace="batch/used_num">512</span>
     32  </td>
     33  <td tal:content="batch/cost">12.12</td>
     34  <td tal:content="python: batch.creation_date.strftime('%Y-%m-%d %H:%M:%S')">
     35      2011-11-22 18:04:55
     36  </td>
     37  <td tal:content="batch/creator">some user</td>
    3638      </tr>
    3739      <tr tal:condition="not: context/values">
    38         <td colspan="5"><b>No batches yet</b></td>
     40  <td colspan="5"><b>No batches yet</b></td>
    3941      </tr>
    4042    </tbody>
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/reimportbatchpage.pt

    r6452 r7198  
    99      <tr>
    1010        <th>&nbsp;</th>
    11         <th>File</th>
     11  <th>File</th>
    1212      </tr>
    1313    </thead>
    1414    <tbody>
    1515      <tr tal:repeat="filename context/getImportFiles"
    16           tal:attributes="class python: repeat['filename'].odd() and 'even' or 'odd'">
    17         <td>
    18           <input type="checkbox" name="filenames" value="filename"
    19                 tal:attributes="value filename" />
    20         </td>
    21         <td tal:content="filename">file.name</td>
     16    tal:attributes="class python: repeat['filename'].odd() and 'even' or 'odd'">
     17  <td>
     18    <input type="checkbox" name="filenames" value="filename"
     19    tal:attributes="value filename" />
     20  </td>
     21  <td tal:content="filename">file.name</td>
    2222      </tr>
    2323      <tr tal:condition="python: len(list(context.getImportFiles())) == 0">
    24         <td colspan="5"><b>No import batches available</b></td>
     24  <td colspan="5"><b>No import batches available</b></td>
    2525      </tr>
    2626    </tbody>
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser_templates/searchpage.pt

    r6928 r7198  
    2323    <table class="display dataTableManage">
    2424      <thead>
    25         <tr>
    26           <th>&nbsp;</th>
    27           <th width="50px">Serial</th>
     25      <tr>
     26        <th>&nbsp;</th>
     27        <th width="50px">Serial</th>
    2828        <th>AC</th>
    2929        <th>State</th>
    3030        <th>Owner</th>
    3131        <th>History</th>
    32         </tr>
     32      </tr>
    3333      </thead>
    3434      <tbody>
    35         <tr tal:repeat="item view/hitlist">
    36           <td><input type="checkbox" name="entries"
    37                      tal:attributes="value item/code" /></td>
    38           <td tal:content="item/batch_serial">1</td>
    39           <td tal:content="item/code">APP-1-1234567890</td>
    40           <td tal:content="item/state">unused</td>
     35      <tr tal:repeat="item view/hitlist">
     36        <td><input type="checkbox" name="entries"
     37                   tal:attributes="value item/code" /></td>
     38        <td tal:content="item/batch_serial">1</td>
     39        <td tal:content="item/code">APP-1-1234567890</td>
     40        <td tal:content="item/state">unused</td>
    4141        <td tal:content="item/owner">Id</td>
    4242          <td tal:content="structure python:item.history.replace('||','<br />')">
    4343            history
    4444          </td>
    45         </tr>
     45      </tr>
    4646      </tbody>
    4747    </table>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/loginpage.pt

    r6717 r7198  
    2727  If you are having trouble logging in, make sure to enable  cookies in your web browser.
    2828  </p>
    29   <p>You don't have an account because you are a fresh student or your student record has just been created?
     29  <p>You don't have an account because you are a fresh student, or your student record has just been created?
    3030  Acquire a Password Access Code (PWD) and inititialize your student account
    3131  <strong><a href  ="setpassword"> here</a></strong>.
Note: See TracChangeset for help on using the changeset viewer.