Ignore:
Timestamp:
22 Dec 2012, 09:16:05 (12 years ago)
Author:
Henrik Bettermann
Message:

Combine ExportCSVPage and ExportJobContainerOverview? as well as ExportCSVView and ExportJobContainerDownload?. Adjust pagetemplates. Do not remove jobs after download. Display jobs of all users on ExportCSVPage.

One test still fails because we do not have a logger for VirtualExportJobContainers?.

File:
1 edited

Legend:

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

    r9821 r9822  
    1 <div i18n:domain="waeup.kofa" class="row">
    2   <div class="span8 columns">
    3     <div class="span8 columns">
    4       <p i18n:translate="">
    5         Here you can create CSV files from parts of portal data.
    6       </p>
    7       <p i18n:translate="">
    8         Please pick the type of objects you want to export from the
    9         selection below.
    10       </p>
    11       <p i18n:translate="">
    12         The file will be generated and then be made available for you
    13         to download. You must download or discard any existing export
    14         file before creating a new one.
    15       </p>
    16     </div>
    17     <form  method="POST">
    18       <fieldset>
    19         <label for="running_exports"
    20           tal:condition="view/getRunningExports">Running Export:
    21         </label>
     1<p i18n:translate="">
     2  Here you can create CSV files from parts of portal data.
     3  Please pick the type of objects you want to export from the
     4  selection below. The file will be generated and then be
     5  made available for you to download in the table below.
     6</p>
    227
     8<br />
    239
    24         <div class="input span6">
    25           <div tal:repeat="items view/getRunningExports">
    26             Data type:
    27             <span tal:content="python: items[2]">exporter
    28             </span><br />
    29               Status:
    30             <span tal:content="python: items[1]">status
    31             </span>
    32             <br /><br /><br />
    33             <span tal:condition="not: python: view.job_finished(items[0])">
    34               <img src="" tal:attributes="src static/ajax-loader.gif"
    35                 alt="Loading..."  class="spinner" />
    36               <input type="submit" name="reload" value="Reload"
    37                 class="btn primary" />
    38             </span>
    39             <div>
    40               <span tal:condition="python: view.job_finished(items[0])">
    41                 <input type="submit" name="download" value="Download"
    42                   class="btn primary" />
    43                 <input type="submit" name="discard" value="Discard"
    44                   class="btn secondary" />
    45               </span>
    46             </div>
    47           </div>
    48           <div>
    49             <tal:loading_bar content="structure provider:loadingbar" />
    50           </div>
    51         </div>
     10<form  method="POST">
     11  <label for="exporter">
     12    Exporter (Data Type):
     13  </label>
     14  <div class="input">
     15    <select name="exporter">
     16      <span tal:repeat="items view/getExporters" tal:omit-tag="">
     17        <option tal:define="name python: items[1]; title python: items[0]"
     18          tal:attributes="value name">
     19        <span tal:replace="title">TITLE
     20        </span>
     21        </option>
     22      </span>
     23    </select>
     24  </div>
     25  <br />
     26  <div class="input">
     27    <input i18n:translate="" type="submit" class="btn primary"
     28      name="CREATE" tal:attributes="value view/export_button" />
     29  </div>
     30</form>
    5231
     32<br /><br />
    5333
    54         <div class="clearfix" tal:condition="not: view/getRunningExports">
    55           <label for="exporter">Data Type:
    56           </label>
    57           <div class="input">
    58             <select name="exporter">
    59               <span tal:repeat="items view/getExporters" tal:omit-tag="">
    60                 <option tal:define="name python: items[1]; title python: items[0]"
    61                   tal:attributes="value name">
    62                 <span tal:replace="title">TITLE
    63                 </span>
    64                 </option>
    65               </span>
    66             </select>
    67             <span class="help-inline" i18n:translate="">
    68               Type of objects to export
    69             </span>
    70           </div>
    71         </div>
    72 
    73 
    74         <div class="input" tal:condition="not: view/getRunningExports">
    75           <input i18n:translate="" type="submit" class="btn primary"
    76             name="start_export" tal:attributes="value view/export_button" />
    77         </div>
    78       </fieldset>
    79     </form>
    80   </div>
    81 </div>
     34<table i18n:domain="waeup.kofa">
     35  <thead>
     36    <tr>
     37      <th i18n:translate="">Export Number</th>
     38      <th i18n:translate="">Description</th>
     39      <th i18n:translate="">Creator</th>
     40      <th i18n:translate="">Creation Date</th>
     41      <th i18n:translate="">Status</th>
     42      <th>&nbsp;</th>
     43    </tr>
     44  </thead>
     45  <tbody>
     46    <tr tal:repeat="job view/entries">
     47      <td>
     48        <span tal:replace="job/job">12</span>
     49      </td>
     50      <td>
     51        <span tal:replace="structure job/descr">DESCRIPTION</span>
     52      </td>
     53      <td>
     54        <span tal:replace="job/creator">CREATOR</span>
     55      </td>
     56      <td nowrap>
     57        <span tal:replace="job/start_time">DATETIME</span>
     58      </td>
     59      <td>
     60        <span tal:replace="job/status">STATUS</span>
     61      </td>
     62      <td nowrap>
     63        <a href="" class="btn" i18n:translate=""
     64           tal:condition="job/show_refresh_button">
     65          <img tal:attributes="src static/actionicon_reload.png" />
     66          Reload
     67        </a>
     68        <a href="" class="btn primary"
     69               tal:attributes="href job/download_url"
     70               tal:condition="job/show_download_button">
     71          Download</a>
     72        <form method="POST">
     73          <input type="hidden" name="job_id"
     74                 tal:attributes="value job/job" />
     75          <input type="submit" class="btn secondary"
     76                 name="DISCARD" value="Discard"
     77                 tal:condition="job/show_discard_button" />
     78        </form>
     79      </td>
     80    </tr>
     81  </tbody>
     82</table>
Note: See TracChangeset for help on using the changeset viewer.