Changeset 3285 for WAeUP_SRP/base/skins
- Timestamp:
- 7 Mar 2008, 23:17:25 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_upload/uploads_form.pt
r3283 r3285 19 19 <form action="" method="post" enctype="multipart/form-data" class="group"> 20 20 <span tal:replace="structure rendered" /> 21 <input type="submit" name="upload" value="upload" 21 <br /> 22 <input type="submit" name="upload" value="Upload" 22 23 class="destructive" /> 23 24 </form> … … 30 31 <th></th> 31 32 <th>Filename</th> 32 <th> Schema</th>33 <th> Uploaded by</th>34 <th> UploadDate</th>33 <th>Data Layout</th> 34 <th>By</th> 35 <th>Date</th> 35 36 <th>Message</th> 36 <th> Invalid Keys</th>37 <th>Conform Headline</th> 37 38 </tr> 38 39 <tr tal:repeat="row rows" … … 60 61 <td tal:content="row/msg" ></td> 61 62 <td> 62 < spantal:repeat="key row/invalid_keys">63 <span tal:replace="key" /> 63 <div tal:repeat="key row/invalid_keys"> 64 <span tal:replace="key" /><br /> 64 65 <select tal:attributes="name string:${row/id}|${key}.valid_key:record"> 65 66 <option tal:repeat="new row/valid_keys" … … 67 68 tal:content="new" /> 68 69 </select> 69 </ span>70 </div> 70 71 </td> 71 72 <td tal:condition="python:0"> … … 79 80 </tr> 80 81 </table> 81 <table width="100%" cellspacing="0" cellpadding="2" 82 summary="contents of the folder" 83 class="folderButtons"> 84 <tr> 85 <td align="left" valign="top" rowspan="3"></td> 86 <td align="left" valign="top"> 87 <input tal:condition="nothing" type="button" value="button_select_all" class="context" 88 onclick="someJavaScriptFunctionThatWillBeReplaced" 89 i18n:attributes="value" 90 tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' 91 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 92 /> 93 <input type="submit" name="edit" value="edit" 94 class="destructive" i18n:attributes="value" 95 /> 96 <input type="submit" name="folder_delete:method" value="button_delete" 97 class="destructive" i18n:attributes="value" 98 tal:attributes="onclick python:'return window.confirm(\'%s\')' % 99 (cpsmcat('description_confirm_delete'), )" 100 /> 101 </td> 102 </tr> 103 </table> 82 83 <br /> 84 85 <input tal:condition="nothing" type="button" value="button_select_all" class="context" 86 onclick="someJavaScriptFunctionThatWillBeReplaced" 87 i18n:attributes="value" 88 tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' 89 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 90 /> 91 <input type="submit" name="edit" value="Edit" 92 class="destructive" i18n:attributes="value" 93 /> 94 <input type="submit" name="folder_delete:method" value="button_delete" 95 class="destructive" i18n:attributes="value" 96 tal:attributes="onclick python:'return window.confirm(\'%s\')' % 97 (cpsmcat('description_confirm_delete'), )" 98 /> 99 104 100 </form> 105 101 </metal:main> -
WAeUP_SRP/base/skins/waeup_upload/uploads_index.py
r3283 r3285 50 50 if new_keys: 51 51 doc.editHeadline(new_keys) 52 request.RESPONSE.redirect(context.absolute_url()) 53 52 request.RESPONSE.redirect(context.absolute_url()) 53 54 54 for id,upload in context.objectItems(): 55 55 row = {} … … 61 61 row['url'] = upload.absolute_url() 62 62 row['msg'], row['invalid_keys'] = doc['checkKeys']() 63 row['filename'] = doc.filename 63 row['filename'] = doc.filename 64 64 row['import_layout'] = doc.import_layout 65 65 row['upload_date'] = doc.upload_date.strftime("%d/%m/%y %H:%M:%S") … … 92 92 if filename not in context.objectIds(): 93 93 break 94 psm = "Upload file exists"94 psm = "Upload object exists!" 95 95 return context.uploads_form(rendered = res, 96 96 psm = psm, … … 103 103 upload = getattr(context,filename) 104 104 d = {} 105 d['filename'] = d['id'] = filename 105 d['filename'] = d['id'] = filename 106 106 d['upload_date'] = DateTime.DateTime() 107 107 d['import_layout'] = ds.get('import_layout','') … … 110 110 upload.getContent().edit(mapping=d) 111 111 112 request.RESPONSE.redirect(context.absolute_url()) 112 request.RESPONSE.redirect(context.absolute_url()) 113 113
Note: See TracChangeset for help on using the changeset viewer.