Added a dagger at the end of some fields in the account data forms to signify consent-based fields, and made the consent field required.
- Legacy-Id: 15174
This commit is contained in:
parent
81e78c70a0
commit
f6537fda59
|
@ -1,3 +1,7 @@
|
|||
# Copyright The IETF Trust 2016, All Rights Reserved
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals, print_function
|
||||
|
||||
import re
|
||||
from unidecode import unidecode
|
||||
|
||||
|
@ -108,6 +112,12 @@ def get_person_form(*args, **kwargs):
|
|||
if self.initial.get("ascii") == self.initial.get("name"):
|
||||
self.initial["ascii"] = ""
|
||||
|
||||
for f in ['name', 'ascii', 'ascii_short', 'biography', 'photo', 'photo_thumb', ]:
|
||||
if f in self.fields:
|
||||
self.fields[f].label += ' \u2020'
|
||||
|
||||
self.fields["consent"].required = True
|
||||
|
||||
self.unidecoded_ascii = False
|
||||
|
||||
if self.data and not self.data.get("ascii", "").strip():
|
||||
|
|
Loading…
Reference in a new issue