8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00
This commit is contained in:
Hugo Levy-Falk 2019-09-20 11:57:57 +02:00 committed by klafyvel
parent d98eb4e011
commit aee410508d

View file

@ -409,10 +409,11 @@ class AdherentCreationForm(AdherentForm):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(AdherentCreationForm, self).__init__(*args, **kwargs) super(AdherentCreationForm, self).__init__(*args, **kwargs)
gtu_file = GeneralOption.get_cached_value('GTU')
self.fields['gtu_check'].label = mark_safe( self.fields['gtu_check'].label = mark_safe(
"%s <a href='%s' download='CGU'>%s</a>." % ( "%s <a href='%s' target='_blank' download='CGU'>%s</a>." % (
_("I commit to accept the"), _("I commit to accept the"),
GeneralOption.get_cached_value('GTU').url, gtu_file.url if gtu_file else "https://en.wikipedia.org/wiki/Llama",
_("General Terms of Use") _("General Terms of Use")
) )
) )