Skip to content

Commit f6537fd

Browse files
committed
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
1 parent 81e78c7 commit f6537fd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ietf/ietfauth/forms.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright The IETF Trust 2016, All Rights Reserved
2+
# -*- coding: utf-8 -*-
3+
from __future__ import unicode_literals, print_function
4+
15
import re
26
from unidecode import unidecode
37

@@ -108,6 +112,12 @@ def __init__(self, *args, **kwargs):
108112
if self.initial.get("ascii") == self.initial.get("name"):
109113
self.initial["ascii"] = ""
110114

115+
for f in ['name', 'ascii', 'ascii_short', 'biography', 'photo', 'photo_thumb', ]:
116+
if f in self.fields:
117+
self.fields[f].label += ' \u2020'
118+
119+
self.fields["consent"].required = True
120+
111121
self.unidecoded_ascii = False
112122

113123
if self.data and not self.data.get("ascii", "").strip():

0 commit comments

Comments
 (0)