Ignore:
Timestamp:
13 Jul 2016, 09:47:28 (8 years ago)
Author:
Henrik Bettermann
Message:

display_actions must contain 2 elements.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py

    r14027 r14029  
    310310        state = IWorkflowState(self.context).getState()
    311311        # If the form is unlocked, applicants are allowed to save the form
    312         actions = [[_('Save')],]
     312        # and remove unused tickets.
     313        actions = [[_('Save')], []]
    313314        # Only in state started they can also add tickets.
    314315        if state == STARTED:
    315             actions = [[_('Save')], [_('Add online payment ticket'),]]
     316            actions = [[_('Save')],
     317                [_('Add online payment ticket')]]
    316318        # In state paid, they can submit the data and further add tickets
    317319        # if the application is special.
    318320        elif self.context.special and state == PAID:
    319321            actions = [[_('Save'), _('Finally Submit')],
    320                 [_('Add online payment ticket'),]]
     322                [_('Add online payment ticket')]]
    321323        elif state == PAID:
    322             actions = [[_('Save'), _('Finally Submit')],]
     324            actions = [[_('Save'), _('Finally Submit')], []]
    323325        return actions
    324326
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicanteditpage.pt

    r13977 r14029  
    119119      </thead>
    120120      <tbody>
    121         <tr tal:repeat="cl context/values">
    122            <td>
    123             <input type="checkbox"
    124                  name="val_id"
     121        <tr tal:repeat="cl context/payments">
     122          <td>
     123           <input type="checkbox" name="val_id"
    125124                 tal:attributes="value cl/__name__"
    126125           tal:condition="python: not view.unremovable(cl)" />
     
    130129          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
    131130          <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
    132         <td tal:content ="cl/category">CATEGORY</td>
    133         <td tal:content ="cl/display_item">ITEM</td>
    134         <td tal:content ="cl/p_state_title">STATE</td>
     131          <td tal:content ="cl/category">CATEGORY</td>
     132          <td tal:content ="cl/display_item">ITEM</td>
     133          <td tal:content ="cl/p_state_title">STATE</td>
    135134        </tr>
    136135      </tbody>
Note: See TracChangeset for help on using the changeset viewer.