Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS/HTML fixes for consistent display of mandatory fields #695

Merged
merged 7 commits into from Jan 1, 2016

Conversation

dregad
Copy link
Member

@dregad dregad commented Dec 20, 2015

This started off as a quick fix for #20395, and expanded to a broader series of related fixes.

With this, we should hopefully have a consistent use of 'required' class for mandatory fields throughout the codebase.

There was an inconsistency in the class name used to flag mandatory
fields. The fields use 'required' class to display a red asterisk next
to the label, while the parent fieldset relied on 'has-required' to
display the '* required' legend at the bottom of the form.

This caused password fields in account_page.php (which are only required
in specific contexts, e.g.  when changing a new account's password after
verification) not to be flagged with the red asterisk.

We now consistently use 'required'.

Fixes #20395
Remove hardcoded '*' with span, use CSS 'required' class on label
instead.
Remove hardcoded '*' with span, use CSS 'required' class on label
instead.

Improve generated HTML for custom fields display.
Improve generated HTML for custom fields display, remove hardcoded '*'
with span, use CSS 'required' class on label instead.
Refactor the code to use "1.3-style" layout with form-container div and
fieldset, instead of html table.

Use 'required' CSS class for custom fields display instead of hardcoded
'*' with span.
Refactor the code to use "1.3-style" layout with form-container div and
fieldset, instead of html table

Use 'required' CSS class for mandatory fields display instead of
hardcoded '*' with span.
@dregad dregad merged commit 25695c7 into mantisbt:master Jan 1, 2016
dregad added a commit that referenced this pull request Jan 1, 2016
@dregad dregad deleted the required branch January 1, 2016 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant