Changeset 6826
- Timestamp:
- 28 Sep 2011, 19:45:05 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser/templates
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport1page.pt
r4858 r6826 15 15 <tbody> 16 16 <tr tal:repeat="file view/getFiles" 17 18 19 20 21 22 23 24 25 26 17 tal:attributes="class python: repeat['file'].odd() and 'odd' or ''"> 18 <td> 19 <button type="submit" name="select" 20 tal:attributes="value file/name" 21 >Select</button> 22 </td> 23 <td tal:content="file/name">Filename.csv</td> 24 <td tal:content="python: file.lines - 1">12</td> 25 <td tal:content="file/size">123 Bytes</td> 26 <td tal:content="file/getDate">1.1.1970</td> 27 27 </tr> 28 28 </tbody> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport2page.pt
r5000 r6826 1 <h2>Process CSV file</h2> 2 <h3>Step 2</h3> 3 1 <h2>Process CSV file</h2><h3>Step 2</h3> 4 2 <form method="POST"> 5 <p> 6 < b>File:</b> <span tal:content="view/filename">Filename.csv</span>7 < input type="hidden" name="filename"8 3 <p> <b>File:</b> 4 <span tal:content="view/filename">Filename.csv 5 </span> 6 <input type="hidden" name="filename" tal:attributes="value view/filename" /> 9 7 </p> 10 <p> 11 Please select a file-processor and a processing-mode from the 12 selections below: 8 <p> Please select a file-processor and a processing-mode from the selections below: 13 9 </p> 14 15 10 <div> 16 11 <table style="border: 1px solid #000;" 17 18 19 12 tal:define="body view/getPreviewBody; 13 headers view/getPreviewHeader; 14 fieldnum python: len(headers)"> 20 15 <thead> 21 <tr style="border: 1px solid #ccc;"> 22 <th style="border: 1px solid #888;" 23 tal:repeat="headerfield headers" 24 tal:content="headerfield"> 25 headerfield 26 </th> 27 </tr> 16 <tr style="border: 1px solid #ccc;"> 17 <th style="border: 1px solid #888;" 18 tal:repeat="headerfield headers" 19 tal:content="headerfield"> headerfield 20 </th> 21 </tr> 28 22 </thead> 29 23 <tbody> 30 <tr tal:repeat="row body" 31 tal:attributes="class python: repeat['row'].odd() and 'odd' or 'even'" 32 style="border: 1px solid #000;"> 33 <td tal:repeat="value row" 34 tal:content="value" 35 style="border: 1px solid #000;"> 36 value 37 </td> 38 </tr> 24 <tr tal:repeat="row body" 25 tal:attributes="class python: repeat['row'].odd() and 'odd' or 'even'" 26 style="border: 1px solid #000;"> 27 <td tal:repeat="value row" 28 tal:content="value" style="border: 1px solid #000;"> value </td> 29 </tr> 39 30 </tbody> 40 31 </table> 41 32 </div> 42 43 <div> 44 <b>Processor:</b> 45 33 <div> <b>Processor:</b> 46 34 <select name="importer"> 47 35 <option tal:repeat="importer view/getImporters" 48 tal:attributes="value importer/name; 49 selected python: importer['name'] == view.importer and 'selected' or ''" 50 tal:content="importer/title"> 51 Some Importer 36 tal:attributes="value importer/name; 37 selected python: importer['name'] == view.importer and 'selected' or ''" 38 tal:content="importer/title"> Some Importer 52 39 </option> 53 40 </select> 54 55 41 </div> 56 57 <p> </p> 58 59 <div> 60 <b>Mode:</b> 61 42 <p> 43 </p> 44 <div> <b>Mode:</b> 62 45 <input type="radio" name="mode" value="create" checked="checked" 63 64 disabled python: view.mode != 'create' and view.mode_locked and 'disabled' or ''" /> Create 65 46 tal:attributes="checked python: view.mode == 'create' and 'checked' or ''; 47 disabled python: view.mode != 'create' and view.mode_locked and 'disabled' or ''" /> 48 Create 66 49 <input type="radio" name="mode" value="update" 67 68 disabled python: view.mode != 'update' and view.mode_locked and 'disabled' or ''" /> Update 69 50 tal:attributes="checked python: view.mode == 'update' and 'checked' or ''; 51 disabled python: view.mode != 'update' and view.mode_locked and 'disabled' or ''" /> 52 Update 70 53 <input type="radio" name="mode" value="remove" 71 tal:attributes="checked python: view.mode == 'remove' and 'checked' or ''; 72 disabled python: view.mode != 'remove' and view.mode_locked and 'disabled' or ''" /> Remove 73 74 <p> </p> 54 tal:attributes="checked python: view.mode == 'remove' and 'checked' or ''; 55 disabled python: view.mode != 'remove' and view.mode_locked and 'disabled' or ''" /> 56 Remove 57 <p> 58 </p> 75 59 </div> 76 77 60 <input type="submit" name="cancel" value="Cancel" /> 78 61 <input type="submit" name="back1" value="Back to step 1" /> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport3page.pt
r4858 r6826 11 11 <b>File:</b> <span tal:content="view/filename">Filename.csv</span> 12 12 <input type="hidden" name="filename" 13 13 tal:attributes="value view/filename" /> 14 14 </p> 15 15 <p> … … 17 17 <span tal:content="view/importer/name">Importer Name</span> 18 18 <input type="hidden" name="importer" 19 19 tal:attributes="value view/importer/util_name" /> 20 20 </p> 21 21 <p> … … 23 23 <span tal:content="view/mode">mode</span> 24 24 <input type="hidden" name="mode" 25 25 tal:attributes="value view/mode" /> 26 26 </p> 27 27 28 28 <div> 29 <div class="alert error ui-state-error" 30 tal:condition="warnings"> 29 <div class="alert error ui-state-error" tal:condition="warnings"> 31 30 <span class="ui-icon ui-icon-alert">A</span> 32 31 Current settings will give the follwing warnings, when importing: 33 <div tal:repeat="warning warnings" 34 tal:content="warning"> 35 Warning messages 32 <div tal:repeat="warning warnings" tal:content="warning"> 33 Warning messages 36 34 </div> 37 35 </div> 38 36 39 <div class="alert notice ui-state-info" 40 tal:condition="not: warnings"> 37 <div class="alert notice ui-state-info" tal:condition="not: warnings"> 41 38 <span class="ui-icon ui-icon-info">A</span> 42 39 Header fields OK … … 47 44 <div> 48 45 <table style="border: 1px solid #000;" 49 50 51 46 tal:define="body view/getPreviewBody; 47 headers view/headerfields; 48 fieldnum python: len(headers)"> 52 49 <thead> 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 </thead>80 <tbody>81 82 83 84 85 86 87 88 89 50 <tr style="border: 1px solid #ccc;"> 51 <th style="border: 1px solid #888;" 52 tal:repeat="headerfield headers" 53 tal:content="headerfield"> 54 headerfield 55 </th> 56 </tr> 57 <tr style="border: 1px solid #ccc;"> 58 <th style="border: 1px solid #888; text-align=center;" 59 tal:repeat="headerfield headers"> 60 <i>change to:</i> 61 </th> 62 </tr> 63 <tr style="border: 1px solid #ccc;"> 64 <th style="border: 1px solid #888;" 65 tal:repeat="headerfield headers"> 66 <select name="headerfield"> 67 <option tal:repeat="opt view/getPossibleHeaders" 68 tal:attributes="value opt/value; 69 selected python: opt['value']==headerfield and 'selected' or '';" 70 tal:content="opt/title"> 71 new_header_name 72 </option> 73 </select> 74 </th> 75 </tr> 76 </thead> 77 <tbody> 78 <tr tal:repeat="row body" 79 tal:attributes="class python: repeat['row'].odd() and 'odd' or 'even'" 80 style="border: 1px solid #000;"> 81 <td tal:repeat="value row" 82 tal:content="value" 83 style="border: 1px solid #000;"> 84 value 85 </td> 86 </tr> 90 87 </tbody> 91 88 </table> … … 99 96 <input type="submit" name="back2" value="Back to step 2" /> 100 97 <input tal:attributes="disabled python: len(warnings) and 'disabled' or ''" 101 98 type="submit" name="proceed" value="Perform import..." /> 102 99 103 100 </form> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport4page.pt
r4858 r6826 17 17 <form method="POST"> 18 18 <input tal:condition="view/warn_num" 19 19 type="submit" name="back" value="Back to step 3" /> 20 20 <input type="submit" name="finish" value="Back to data center" /> 21 21 <input type="submit" name="showlog" value="View processing log" />
Note: See TracChangeset for help on using the changeset viewer.