mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Payment: Add logos for manual and paypal
This commit is contained in:
parent
9932656558
commit
0ba04ee90c
@ -1 +1,2 @@
|
||||
graft indico_payment_manual/static
|
||||
graft indico_payment_manual/templates
|
||||
|
||||
@ -19,7 +19,7 @@ from __future__ import unicode_literals
|
||||
from wtforms.fields.simple import TextAreaField
|
||||
from wtforms.validators import DataRequired
|
||||
|
||||
from indico.core.plugins import IndicoPlugin
|
||||
from indico.core.plugins import IndicoPlugin, IndicoPluginBlueprint, url_for_plugin
|
||||
from indico.modules.payment import PaymentPluginMixin, PaymentPluginSettingsFormBase, PaymentEventSettingsFormBase
|
||||
from indico.util.i18n import _
|
||||
from indico.web.forms.validators import UsedIf
|
||||
@ -48,3 +48,10 @@ class ManualPaymentPlugin(PaymentPluginMixin, IndicoPlugin):
|
||||
settings_form = PluginSettingsForm
|
||||
event_settings_form = EventSettingsForm
|
||||
default_settings = {'method_name': 'Bank Transfer'}
|
||||
|
||||
@property
|
||||
def logo_url(self):
|
||||
return url_for_plugin(self.name + '.static', filename='images/logo.png')
|
||||
|
||||
def get_blueprints(self):
|
||||
return IndicoPluginBlueprint('payment_manual', __name__)
|
||||
|
||||
BIN
payment_manual/indico_payment_manual/static/images/logo.png
Normal file
BIN
payment_manual/indico_payment_manual/static/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@ -1 +1,2 @@
|
||||
graft indico_payment_paypal/static
|
||||
graft indico_payment_paypal/templates
|
||||
|
||||
@ -20,7 +20,7 @@ from wtforms.fields.core import StringField
|
||||
from wtforms.fields.html5 import URLField
|
||||
from wtforms.validators import DataRequired
|
||||
|
||||
from indico.core.plugins import IndicoPlugin, IndicoPluginBlueprint
|
||||
from indico.core.plugins import IndicoPlugin, IndicoPluginBlueprint, url_for_plugin
|
||||
from indico.modules.payment import PaymentPluginMixin, PaymentPluginSettingsFormBase, PaymentEventSettingsFormBase
|
||||
from indico_payment_paypal.controllers import RHPaymentEventNotify
|
||||
from indico.util.i18n import _
|
||||
@ -49,6 +49,10 @@ class PaypalPaymentPlugin(PaymentPluginMixin, IndicoPlugin):
|
||||
default_settings = {'method_name': 'PayPal',
|
||||
'url': 'https://www.paypal.com/cgi-bin/webscr'}
|
||||
|
||||
@property
|
||||
def logo_url(self):
|
||||
return url_for_plugin(self.name + '.static', filename='images/logo.png')
|
||||
|
||||
def get_blueprints(self):
|
||||
return blueprint
|
||||
|
||||
|
||||
BIN
payment_paypal/indico_payment_paypal/static/images/logo.png
Normal file
BIN
payment_paypal/indico_payment_paypal/static/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Loading…
x
Reference in New Issue
Block a user