- Timestamp:
- 29 Sep 2011, 06:40:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.