Changeset 2400 for WAeUP_SRP/base
- Timestamp:
- 19 Oct 2007, 15:36:36 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_utilities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/remove_students.py
r2396 r2400 38 38 students = [] 39 39 #set_trace() 40 psm = ' nothing done'40 psm = '' 41 41 deleted_list = [] 42 42 if delete: 43 43 if not ids: 44 psm = " nothing checked"44 psm = "Nothing selected!" 45 45 else: 46 46 for student_id in ids: … … 52 52 logger.info("No student object for %s" % (student_id)) 53 53 continue 54 deleted_list.append(student_id) 54 55 # remove from directory 55 56 if hasattr(stdir, student_id): … … 60 61 continue 61 62 context.waeup_tool.removePictureFolder(student_id) 62 deleted_list.append(student_id)63 63 64 psm = "%s deleted" % ' '.join(deleted_list) 64 65 psm = "%s removed" % ' '.join(deleted_list) 65 66 if student_ids: 66 67 brains = aq_students(In('id',student_ids)) -
WAeUP_SRP/base/skins/waeup_utilities/remove_students_form.pt
r2396 r2400 11 11 </span> 12 12 <span tal:condition="allowed" tal:omit-tag=""> 13 <h3> Remove Student Section</h3><br />13 <h3> Remove Student Records</h3><br /> 14 14 You are logged in as member <span tal:replace="info/member|nothing" /> 15 <br /><br /> 15 16 <form action="remove_students" method="post" 16 17 enctype="multipart/form-data" class="workflow"> … … 23 24 id="widget__search_string_widget"> 24 25 <div class="label"> 25 <label for="search_string"> provide a list of student ids to remove</label>26 <label for="search_string">Student Ids to be removed</label> (space-separated list) 26 27 </div> 27 28 <div class="field"> … … 40 41 </div> 41 42 </div> 43 <br /><br /> 42 44 <span tal:condition="students"> 43 45 <span … … 98 100 </span> 99 101 </span> 100 <tr>101 <td align="left" valign="top" rowspan="3"></td>102 <td align="left" valign="top">103 <span tal:condition="is_so">104 <input type="button" value="button_select_all" class="context"105 onclick="someJavaScriptFunctionThatWillBeReplaced"106 i18n:attributes="value"107 tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'108 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"109 />110 <input type="submit" name="delete" value="Delete checked"111 class="destructive"112 tal:attributes="onclick python:'return window.confirm(\'%s\')' %113 (cpsmcat('description_confirm_delete'), )"114 />115 </span>116 </td>117 </tr>118 102 </table> 103 104 <br /> 105 106 <div tal:condition="is_so"> 107 <input type="button" value="button_select_all" class="context" 108 onclick="someJavaScriptFunctionThatWillBeReplaced" 109 i18n:attributes="value" 110 tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' 111 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 112 /> 113 <input type="submit" name="delete" value="Remove selected" 114 class="destructive" 115 tal:attributes="onclick python:'return window.confirm(\'%s\')' % 116 (cpsmcat('description_confirm_delete'), )" 117 /> 118 </div> 119 119 120 <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1"> 120 121 <div class="pageNavigationLayout">
Note: See TracChangeset for help on using the changeset viewer.