# HG changeset patch # User neko259 # Date 2016-09-26 08:27:19 # Node ID 30740dfa26765762016d6191285f5f75e70071bf # Parent 6bbf2ba7c422b17123f958d36cd462a1f8fba46c Added asterisk to required field in forms diff --git a/boards/forms.py b/boards/forms.py --- a/boards/forms.py +++ b/boards/forms.py @@ -109,6 +109,7 @@ class NeboardForm(forms.Form): """ Form with neboard-specific formatting. """ + required_css_class = 'required-field' def as_div(self): """ diff --git a/boards/static/css/base.css b/boards/static/css/base.css --- a/boards/static/css/base.css +++ b/boards/static/css/base.css @@ -160,3 +160,7 @@ textarea, input { cursor: pointer; z-index: 400; } + +.required-field:before { + content: '* '; +}