Ignore:
Timestamp:
31 Jan 2015, 18:01:56 (10 years ago)
Author:
Henrik Bettermann
Message:

Add deletion warning.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py

    r12528 r12531  
    385385    label = _('Manage base data')
    386386    pnav = 4
     387    deletion_warning = _('Are you sure?')
    387388
    388389    @property
     
    687688    label = _('Upload files')
    688689    pnav = 4
     690    deletion_warning = _('Are you sure?')
    689691
    690692    def update(self, CANCEL=None):
     
    735737        """To be implemented in the customization package.
    736738        """
    737         return False
     739        return
    738740
    739741    @action(_('Save and request registration now'),
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/basemanagepage.pt

    r11979 r12531  
    1010    <li>
    1111      <a href="#tab2" data-toggle="tab">
    12         <span i18n:translate="">Passport Picture</span>
     12        <span i18n:translate="">Files</span>
    1313      </a>
    1414    </li>
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/imageupload.pt

    r11979 r12531  
    99    <input type="submit" tal:condition="viewlet/file_exists"
    1010     tal:attributes="id python:('delete_%s' % viewlet.input_name);
    11         name python:('delete_%s' % viewlet.input_name)"
     11        name python:('delete_%s' % viewlet.input_name);
     12        onclick python:'return window.confirm(\'%s\')' % view.deletion_warning"
    1213     value="Delete" class="btn btn-danger" />
    1314    <br /><br />
Note: See TracChangeset for help on using the changeset viewer.