Changeset 3297
- Timestamp:
- 9 Mar 2008, 16:24:31 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_upload/uploads_form.pt
r3292 r3297 24 24 </form> 25 25 <span tal:condition="info/wrong"> 26 <h2> Uploads which must be corrected:</h2>26 <h2>Non-importable Uploads</h2> 27 27 <form action="" method="post" class="group" 28 28 tal:attributes="action info/action" … … 34 34 <th>Data Layout</th> 35 35 <th>By</th> 36 <th> Date</th>37 <th> Message</th>38 <th> Unknown Fields</th>36 <th>Upload Date</th> 37 <th>Error Message</th> 38 <th>Invalid Keys</th> 39 39 </tr> 40 40 <tr tal:repeat="row info/wrong" … … 80 80 </tr> 81 81 </table> 82 82 83 <br /> 84 85 <font color='red'>Please see error message for further information. If there are 86 'invalid keys in heading', you can edit the uploaded file online. Select the correct keys 87 (columns titles) from the select boxes provided, check the box in the first column and press Edit. 88 If you have accidentally chosen the wrong import data layout, select the correct layout and press Edit. </font> 89 90 <br /><br /> 83 91 <input tal:condition="nothing" type="button" value="button_select_all" class="context" 84 92 onclick="someJavaScriptFunctionThatWillBeReplaced" … … 87 95 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 88 96 /> 89 <input type="submit" name="edit" value=" edit"97 <input type="submit" name="edit" value="Edit" 90 98 class="destructive" i18n:attributes="value" 91 99 /> … … 98 106 </span> 99 107 <span tal:condition="info/importable"> 100 <h2>Importable Uploads :</h2>108 <h2>Importable Uploads</h2> 101 109 <form action="" method="post" class="group" 102 110 tal:attributes="action info/action" … … 108 116 <th>Data Layout</th> 109 117 <th>By</th> 110 <th> Date</th>118 <th>Upload Date</th> 111 119 </tr> 112 120 <tr tal:repeat="row info/importable" … … 135 143 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 136 144 /> 137 <input type="submit" name="import_uploads:method" value=" import"145 <input type="submit" name="import_uploads:method" value="Import" 138 146 class="destructive" i18n:attributes="value" 139 147 tal:attributes="onclick python:'return window.confirm(\'%s\')' % … … 148 156 </span> 149 157 <span tal:condition="info/imported"> 150 <h2>Imported Uploads :</h2>158 <h2>Imported Uploads</h2> 151 159 <form action="" method="post" class="group" 152 160 tal:attributes="action info/action" -
WAeUP_SRP/base/skins/waeup_upload/uploads_index.py
r3293 r3297 77 77 row['imported'] = True 78 78 row['msg'] = import_message 79 row['imported_at'] = doc.imported_at.strftime("%d/%m/%y %H:%M:%S") 79 if getattr(doc,'imported_at',''): 80 row['imported_at'] = doc.imported_at.strftime("%d/%m/%y %H:%M:%S") 81 else: 82 row['imported_at'] = '' 80 83 add_to = imported 81 84 else: -
WAeUP_SRP/uniben/profiles/default/layouts/upload.xml
r3289 r3297 66 66 <property name="readonly_layout_modes"/> 67 67 <property name="hidden_layout_modes"> 68 <element value="create"/>69 68 </property> 70 69 <property name="hidden_readonly_layout_modes"/> … … 87 86 <property name="css_class_expr">string:row</property> 88 87 </widget> 88 <widget name="import_message" meta_type="String Widget"> 89 <property name="title">Import Message</property> 90 <property name="fields"> 91 <element value="import_message"/> 92 </property> 93 <property name="label">Import Message</property> 94 <property name="label_edit">Import Message</property> 95 <property name="readonly_layout_modes"/> 96 <property name="hidden_layout_modes"> 97 <element value="create"/> 98 </property> 99 <property name="hidden_readonly_layout_modes"/> 100 <property name="css_class_expr">string:row</property> 101 </widget> 89 102 <table> 90 103 <row> … … 103 116 <cell name="import_date"/> 104 117 </row> 118 <row> 119 <cell name="import_message"/> 120 </row> 105 121 </table> 106 122 </object>
Note: See TracChangeset for help on using the changeset viewer.