Changeset 17175


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

Make puniteditpage an auto submit form.

Location:
main/kofacustom.lpng/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.lpng/trunk/layout/rules.xml

    r16996 r17175  
    9999          css:if-not-content="input.kofa-filterbox" />
    100100
     101    <drop css:theme="script.kofa-autoSubmit"
     102          css:if-not-content="form.autosubmit" />
     103
    101104<!--
    102105    <after css:theme-children="html head"
  • main/kofacustom.lpng/trunk/layout/theme.html

    r17148 r17175  
    623623        src="static/js/kofa-filterByText.js">
    624624    </script>
     625    <script class="kofa-autoSubmit"
     626        src="static/js/kofa-autoSubmit.js">
     627    </script>
    625628  </body>
    626629</html>
  • 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.