Changeset 17191 for main/kofacustom.lpng


Ignore:
Timestamp:
1 Dec 2022, 10:00:01 (2 years ago)
Author:
Henrik Bettermann
Message:

More modifications.

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

Legend:

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

    r17190 r17191  
    129129                   ]]
    130130        if state == STARTED:
    131             actions = [[_('Save')],
     131            actions = [[_('Save'), _('Save and Make Donation via USSD')],
    132132                [
    133133                 #_('Add online payment ticket'),
     
    181181        return
    182182
    183     @action(_('Make Donation via USSD Money Transfer'), style='primary')
     183    @action(_('Save and Make Donation via USSD'), style='primary')
    184184    def makeUSSDonation(self, **data):
    185         self.redirect(self.url(self.context, '@USSSD'))
     185        if self.upload_success is False:  # False is not None!
     186            # Error during image upload. Ignore other values.
     187            return
     188        self.applyData(self.context, **data)
     189        self.redirect(self.url(self.context, '@ussdinfo'))
    186190        return
    187191       
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/browser_templates/applicantdisplaypage.pt

    r17091 r17191  
    5252</table>
    5353
     54<br />
     55
     56<a href="ussdinfo" class="btn btn-primary">Make Donation via USSD</a>
     57
    5458<tal:payments condition="view/display_payments">
    5559  <h3 i18n:domain="waeup.kofa" i18n:translate="">
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/locales/en/LC_MESSAGES/waeup.kofa.po

    r17019 r17191  
    66"Last-Translator: Henrik Bettermann <henrik@waeup.org>\n"
    77"Language-Team: \n"
     8"Language: en\n"
    89"MIME-Version: 1.0\n"
    910"Content-Type: text/plain; charset=iso-8859-1\n"
    1011"Content-Transfer-Encoding: 8bit\n"
    11 "Language: en\n"
    12 "X-Generator: Poedit 1.6.5\n"
     12"X-Generator: Poedit 3.2\n"
    1313
    1414msgid "WAeUP.Kofa - Student Management System"
     
    136136msgid "login_trouble5"
    137137msgstr "  "
     138
     139#: waeup/kofa/utils/utils.py:333
     140msgid ""
     141"Dear ${a},\n"
     142"\n"
     143"${b}\n"
     144"Student Registration and Information Portal of\n"
     145"${c}.\n"
     146"\n"
     147"Your user name: ${d}\n"
     148"Your password: ${e}\n"
     149"${f}\n"
     150"\n"
     151"Please remember your user name and keep\n"
     152"your password secret!\n"
     153"\n"
     154"Please also note that passwords are case-sensitive.\n"
     155"\n"
     156"Regards\n"
     157msgstr ""
     158"Dear ${a},\n"
     159"\n"
     160"You have successfully been registered as an Obi-Dient on the Big Tent "
     161"Foundation Registration and Information Porta.l\n"
     162"\n"
     163"Your user name: ${d}\n"
     164"Your password: ${e}\n"
     165"${f}\n"
     166"\n"
     167"Please remember your user name and keep\n"
     168"your password secret!\n"
     169"\n"
     170"Please also note that passwords are case-sensitive.\n"
     171"\n"
     172"Regards\n"
Note: See TracChangeset for help on using the changeset viewer.