diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-07-13 14:32:14 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-07-13 14:32:14 +0300 |
commit | 057d45fb23fdbc44636ffd9f352d66cef76c4d6a (patch) | |
tree | be3b249cff36dd4c45b7735b08f922e08653cbb7 /app/views/shared/_field.html.haml | |
parent | 31565d78906577bf8582982e5492166e8edd3218 (diff) |
Use password field default password masking.
Diffstat (limited to 'app/views/shared/_field.html.haml')
-rw-r--r-- | app/views/shared/_field.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/_field.html.haml b/app/views/shared/_field.html.haml index 30d37dceb30..45ec49280d2 100644 --- a/app/views/shared/_field.html.haml +++ b/app/views/shared/_field.html.haml @@ -1,6 +1,6 @@ - name = field[:name] - title = field[:title] || name.humanize -- value = service_field_value(field[:type], @service.send(name)) +- value = @service.send(name) - type = field[:type] - placeholder = field[:placeholder] - choices = field[:choices] @@ -19,6 +19,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, placeholder: value, class: 'form-control' + = form.password_field name, value: value, class: 'form-control' - if help %span.help-block= help |