You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -9,33 +9,51 @@ class CustomPassSettingsForm(IndicoForm):
9
9
apple_pass_background_color=ColorField(
10
10
_('Apple Wallet pass background color'),
11
11
description=_(
12
-
'The background color of the Apple Wallet pass in HEX format (e.g. #000000 for black, #ffffff for white).'),
12
+
'The background color of the Apple Wallet pass.'),
13
13
validators=[Regexp(r'^#(?:[0-9a-fA-F]{3}){1,2}$', message=_('Invalid HEX color format.'))],
14
14
default='#000000'
15
15
)
16
16
apple_pass_foreground_color=ColorField(
17
17
_('Apple Wallet pass foreground color'),
18
18
description=_(
19
-
'The foreground color of the Apple Wallet pass in HEX format (e.g. #000000 for black, #ffffff for white).'),
19
+
'The foreground color of the Apple Wallet pass.'),
20
20
validators=[Regexp(r'^#(?:[0-9a-fA-F]{3}){1,2}$', message=_('Invalid HEX color format.'))],
21
21
default='#ffffff'
22
22
)
23
23
apple_pass_label_color=ColorField(
24
24
_('Apple Wallet pass label color'),
25
25
description=_(
26
-
'The label color of the Apple Wallet pass in HEX format (e.g. #000000 for black, #ffffff for white).'),
26
+
'The label color of the Apple Wallet pass.'),
27
27
validators=[Regexp(r'^#(?:[0-9a-fA-F]{3}){1,2}$', message=_('Invalid HEX color format.'))],
28
28
default='#ffffff'
29
29
)
30
-
apple_pass_organization_name=StringField(
31
-
_('Apple Wallet pass organization name'),
32
-
description=_('The organization name displayed on the Apple Wallet pass.'),
30
+
apple_pass_logo_text=StringField(
31
+
_('Apple Wallet pass logo text'),
32
+
description=_('The string displayed next to your logo on the Apple Wallet pass.'),
33
33
default='Indico',
34
34
)
35
+
apple_pass_customize_logo=BooleanField(
36
+
_('Customize Apple Wallet pass logo'),
37
+
description=_(
38
+
'If enabled, the logo on the Apple Wallet pass will be replaced with the image you specify below; WALLET_LOGO_URL from the official indico configuration will be ignored.'),
39
+
default=False,
40
+
)
41
+
apple_pass_custom_logo_url=StringField(
42
+
_('Apple Wallet pass custom logo URL'),
43
+
description=_(
44
+
'The URL of the custom logo to be used on the Apple Wallet pass. Must be a PNG image.\nPer apple docs: The logo image (logo.png) is displayed in the top left corner of the pass, next to the logo text. The allotted space is 160 x 50 points; in most cases it should be narrower.'),
45
+
default='',
46
+
)
47
+
apple_pass_custom_icon_url=StringField(
48
+
_('Apple Wallet pass custom icon URL'),
49
+
description=_(
50
+
'The URL of the custom icon to be used on the Apple Wallet pass. Must be a PNG image.\nPer apple docs: The icon (icon.png) is displayed when a pass is shown on the lock screen and by apps such as Mail when showing a pass attached to an email. The icon should measure 29 x 29 points.'),
51
+
default='',
52
+
)
35
53
google_pass_background_color=ColorField(
36
54
_('Google Wallet pass background color'),
37
55
description=_(
38
-
'The background color of the Google Wallet pass in HEX format (e.g. #000000 for black, #ffffff for white).'),
56
+
'The background color of the Google Wallet pass.'),
39
57
validators=[Regexp(r'^#(?:[0-9a-fA-F]{3}){1,2}$', message=_('Invalid HEX color format.'))],
0 commit comments