Skip to content

Resolve "Admin > New user form > Error state > Inputs misaligned"

What does this MR do?

Fixes input alignment problem in user admin form when a validation error occurs.

Explanation

Rails wraps each invalid input + label in a <div class="form-errors">. This leads to incorrect columns alignment. With this fix we wrap the label in a <div class="col-sm-2 text-right">.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)

before:

Screen_Shot_2018-07-30_at_11.06.43_AM

after:

Screen_Shot_2018-08-09_at_12.28.04

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #49770 (closed)

Edited by Taurie Davis

Merge request reports