Ignore:
Timestamp:
15 Nov 2012, 22:10:45 (12 years ago)
Author:
Henrik Bettermann
Message:

Rework pagetemplates.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates
Files:
3 edited

Legend:

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

    r8529 r9641  
    3434  <form method="POST">
    3535    <button class="btn primary">
    36       <img tal:attributes="src static/actionicon_reload.png" />
    37       <span i18n:translate="">Reload Page</span>
     36      <span i18n:translate="">Reload page</span>
    3837    </button>
    3938    <input i18n:translate="" type="submit" class="btn" name="back"
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/reportscontainercreate.pt

    r9633 r9641  
    1 <div i18n:domain="waeup.kofa">
    2   <h2 i18n:translate="">Create Report</h2>
    3   <div class="row">
    4     <div class="span8 columns">
    5       <div class="span8 columns">
    6         <p i18n:translate="">
    7           Here you can create reports representing portal data.
    8         </p>
    9         <p i18n:translate="">
    10           Please pick the type of report you want to create from the
    11           selection below.
    12         </p>
    13         <p i18n:translate="">
    14           Afterwards you can configure the report (do the settings).
    15           The report data will be calculated and then made available
    16           for you to view/download.
    17         </p>
     1<form  i18n:domain="waeup.kofa"  method="POST">
     2  <p i18n:translate="">
     3    Here you can create reports representing portal data.
     4    Please pick the type of report you want to create from the
     5    selection below.
     6    Afterwards you can configure the report (do the settings).
     7    The report data will be calculated and then made available
     8    for you to view/download.
     9  </p>
     10  <br />
     11  <div class="clearfix">
     12    <label for="generator">Report Type:</label>
     13    <div class="input">
     14      <select name="generator">
     15        <span tal:repeat="items view/creators" tal:omit-tag="">
     16      <option
     17          tal:define="name python: items[1]; title python: items[0]"
     18          tal:attributes="value name">
     19        <span tal:replace="title">TITLE</span>
     20      </option>
     21        </span>
     22      </select>
     23      <div class="help-inline" i18n:translate="">
     24        Type of report to create
    1825      </div>
    19       <form  method="POST">
    20       <fieldset>
    21 
    22         <div class="clearfix">
    23           <label for="generator">Report Type:</label>
    24           <div class="input">
    25             <select name="generator">
    26               <span tal:repeat="items view/creators" tal:omit-tag="">
    27                 <option
    28                     tal:define="name python: items[1]; title python: items[0]"
    29                     tal:attributes="value name">
    30                   <span tal:replace="title">TITLE</span>
    31                 </option>
    32               </span>
    33             </select>
    34             <span class="help-inline" i18n:translate="">
    35               Type of report to create
    36             </span>
    37           </div>
    38 
    39         </div>
    40         <div class="input">
    41           <input i18n:translate="" type="submit" class="btn primary"
    42                  name="START_GENERATOR" value="Configure" />
    43         </div>
    44 
    45       </fieldset>
    46     </form>
    47 
    4826    </div>
    4927  </div>
    50 </div>
     28  <div class="input">
     29    <input i18n:translate="" type="submit" class="btn primary"
     30       name="START_GENERATOR" value="Configure" />
     31    <a class="btn secondary" href=""
     32       tal:attributes="href python:view.url(context)">Cancel</a>
     33  </div>
     34</form>
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/reportscontainerpage.pt

    r9640 r9641  
    1 <h2>Reports</h2>
    2 <div class="span12">
    3   <form method="POST">
    4     <a href="" class="btn primary">Reload</a>
    5     <a href="create" class="btn secondary">Create new</a>
    6   </form>
    7 </div>
    8 <hr />
    9 <div tal:repeat="entry view/entries" class="row">
     1<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="">Status</th>
     8    <th>&nbsp;</th>
     9        </tr>
     10  </thead>
     11    <tbody>
     12      <tr tal:repeat="entry view/entries">
     13        <td>
     14          <span tal:replace="python: entry[0]">12</span>
     15        </td>
     16        <td>
     17          <span tal:replace="python: entry[1]">REPORT DESCRIPTION</span>
     18        </td>
     19        <td>
     20          <span tal:replace="python: entry[2]">STATUS</span>
     21        </td>
     22        <td>
     23          <form method="POST">
     24          <input type="hidden" name="job_id"
     25                 tal:attributes="value python: entry[0]" />
     26          <input type="submit" class="btn secondary"
     27                 name="DISCARD" value="Discard"
     28                 tal:condition="python: entry[3]" />
     29          <input type="submit" class="btn primary"
     30                 name="DOWNLOAD" value="Download"
     31                 tal:condition="python: entry[4]" />
     32          </form>
     33        </td>
     34        <td>
     35        </td>
     36      </tr>
     37    </tbody>
     38  </table>
     39
    1040  <div class="span12">
    11     <form method="POST">
    12       <div class="span10">
    13         <b>Report <span tal:replace="python: entry[0]">12</span>:</b>
    14         <span tal:replace="python: entry[1]">Report Description</span>
    15       </div>
    16       <div class="span10">
    17         status:
    18         <b><span tal:replace="python: entry[2]">status</span></b>
    19       </div>
    20       <div class="span10">
    21         <input type="submit" class="btn secondary"
    22                name="DISCARD" value="Discard"
    23                tal:condition="python: entry[4]" />
    24         <input type="submit" class="btn secondary"
    25                name="DOWNLOAD" value="Download"
    26                tal:condition="python: entry[4]" />
    27       </div>
    28       <div class="span6">
    29         <input type="hidden" name="job_id"
    30                tal:attributes="value python: entry[0]" />
    31       </div>
    32       <!-- span tal:replace="entry">ENRY</span -->
    33     </form>
    34     <hr />
     41    <a href="" class="btn primary">Reload page</a>
     42    <a href="create" class="btn secondary">Create new report</a>
    3543  </div>
    36 </div>
    37 
    38 <div class="span12">
    39   <form method="POST">
    40     <a href="" class="btn primary">Reload</a>
    41     <a href="create" class="btn secondary">Create new</a>
    42   </form>
    43 </div>
     44</form>
Note: See TracChangeset for help on using the changeset viewer.