diff --git a/hypha/apply/funds/blocks.py b/hypha/apply/funds/blocks.py index 09f0dd3c06c0b8e42e27bed7e516ef2a3dc79005..bef534064053fa4c0e57a7f5d5cdb6f8c889d5ea 100644 --- a/hypha/apply/funds/blocks.py +++ b/hypha/apply/funds/blocks.py @@ -104,6 +104,7 @@ class FullNameBlock(ApplicationMustIncludeFieldBlock): default=_("We will use this name when we communicate with you about your proposal.")) class Meta: + label = _('Full name') icon = 'user' diff --git a/hypha/apply/utils/blocks.py b/hypha/apply/utils/blocks.py index e59d2e99253ca435c6c6263c5acaef0738458836..1ff00f833c25e39d3dd71a697c85acce380417fb 100644 --- a/hypha/apply/utils/blocks.py +++ b/hypha/apply/utils/blocks.py @@ -189,7 +189,7 @@ class SingleIncludeStatic(StaticBlock): class SingleIncludeMixin: def __init__(self, *args, **kwargs): - info_name = f'{self.name.title()} Field' + info_name = f'{self._meta_class.label} Field' if self._meta_class.label else f'{self.name.title()} Field' child_blocks = [('info', SingleIncludeStatic(label=info_name, description=self.description))] super().__init__(child_blocks, *args, **kwargs)