Changeset 2400 for WAeUP_SRP/base


Ignore:
Timestamp:
19 Oct 2007, 15:36:36 (17 years ago)
Author:
Henrik Bettermann
Message:

some fixes and beautifications

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  
    3838students = []
    3939#set_trace()
    40 psm = 'nothing done'
     40psm = ''
    4141deleted_list = []
    4242if delete:
    4343    if not ids:
    44         psm = "nothing checked"
     44        psm = "Nothing selected!"
    4545    else:
    4646        for student_id in ids:
     
    5252                logger.info("No student object for %s" % (student_id))
    5353                continue
     54            deleted_list.append(student_id)
    5455            # remove from directory
    5556            if hasattr(stdir, student_id):
     
    6061                continue
    6162            context.waeup_tool.removePictureFolder(student_id)
    62             deleted_list.append(student_id)
    6363           
    64         psm = "%s deleted" % ' '.join(deleted_list)
     64
     65        psm = "%s removed" % ' '.join(deleted_list)
    6566if student_ids:
    6667    brains = aq_students(In('id',student_ids))
  • WAeUP_SRP/base/skins/waeup_utilities/remove_students_form.pt

    r2396 r2400  
    1111    </span>
    1212    <span tal:condition="allowed" tal:omit-tag="">
    13       <h3> Remove Student Section</h3><br />
     13      <h3> Remove Student Records</h3><br />
    1414      You are logged in as member <span tal:replace="info/member|nothing" />
     15      <br /><br />
    1516      <form action="remove_students" method="post"
    1617            enctype="multipart/form-data" class="workflow">
     
    2324                       id="widget__search_string_widget">
    2425                    <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)
    2627                    </div>
    2728                    <div class="field">
     
    4041          </div>       
    4142        </div>
     43        <br /><br />
    4244        <span tal:condition="students">
    4345          <span
     
    98100                </span>
    99101              </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>
    118102            </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
    119120            <tal:block condition="python:batch_info and batch_info['nb_pages'] > 1">
    120121              <div class="pageNavigationLayout">
Note: See TracChangeset for help on using the changeset viewer.