mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Payment/Manual: Add email placeholder
This commit is contained in:
parent
175ef68fac
commit
e3e76ecf5a
@ -56,6 +56,12 @@ class LastNamePlaceholder(EscapablePlaceholder):
|
||||
field = 'last_name'
|
||||
|
||||
|
||||
class EmailPlaceholder(EscapablePlaceholder):
|
||||
name = 'email'
|
||||
basic_description = _("Email address of the registrant")
|
||||
field = 'email'
|
||||
|
||||
|
||||
class RegistrationIDPlaceholder(IDPlaceholder):
|
||||
name = 'registration_id'
|
||||
|
||||
|
||||
@ -73,11 +73,12 @@ class ManualPaymentPlugin(PaymentPluginMixin, IndicoPlugin):
|
||||
self.connect(signals.get_placeholders, self._get_details_placeholders, sender='manual-payment-details')
|
||||
|
||||
def _get_details_placeholders(self, sender, regform, registration, **kwargs):
|
||||
from indico_payment_manual.placeholders import (FirstNamePlaceholder, LastNamePlaceholder,
|
||||
from indico_payment_manual.placeholders import (FirstNamePlaceholder, LastNamePlaceholder, EmailPlaceholder,
|
||||
RegistrationIDPlaceholder, EventIDPlaceholder, PricePlaceholder,
|
||||
CurrencyPlaceholder)
|
||||
yield FirstNamePlaceholder
|
||||
yield LastNamePlaceholder
|
||||
yield EmailPlaceholder
|
||||
yield RegistrationIDPlaceholder
|
||||
yield EventIDPlaceholder
|
||||
yield PricePlaceholder
|
||||
|
||||
@ -21,7 +21,7 @@ from setuptools import find_packages, setup
|
||||
|
||||
setup(
|
||||
name='indico-plugin-payment-manual',
|
||||
version='1.0',
|
||||
version='1.0.1',
|
||||
description='Payment plugin for Indico that can be used for custom payment information/links',
|
||||
url='https://github.com/indico/indico-plugins',
|
||||
license='https://www.gnu.org/licenses/gpl-3.0.txt',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user