Ignore:
Timestamp:
4 Apr 2007, 06:31:52 (18 years ago)
Author:
joachim
Message:

merged up to 1664

Location:
WAeUP_SRP/branches/joachim-event-branch
Files:
24 edited
8 copied

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/joachim-event-branch/PatchCatalogToolXMLAdapter.py

    r1062 r1669  
    2121        inds[ind.attributes.items()[1][1]] = ind.attributes.items()[0][1]
    2222        #print ind.attributes.items()
    23     #print "indexes: ", inds
     23    #from pdb import set_trace; set_trace()
    2424    na = node.attributes.items()
    2525    not_found = True
    2626    new_indexes = []
    2727    new_columns = []
    28     if na[0][1] in ("WAeUP Table"):
    29         not_found = False
    30     elif na[0][1] == "CMF Catalog":
     28    if na[0][1] in ("CMF Catalog","WAeUP Table"):
    3129        #print na[1][1]
    3230        not_found = False
     
    4947            not_found = True
    5048    if not_found:
    51         self._initProperties(node)
    52         self._initObjects(node)
    53         self._initIndexes(node)
     49        self._logger.info("%s modified." % na[1][1])
     50        #self._initProperties(node)
     51        #self._initObjects(node)
     52        if new_indexes and len(self.context()) == 0: #disable creation of new indexes if records in the table
     53            self._initIndexes(node)
    5454        self._initColumns(node)
    55         self._refreshCatalog()
     55        #self._refreshCatalog()
    5656
    57     self._logger.info("Catalog tool imported.")
     57    self._logger.info("Catalog tool %s imported."  % na[1][1])
    5858   
    5959from Products.CPSCore.exportimport.catalog import CatalogToolXMLAdapter
  • WAeUP_SRP/branches/joachim-event-branch/doc/srp_documentation.mm

    r1530 r1669  
    1 <map version="0.8.0">
     1<map version="0.9.0_Beta_8">
    22<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
    33<node CREATED="1170079518946" ID="Freemind_Link_650524897" MODIFIED="1172489583516" TEXT="WAeUP Documentation">
     
    88</node>
    99<node CREATED="1172489529057" ID="Freemind_Link_43083883" MODIFIED="1172489545651" POSITION="right" TEXT="SRP Data Structure">
    10 <node CREATED="1170079621592" FOLDED="true" ID="Freemind_Link_1297017754" MODIFIED="1170079640872" TEXT="Campus">
     10<node CREATED="1170079621592" ID="Freemind_Link_1297017754" MODIFIED="1170079640872" TEXT="Campus">
    1111<node CREATED="1171710559043" ID="Freemind_Link_1592396213" MODIFIED="1171710565212" TEXT="Id: campus"/>
    1212<node CREATED="1170079643589" FOLDED="true" ID="Freemind_Link_1231068129" MODIFIED="1171710686426" TEXT="Academic Section">
     
    4848</node>
    4949</node>
    50 <node CREATED="1170082138244" FOLDED="true" ID="Freemind_Link_1354366927" MODIFIED="1171710679266" TEXT="Student Section">
     50<node CREATED="1170082138244" ID="Freemind_Link_1354366927" MODIFIED="1171710679266" TEXT="Student Section">
    5151<node CREATED="1171709784119" ID="_" MODIFIED="1171709937449" TEXT="Type: StudentsFolder" VSHIFT="104"/>
    5252<node CREATED="1171710545564" ID="Freemind_Link_221165828" MODIFIED="1171710551332" TEXT="Id: students"/>
    53 <node CREATED="1170082147831" FOLDED="true" ID="Freemind_Link_115332414" MODIFIED="1171709774415" TEXT="{Student}">
     53<node CREATED="1170082147831" ID="Freemind_Link_115332414" MODIFIED="1171709774415" TEXT="{Student}">
    5454<node CREATED="1171114205479" ID="Freemind_Link_1051911128" LINK="../profiles/default/types/Student.xml" MODIFIED="1171353141707" TEXT="Type: Student"/>
    5555<node CREATED="1171124926993" ID="Freemind_Link_1838352082" LINK="../profiles/default/schemas/student.xml" MODIFIED="1171353152905" TEXT="Schema: student"/>
     
    171171</node>
    172172</node>
    173 <node CREATED="1170082392807" FOLDED="true" ID="Freemind_Link_1979443941" MODIFIED="1171711179966" TEXT="Study Course">
     173<node CREATED="1170082392807" ID="Freemind_Link_1979443941" MODIFIED="1171711179966" TEXT="Study Course">
    174174<node CREATED="1170930140692" ID="Freemind_Link_607082969" MODIFIED="1171009488850" TEXT="Id: study_course"/>
    175175<node CREATED="1170930264337" ID="Freemind_Link_1384807180" LINK="../profiles/default/types/StudentStudyCourse.xml" MODIFIED="1172159914623" TEXT="Type: StudentStudyCourse"/>
     
    197197<node CREATED="1170883263996" ID="Freemind_Link_39098989" LINK="../profiles/default/schemas/payment.xml" MODIFIED="1170959080069" TEXT="Schema: payment"/>
    198198<node CREATED="1171711449483" ID="Freemind_Link_165499016" MODIFIED="1171711455191" TEXT="Layout: payment"/>
     199</node>
     200</node>
     201<node CREATED="1170082164451" ID="Freemind_Link_1991619732" MODIFIED="1175265930974" TEXT="Pume Data">
     202<node CREATED="1170083733194" ID="Freemind_Link_474120928" MODIFIED="1175265946729" TEXT="Id: pume"/>
     203<node CREATED="1170083603042" ID="Freemind_Link_1353178566" LINK="../profiles/default/types/StudentPume.xml" MODIFIED="1175265977383" TEXT="Type: StudentPume"/>
     204<node CREATED="1170083649773" ID="Freemind_Link_1635748093" LINK="../profiles/default/schemas/student_pume.xml" MODIFIED="1175266051911" TEXT="Schema: student_pume"/>
     205<node CREATED="1171353188624" FOLDED="true" ID="Freemind_Link_1752727630" LINK="../profiles/default/workflows/waeup_student_subobject_wf/definition.xml" MODIFIED="1172163415549" TEXT="Workflow: waeup_student_subobject_wf">
     206<node CREATED="1172156481009" ID="Freemind_Link_615932491" LINK="waeup_student_subobject_wf.gif" MODIFIED="1172903933018" TEXT="Diagram"/>
     207</node>
     208<node CREATED="1170883343230" ID="Freemind_Link_1769098562" MODIFIED="1172162754390" TEXT="User Interface">
     209<node CREATED="1170883352226" ID="Freemind_Link_1332793129" MODIFIED="1172163796143" TEXT="Student">
     210<node CREATED="1171124982312" ID="Freemind_Link_1964031449" LINK="../profiles/default/layouts/student_pume.xml" MODIFIED="1175266093912" TEXT="Layout: student_pume" VSHIFT="2"/>
     211<node CREATED="1172488817664" ID="Freemind_Link_183452447" MODIFIED="1172488820358" TEXT="view">
     212<node CREATED="1172163808013" LINK="../skins/waeup_student/application_slip.pt" MODIFIED="1172488857021" TEXT="PT: application_slip"/>
     213<node CREATED="1172163797590" LINK="../skins/waeup_student/application_view.pt" MODIFIED="1172488862899" TEXT="PT: application_view"/>
     214</node>
     215<node CREATED="1172488821089" FOLDED="true" ID="Freemind_Link_1024852395" MODIFIED="1172488823242" TEXT="edit">
     216<node CREATED="1172163808013" LINK="../skins/waeup_student/application_edit_form.pt" MODIFIED="1172488851172" TEXT="PT: application_edit_form"/>
     217<node CREATED="1172163808013" ID="Freemind_Link_987823120" LINK="../skins/waeup_student/application_edit.py" MODIFIED="1173007903444" TEXT="PY: application_edit"/>
     218</node>
     219</node>
     220<node CREATED="1170883352226" FOLDED="true" ID="Freemind_Link_156982782" MODIFIED="1172488273241" TEXT="Officer">
     221<node CREATED="1171124982312" LINK="../profiles/default/layouts/student_application.xml" MODIFIED="1172488456165" TEXT="Layout: student_application" VSHIFT="2"/>
     222<node CREATED="1172488875157" FOLDED="true" ID="Freemind_Link_1326488938" MODIFIED="1172488877500" TEXT="view">
     223<node CREATED="1172163808013" LINK="../skins/waeup_default/waeup_document_view.pt" MODIFIED="1172488738180" TEXT="PT: waeup_document_view"/>
     224</node>
     225<node CREATED="1172488878061" FOLDED="true" ID="Freemind_Link_1633752071" MODIFIED="1172488879643" TEXT="edit">
     226<node CREATED="1172163808013" LINK="../skins/waeup_default/waeup_edit.py" MODIFIED="1172488745821" TEXT="PY: waeup_edit"/>
     227<node CREATED="1172163808013" LINK="../skins/waeup_default/waeup_edit_form.pt" MODIFIED="1172488792728" TEXT="PT: waeup_edit_form"/>
     228</node>
     229</node>
    199230</node>
    200231</node>
  • WAeUP_SRP/branches/joachim-event-branch/exportimport.py

    r1515 r1669  
    9090                                              roles=('SectionReader',))
    9191            students.manage_setLocalGroupRoles(groupid = 'CourseAdvisers',
    92                                               roles=('SectionReader',))                                             
     92                                              roles=('SectionReader',))
    9393            students.manage_setLocalGroupRoles(groupid='MemberAdmins',
    9494                                         roles=('SectionOfficer',))
     
    120120    importWAeUPTable(site.courses_catalog, '', context,'courses_catalog')
    121121    importWAeUPTable(site.payments_catalog, '', context,'payments_catalog')
     122    importWAeUPTable(site.online_payments_import, '', context,'online_payments_import')
    122123    importWAeUPTable(site.portal_pins, '', context,'pins')
    123124    importWAeUPTable(site.portal_pumeresults, '', context,'pumeresults')
  • WAeUP_SRP/branches/joachim-event-branch/profiles/default/actions.xml

    r1474 r1669  
    177177  <action title="Change Password" action_id="change_password"
    178178     category="student" condition_expr="member"
    179      url_expr="string:${portal_url}/change_password" visible="True">
     179     url_expr="string:${portal_url}/change_password" visible="False">
    180180   <permission>View</permission>
    181181  </action>
  • WAeUP_SRP/branches/joachim-event-branch/profiles/default/layouts/student_change_password.xml

    r1474 r1669  
    3535    <property name="hidden_readonly_layout_modes"/>
    3636    <property name="password_widget"></property>
    37     <property name="check_digit">False</property>
     37    <property name="check_digit">True</property>
    3838    <property name="size_min">6</property>
    3939    <property name="size_max">10</property>
  • WAeUP_SRP/branches/joachim-event-branch/profiles/default/schemas/payment.xml

    r1399 r1669  
    66  <field name="type_description" meta_type="CPS String Field" >
    77    <property name="is_searchabletext">True</property>
    8   </field> <field name="order_id" meta_type="CPS String Field"/>
     8  </field>
    99  <field name="amount" meta_type="CPS String Field"/>
    1010  <field name="resp_pay_reference" meta_type="CPS String Field"/>
  • WAeUP_SRP/branches/joachim-event-branch/profiles/default/schemas/student_study_level.xml

    r1399 r1669  
    44 <field name="code" meta_type="CPS String Field"/>
    55 <field name="session" meta_type="CPS String Field"/>
    6  <field name="gpa" meta_type="CPS Float Field"/>
    7  <field name="status" meta_type="CPS String Field"/>
    86 <field name="verdict" meta_type="CPS String Field"/>
    9   <field name="imported_gpa" meta_type="CPS Float Field"/>
     7 <field name="validated_by" meta_type="CPS String Field"/>
     8 <field name="validation_date" meta_type="CPS DateTime Field"/>
    109</object>
  • WAeUP_SRP/branches/joachim-event-branch/profiles/default/students_catalog.xml

    r1596 r1669  
    3232 </index>
    3333 <index name="jamb_reg_no" meta_type="FieldIndex">
    34   <indexed_attr value="student_application:jamb_reg_no"/>
     34  <indexed_attr value="jamb_reg_no"/>
    3535 </index>
    3636 <index name="matric_no" meta_type="FieldIndex">
    37   <indexed_attr value="student_clearance:matric_no"/>
     37  <indexed_attr value="matric_no"/>
    3838 </index>
    3939 <index name="faculty" meta_type="KeywordIndex">
     
    4141 </index>
    4242 <index name="entry_mode" meta_type="KeywordIndex">
    43   <indexed_attr value="student_application:entry_mode"/>
     43  <indexed_attr value="entry_mode"/>
    4444 </index>
    4545 <index name="entry_year" meta_type="KeywordIndex">
     
    5050 </index>
    5151 <index name="level" meta_type="KeywordIndex">
    52   <indexed_attr value="student_study_course:current_level"/>
     52  <indexed_attr value="current_level"/>
    5353 </index>
    5454 <index name="verdict" meta_type="KeywordIndex">
    55   <indexed_attr value="student_study_course:current_verdict"/>
     55  <indexed_attr value="current_verdict"/>
    5656 </index>
    5757 <index name="course" meta_type="KeywordIndex">
    58   <indexed_attr value="student_study_course:study_course"/>
     58  <indexed_attr value="study_course"/>
    5959 </index>
    6060 <index name="registered_courses" meta_type="KeywordIndex">
  • WAeUP_SRP/branches/joachim-event-branch/profiles/default/themes.xml

    r1596 r1669  
    66  <element key="external_edit_form" value="WAeUP_Student+Slippage"/>
    77  <element key="external_clearance_edit_form" value="WAeUP_Student+Slippage"/>
    8   <element key="contact_student_form" value="WAeUP_Student+Slippage"/>
    98  <element key="login_staff" value="WAeUP_Backoffice+Default"/>
    109  <element key="logged_out" value="WAeUP_Student+Default"/>
  • WAeUP_SRP/branches/joachim-event-branch/profiles/default/toolset.xml

    r1151 r1669  
    77 <required tool_id="payments_catalog"
    88           class="Products.WAeUP_SRP.WAeUPTables.PaymentsCatalog"/>
     9 <required tool_id="online_payments_import"
     10           class="Products.WAeUP_SRP.WAeUPTables.OnlinePaymentsImport"/>
    911 <required tool_id="portal_pins"
    1012           class="Products.WAeUP_SRP.WAeUPTables.PinTable"/>
  • WAeUP_SRP/branches/joachim-event-branch/profiles/default/workflows/waeup_student_subobject_wf/definition.xml

    r1515 r1669  
    99 <permission>Modify portal content</permission>
    1010 <permission>View</permission>
     11 <permission>View</permission>
    1112 <state state_id="closed" title="">
     13  <exit-transition transition_id="create_content"/>
    1214  <exit-transition transition_id="open"/>
    1315  <permission-map name="Add portal content" acquired="True">
     
    103105             new_state="closed" trigger="USER"
    104106             before_script="" after_script="">
    105  
     107
    106108  <guard>
    107109   <guard-role>SectionOfficer</guard-role>
     
    115117             new_state="content_addable" trigger="USER"
    116118             before_script="" after_script="">
    117  
     119
    118120  <guard>
    119121   <guard-role>SectionOfficer</guard-role>
     
    127129             new_state="created" trigger="USER"
    128130             before_script="" after_script="">
    129  
     131
    130132  <guard>
    131133  </guard>
     
    136138             new_state="" trigger="USER" before_script=""
    137139             after_script="">
    138  
     140
    139141  <guard>
    140142  </guard>
     
    144146             new_state="opened" trigger="USER"
    145147             before_script="" after_script="">
    146  
     148
    147149  <guard>
    148150   <guard-role>SectionOfficer</guard-role>
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_academics/getCertificateInfo.py

    r913 r1669  
    1212return Info about a Certificate
    1313"""
     14def cmp_id(a,b):
     15    s1 = "%(id)s" % a
     16    s2 = "%(id)s" % b
     17    if s1 == s2:
     18        return 0
     19    if s1 > s2:
     20        return 1
     21    return -1
     22
    1423request = context.REQUEST
    1524
     
    1827
    1928info = {}
    20 info['action'] = "%s" % context.campus.absolute_url()
     29info['action'] = "%s" % context.absolute_url()
    2130info['choosen_ids'] = request.get('ids',[])
    2231info['doc'] = context.getContent()
     
    3342    row['url'] = l.absolute_url()
    3443    items.append(row)
     44items.sort(cmp_id)
    3545info['items'] = items
    3646return info
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_academics/getLevelInfo.py

    r1514 r1669  
    1616wf = context.portal_workflow
    1717mtool = context.portal_membership
     18academics_path = "%s/campus/academics" % context.portal_url()
    1819path_info = request.get('PATH_INFO').split('/')
    1920try:
     
    4445    ro = r.getObject()
    4546    rd = ro.getContent()
    46     row['id'] = r.getId
     47    course_id = row['id'] = r.getId
    4748    row['title'] = rd.Title()
    4849    row['core'] = rd.core_or_elective
     
    5051    row['url'] = ro.absolute_url()
    5152    row['review_state'] = wf.getInfoFor(ro,'review_state','None')
    52     row['is_editable'] = mtool.checkPermission('Modify portal content', ro)
     53    editable = row['is_editable'] = mtool.checkPermission('Modify portal content', ro)
     54    if editable:
     55        course_res = context.courses_catalog(code=course_id)
     56        if course_res:
     57            rc = course_res[0]
     58            row['real_course_path'] = "%s/%s/%s/courses/%s" % (academics_path,rc.faculty,rc.department,course_id)
    5359    if rd.semester == 'first':
    5460        first.append(row)
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_academics/level_view.pt

    r1511 r1669  
    4848                    [edit]
    4949                    </a>
     50                <a tal:condition="row/real_course_path|nothing"
     51                   href="edit" tal:attributes="href string:${row/real_course_path}">
     52                    [goto course]
     53                    </a>
    5054                </td>
    5155              </tr>
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_default/mail2admin.py

    r976 r1669  
    3737     email,
    3838     'kehindesamuel@waeup.org',
    39      'henrik@waeup.org',
     39     'waeup@saoas.org',
    4040#    'js@aixtraware.de',
    4141     email,
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/payment_receipt.pt

    r1427 r1669  
    88      <span tal:condition="info">
    99     
    10         <metal:block tal:condition="python:info_doc['doc'].resp_code in ('00','AP',)">           
     10        <metal:block tal:condition="python:info_doc['doc'].resp_code in ('00','AP','IP')">           
    1111        <h3>Online Payment Receipt</h3>
    1212        <br />
     
    106106        </metal:block>
    107107       
    108         <metal:block tal:condition="python:info_doc['doc'].resp_code not in ('SC','00','AP','')">           
     108        <metal:block tal:condition="python:info_doc['doc'].resp_code not in ('SC','00','AP','IP','')">           
    109109        <h3>Response from Bank: "<span tal:content="python:info_doc['doc'].resp_desc" />"</h3>
    110110        <br />       
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/payments_view.pt

    r1431 r1669  
    3434            </td>
    3535            <td>
    36             <a tal:condition="python:row['is_approvable']"
     36            <a tal:condition="row/is_approvable"
    3737               tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment;
    3838                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
    3939                               ">
    4040                [approve payment]
     41            </a>             
     42            </td>
     43            <td tal:condition="nothing">
     44            <a tal:condition="row/is_requeryable"
     45               tal:attributes="href string:${context/absolute_url}/${row/id}/requery_payment;
     46                               onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
     47                               ">
     48                [requery payment]
    4149            </a>             
    4250            </td>
     
    5361                value="Initiate School Fee Online Payment"
    5462                />
     63               
     64
     65
     66               
    5567        </form> 
    5668
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/change_password.py

    r1596 r1669  
    44
    55"""
     6
     7return
     8
     9
     10
     11
     12
     13
     14
     15
    616request = context.REQUEST
    717import DateTime,logging
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/clearance_edit.py

    r1596 r1669  
    120120        wftool.doActionFor(info['clear'],'open')
    121121        wftool.doActionFor(info['student'],'reject_clearance')
    122         action = "/contact_student_form"
     122        action = "/external_contact_student_form"
    123123        psm = "Student's clearance request has been rejected! Please fill and submit the form below!"
    124124        subject = "Clearance request rejected"
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/getSessionResults.py

    r1596 r1669  
    101101#set_trace()
    102102verdict_voc = context.portal_vocabularies.verdicts
    103 verdict_code = student_from_cat.get('verdict',None)
     103verdict_code = student_from_cat.verdict
    104104if verdict_code:
    105105    info['verdict'] = verdict = verdict_voc.get(verdict_code,'N/A').upper()
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/getStudyLevelInfo.py

    r1596 r1669  
    4040    return 0.0
    4141
    42 def cmp_semester(a,b):
    43     if a['semester'] == b['semester']:
     42def cmp_semester_id(a,b):
     43    s1 = "%(semester)s%(id)s" % a
     44    s2 = "%(semester)s%(id)s" % b
     45    if s1 == s2:
    4446        return 0
    45     if a['semester'] > b['semester']:
     47    if s1 > s2:
    4648        return 1
    4749    return -1
     
    104106        normal.append(d)
    105107info['credits_total'] = credits_total
    106 carry_overs.sort(cmp_semester)
     108carry_overs.sort(cmp_semester_id)
    107109info['carry_overs'] = carry_overs
    108 normal.sort(cmp_semester)
     110normal.sort(cmp_semester_id)
    109111info['normal'] = normal
    110112
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/layout_personal_view.pt

    r1201 r1669  
    99      <td><span class="dlabel">Student ID</span>:
    1010      </td>
    11       <td tal:condition="nothing">
     11      <td>
    1212         <span tal:replace="context/getStudentId" />
    1313      </td>     
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/statistics_new_view.pt

    r1532 r1669  
    3333            <th align="right">CR</th>
    3434            <th align="right">VC</th>
    35             <th align="right">SFP</th>
     35            <th align="right">SFP+</th>
    3636          </tr>
    3737          <tr tal:repeat="d departments"
     
    7474        <tr><td>CR: </td> <td>Clearance requested</td></tr>
    7575        <tr><td>VC: </td> <td>Validated and cleared</td></tr>
    76         <tr><td>SFP: </td> <td>School fee paid</td></tr>
     76        <tr><td>SFP+: </td> <td>School fee paid and further</td></tr>
    7777        </table>
    7878      </span>
  • WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/study_course_view.pt

    r1518 r1669  
    5858        </table>       
    5959     
    60       <form action="" method="post" class="group"
     60      <form action="" method="post" class="group" onsubmit="return submit_once()"
    6161            tal:attributes="action info/action"
    6262            tal:define="rows python: info['items'];"
     
    6666            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    6767            <td align="left" valign="middle" style="width: 5px;"
    68                 tal:condition="python: 0 and is_so">
     68                tal:condition="python:is_so">
    6969              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    7070                     tal:condition="is_so"
     
    8484               summary="contents of the folder"
    8585               class="folderButtons">
    86           <tr>
     86          <tr tal:condition="python: is_so and info['items']">
    8787            <td align="left" valign="top" rowspan="3"></td>
    8888            <td align="left" valign="top">
    89               <span tal:condition="python:0 and is_so">
    90                 <input type="button" value="button_select_all" class="context"
     89              <input type="button" value="button_select_all" class="context"
    9190                       onclick="someJavaScriptFunctionThatWillBeReplaced"
    9291                       i18n:attributes="value"
     
    9493                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
    9594                       />
    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               </span>
     95              <input type="submit" name="folder_delete:method" value="button_delete"
     96                     class="destructive" i18n:attributes="value"
     97                     tal:attributes="onclick python:'return window.confirm(\'%s\')' %
     98                     (cpsmcat('description_confirm_delete'), )"
     99                     />
    102100            </td>
    103101          </tr>
    104102        </table>
    105103      </form>
    106       <form action="" method="post" class="group"
     104      <form action="" method="post" class="group" onsubmit="return submit_once()"
    107105            tal:attributes="action string:${context/absolute_url}/create_level"
    108106            tal:define="rows python: info['items'];"
Note: See TracChangeset for help on using the changeset viewer.