Ignore:
Timestamp:
25 Nov 2022, 09:04:54 (2 years ago)
Author:
Henrik Bettermann
Message:

Make puniteditpage an auto submit form.

Location:
main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser.py

    r17091 r17175  
    207207    pnav = 3
    208208
    209     @action(_('Save'), style='primary')
     209    @action(_('Save'), style='invisible')
    210210    def save(self, **data):
    211211        changed_fields = self.applyData(self.context, **data)
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser_templates/puniteditpage.pt

    r17092 r17175  
    99
    1010<ol>
    11 <li>Select and save State (This is the state you would be voting in).</li>
    12 <li>Select and save LGA (This is the LGA in which you live).</li>
    13 <li>Select and save Ward.</li>
    14 <li>Select and save your Polling Unit.</li>
     11<li>Select State (This is the state you would be voting in).</li>
     12<li>Select LGA (This is the LGA in which you live).</li>
     13<li>Select Ward.</li>
     14<li>Select your Polling Unit.</li>
    1515</ol>
    1616<br />
    17 <form action="." tal:attributes="action request/URL" method="post"
     17<form id="autosubmitform" name="autosubmitform" class="autosubmit"
     18      action="." tal:attributes="action request/URL" method="post"
    1819      enctype="multipart/form-data">
    1920
     
    2122    <tbody>
    2223      <tal:widgets content="structure provider:widgets" />
    23       <tal:files content="structure provider:files" />
    2424    </tbody>
    2525  </table>
    26   <br />
     26  <a id="kofa-scroll-target" />
    2727  <div tal:condition="view/availableActions">
    2828    <input tal:repeat="action view/actions"
    2929           tal:replace="structure action/render"
    3030           />
    31     <a id="kofa-scroll-target" />
    3231  </div>
    3332</form>
Note: See TracChangeset for help on using the changeset viewer.