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:
authorMarin Jankovski <maxlazio@gmail.com>2015-03-12 20:10:19 +0300
committerMarin Jankovski <maxlazio@gmail.com>2015-03-12 20:10:19 +0300
commita1f5ae98e2afde84b028d17b489d7461f64a03d9 (patch)
treea835ac09b2eb8da0f2915acd7353a02c404c14ef /app/views/projects/services/_form.html.haml
parent5d27b23dddde5b42f818fae071a8a761ed4b5ddc (diff)
Show asterisks instead of password in service edit form.
Diffstat (limited to 'app/views/projects/services/_form.html.haml')
-rw-r--r--app/views/projects/services/_form.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/services/_form.html.haml b/app/views/projects/services/_form.html.haml
index eda59e6708b..3492dd5babd 100644
--- a/app/views/projects/services/_form.html.haml
+++ b/app/views/projects/services/_form.html.haml
@@ -75,7 +75,7 @@
- @service.fields.each do |field|
- name = field[:name]
- title = field[:title] || name.humanize
- - value = @service.send(name) unless field[:type] == 'password'
+ - value = service_field_value(field[:type], @service.send(name))
- type = field[:type]
- placeholder = field[:placeholder]
- choices = field[:choices]
@@ -94,7 +94,7 @@
- elsif type == 'select'
= f.select name, options_for_select(choices, value ? value : default_choice), {}, { class: "form-control" }
- elsif type == 'password'
- = f.password_field name, class: 'form-control'
+ = f.password_field name, placeholder: value, class: 'form-control'
- if help
%span.help-block= help