diff options
author | kushalpandya <kushal@gitlab.com> | 2017-06-02 18:05:47 +0530 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-06-02 18:05:47 +0530 |
commit | 6838c16c49185fb72aa58a9c6591da4ec0fc7acb (patch) | |
tree | 65be7ba84571fe9de569f2bbafedb05bb61348c9 /app/views/shared/_field.html.haml | |
parent | b487a32cc0fc14e4c0977cb6ff298131818fea16 (diff) | |
download | gitlab-ce-6838c16c49185fb72aa58a9c6591da4ec0fc7acb.tar.gz |
Minor refactor based on review feedback
Diffstat (limited to 'app/views/shared/_field.html.haml')
-rw-r--r-- | app/views/shared/_field.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_field.html.haml b/app/views/shared/_field.html.haml index 3bda8cd5e9c..795447a9ca6 100644 --- a/app/views/shared/_field.html.haml +++ b/app/views/shared/_field.html.haml @@ -23,6 +23,6 @@ - elsif type == 'select' = form.select name, options_for_select(choices, value ? value : default_choice), {}, { class: "form-control" } - elsif type == 'password' - = form.password_field name, autocomplete: "new-password", class: "form-control", required: value.present? ? nil : :required + = form.password_field name, autocomplete: "new-password", class: "form-control", required: value.blank? && :required - if help %span.help-block= help |