Changeset 6829 for main/waeup.sirp
- Timestamp:
- 29 Sep 2011, 06:40:38 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser/templates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport1page.pt
r6826 r6829 18 18 <td> 19 19 <button type="submit" name="select" 20 tal:attributes="value file/name" 21 >Select</button> 20 tal:attributes="value file/name">Select</button> 22 21 </td> 23 22 <td tal:content="file/name">Filename.csv</td> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport2page.pt
r6826 r6829 1 <h2>Process CSV file</h2><h3>Step 2</h3> 1 <h2>Process CSV file</h2> 2 <h3>Step 2</h3> 2 3 <form method="POST"> 3 <p> <b>File:</b> 4 <p> 5 <b>File:</b> 4 6 <span tal:content="view/filename">Filename.csv 5 7 </span> 6 8 <input type="hidden" name="filename" tal:attributes="value view/filename" /> 7 9 </p> 8 <p> Please select a file-processor and a processing-mode from the 10 <p> Please select a file-processor and a processing-mode from the selections below: 9 11 </p> 10 12 <div> 11 <table style="border: 1px solid #000;"12 13 <table class = "zebra" 14 tal:define="body view/getPreviewBody; 13 15 headers view/getPreviewHeader; 14 16 fieldnum python: len(headers)"> 15 17 <thead> 16 <tr style="border: 1px solid #ccc;">18 <tr> 17 19 <th style="border: 1px solid #888;" 18 20 tal:repeat="headerfield headers" … … 22 24 </thead> 23 25 <tbody> 24 <tr tal:repeat="row body" 25 tal:attributes="class python: repeat['row'].odd() and 'odd' or 'even'" 26 style="border: 1px solid #000;"> 26 <tr tal:repeat="row body"> 27 27 <td tal:repeat="value row" 28 tal:content="value" style="border: 1px solid #000;"> value </td> 28 tal:content="value" 29 style="border: 1px solid #000;"> value 30 </td> 29 31 </tr> 30 32 </tbody> … … 60 62 <input type="submit" name="cancel" value="Cancel" /> 61 63 <input type="submit" name="back1" value="Back to step 1" /> 62 <input type="submit" name="proceed" value="Proceed to step 3..." /> 64 <input tal:attributes="disabled python: view.getWarnings() and 'disabled' or ''" 65 type="submit" name="proceed" value="Proceed to step 3..." /> 63 66 </form> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/datacenterimport3page.pt
r6826 r6829 1 1 <h2>Process CSV file</h2> 2 2 <h3>Step 3</h3> 3 <div tal:define="warnings view/getWarnings">4 3 <form> 5 6 4 <p> 7 5 Eventually modify headerfields of import file below. 8 6 </p> 9 10 7 <p> 11 <b>File:</b> <span tal:content="view/filename">Filename.csv</span> 8 <b>File:</b> 9 <span tal:content="view/filename">Filename.csv</span> 12 10 <input type="hidden" name="filename" 13 11 tal:attributes="value view/filename" /> … … 25 23 tal:attributes="value view/mode" /> 26 24 </p> 27 25 <div class="alert notice ui-state-info" tal:condition="not: view/getWarnings"> 26 <span class="ui-icon ui-icon-info">A</span> 27 Header fields OK 28 </div> 28 29 <div> 29 <div class="alert error ui-state-error" tal:condition="warnings"> 30 <span class="ui-icon ui-icon-alert">A</span> 31 Current settings will give the follwing warnings, when importing: 32 <div tal:repeat="warning warnings" tal:content="warning"> 33 Warning messages 34 </div> 35 </div> 36 37 <div class="alert notice ui-state-info" tal:condition="not: warnings"> 38 <span class="ui-icon ui-icon-info">A</span> 39 Header fields OK 40 </div> 41 </div> 42 43 44 <div> 45 <table style="border: 1px solid #000;" 30 <table class = "zebra" 46 31 tal:define="body view/getPreviewBody; 47 32 headers view/headerfields; 48 33 fieldnum python: len(headers)"> 49 34 <thead> 50 <tr style="border: 1px solid #ccc;">35 <tr> 51 36 <th style="border: 1px solid #888;" 52 37 tal:repeat="headerfield headers" … … 55 40 </th> 56 41 </tr> 57 <tr style="border: 1px solid #ccc;">42 <tr> 58 43 <th style="border: 1px solid #888; text-align=center;" 59 44 tal:repeat="headerfield headers"> … … 61 46 </th> 62 47 </tr> 63 <tr style="border: 1px solid #ccc;">48 <tr> 64 49 <th style="border: 1px solid #888;" 65 50 tal:repeat="headerfield headers"> … … 74 59 </th> 75 60 </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;"> 61 </thead> 62 <tbody> 63 <tr tal:repeat="row body"> 81 64 <td tal:repeat="value row" 82 65 tal:content="value" … … 89 72 </div> 90 73 91 92 74 <input type="submit" name="cancel" value="Cancel" /> 93 75 <input type="reset" name="reset" value="Reset" /> … … 95 77 <br /> 96 78 <input type="submit" name="back2" value="Back to step 2" /> 97 <input tal:attributes="disabled python: len(warnings) and 'disabled' or ''"79 <input tal:attributes="disabled python: view.getWarnings() and 'disabled' or ''" 98 80 type="submit" name="proceed" value="Perform import..." /> 99 100 81 </form> 101 </div>
Note: See TracChangeset for help on using the changeset viewer.