Source code for collecting_society_web.views.widgets.missing_profile_data

# For copyright and license terms, see COPYRIGHT.rst (top level of repository)
# Repository: https://github.com/C3S/collecting_society_web

from ...services import _


[docs] class MissingProfileDataWidget(): def __init__(self, request): self.has_address = bool(request.party.addresses)
[docs] def condition(self): return not self.has_address
[docs] def icon(self): return "glyphicon glyphicon-cog"
[docs] def header(self): return _("Missing Profile Data")
[docs] def description(self): return _("Please add your address in your Profile to be able to " "receive invoices or royalties.")
[docs] def buttons(self): return [{ 'name': _('Edit Profile'), 'path': ['profile', 'edit'], }]
[docs] def badge(self): return False