Ignore:
Timestamp:
6 Apr 2016, 07:42:09 (9 years ago)
Author:
Henrik Bettermann
Message:

Rearrange datacenter upload page. Provide modal windows to view all
processors and sources and vocabularies.

See r12932, r12933 and 12955ff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/browser/templates/datacenteruploadpage.pt

    r11949 r13804  
    1 <p i18n:translate="">
    2     Before uploading a file check that your file header corresponds
    3     with header format of the selected processor. All available headers
    4     are listed below.
    5     After file upload click the 'Process data' button and proceed up to
    6     import step 3. Verify that the data format
    7     meets all the import criteria and requirements of the processor.
    8 </p>
    9 
     1<span i18n:translate="">
     2    Before uploading a file, check that your file header corresponds
     3    with the header format of the selected processor:
     4</span>
     5<!-- Processors Modal -->
     6<button i18n:translate="" class="btn btn-info btn-xs"
     7   data-toggle="modal" data-target="#ProcessorsModal"
     8   href="../processorsoverview">
     9   View available processors (importers)
     10</button>
     11<div class="modal fade" id="ProcessorsModal" tabindex="-1"
     12     role="dialog" aria-labelledby="ProcessorsModalLabel" aria-hidden="true">
     13  <div class="modal-dialog">
     14    <div class="modal-content">
     15    </div>
     16  </div>
     17</div>
     18<br /><br />
     19<span i18n:translate="">
     20    Many importer fields are of type 'Choice' which means only definied keywords
     21    are allowed:
     22</span>
     23<!-- Sources Modal -->
     24<button i18n:translate="" class="btn btn-info btn-xs"
     25   data-toggle="modal" data-target="#SourcesModal"
     26   href="../sourcesoverview">
     27   View choices
     28</button>
     29<div class="modal fade" id="SourcesModal" tabindex="-1"
     30     role="dialog" aria-labelledby="SourcesModalLabel" aria-hidden="true">
     31  <div class="modal-dialog">
     32    <div class="modal-content">
     33    </div>
     34  </div>
     35</div>
     36<br />
    1037<form method="post" enctype="multipart/form-data">
    1138<br />
     
    1643      </td>
    1744      <td>
    18                 <div class="input-group half">
    19                         <div class="input-group-btn">
    20                                 <div class="btn btn-default btn-file">
     45        <div class="input-group half">
     46          <div class="input-group-btn">
     47            <div class="btn btn-default btn-file">
    2148              Select&hellip;
    2249              <input type="file" name="uploadfile:file" />
    2350            </div>
    24                         </div>
    25                         <input type="text" class="form-control" readonly>
     51          </div>
     52          <input type="text" class="form-control" readonly>
    2653        </div>
    2754      </td>
     
    5986      tal:attributes="value view/cancel_button"/>
    6087</form>
    61 <br />
    62 <p i18n:translate="">
    63     Import managers will be automatically informed by email after file upload.
    64     There is no need for assigning tickets or sending emails anymore.
    65     The data will be imported according to the information given.
    66 </p>
     88
    6789
    6890<br /><br />
    6991
    70 <h2 i18n:translate="">Available Processors (Importers)</h2>
    71 
    72 <table i18n:domain="waeup.ikoba" class="table table-condensed">
    73   <thead>
    74     <tr>
    75       <th i18n:translate="">Processor</th>
    76       <th i18n:translate="">Required Schema Fields</th>
    77       <th i18n:translate="">Optional Schema Fields</th>
    78       <th i18n:translate="">Non-Schema Fields</th>
    79     </tr>
    80   </thead>
    81   <tr tal:repeat="importer view/getImporters">
    82     <td>
    83       <span tal:content="importer/title">TITLE</span><br /><br />
    84       <a i18n:translate="" class="btn btn-primary btn-xs"
    85          tal:attributes="href python: 'skeleton?name=' + importer['name']">
    86          Download CSV Skeleton File
    87       </a>
    88     </td>
    89     <td nowrap>
    90       <span tal:repeat="field importer/fields">
    91           <tal:schemafield condition="field/f_type">
    92             <tal:required condition="field/f_required">
    93               <span tal:replace="field/f_name"></span>
    94               (<span tal:replace="field/f_type"></span>)
    95               <br />
    96             </tal:required>
    97           </tal:schemafield>
    98       </span>
    99     </td>
    100     <td nowrap>
    101       <span tal:repeat="field importer/fields">
    102           <tal:schemafield condition="field/f_type">
    103             <tal:notrequired condition="not:field/f_required">
    104               <span tal:replace="field/f_name"></span>
    105               (<span tal:replace="field/f_type"></span>)
    106               <br />
    107             </tal:notrequired>
    108           </tal:schemafield>
    109       </span>
    110     </td>
    111     <td>
    112       <span tal:repeat="field importer/fields">
    113           <tal:extrafield condition="not:field/f_type">
    114             <span tal:replace="field/f_name"></span>
    115             <br />
    116           </tal:extrafield>
    117       </span>
    118     </td>
    119 
    120   </tr>
    121 </table>
     92<div i18n:translate="">
     93    After file upload click the 'Process data' button and proceed up to
     94    import step 3. Verify that the data format
     95    meets all the import criteria and requirements of the processor.
     96</div>
     97<br />
     98<div i18n:translate="">
     99    Import managers will be automatically informed by email after file upload.
     100</div>
Note: See TracChangeset for help on using the changeset viewer.