Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pandya <kushalspandya@gmail.com>2017-05-22 10:49:58 +0300
committerPhil Hughes <me@iamphill.com>2017-05-22 10:49:58 +0300
commitd0a25eb044942a078c28b96b43d2fc7e92dcc782 (patch)
tree20a593fb0a51078ad769a4bddad0c6579173ea97 /app/views/shared
parent2079253f4d9099d3cab0e4451875b28c6665e4b2 (diff)
Show password field mask while editing service settings
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_field.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/_field.html.haml b/app/views/shared/_field.html.haml
index 8d6e16f74c3..d74b0043949 100644
--- a/app/views/shared/_field.html.haml
+++ b/app/views/shared/_field.html.haml
@@ -9,7 +9,7 @@
.form-group
- if type == "password" && value.present?
- = form.label name, "Change #{title}", class: "control-label"
+ = form.label name, "Enter new #{title.downcase}", class: "control-label"
- else
= form.label name, title, class: "control-label"
.col-sm-10
@@ -22,6 +22,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'
+ = form.password_field name, autocomplete: "new-password", class: "form-control"
- if help
%span.help-block= help