diff options
author | Drew Blessing <drew.blessing@me.com> | 2014-10-16 20:34:19 +0400 |
---|---|---|
committer | Drew Blessing <drew.blessing@me.com> | 2014-10-28 13:20:36 +0300 |
commit | 776bca07cd4b3996a39035e90232c99599ed2663 (patch) | |
tree | c1b19469a059c2c5b5d4411eb4cacf4ee9109c1a /app/views/projects/services | |
parent | b23b78ada12d1bbff4ea4e4bf65a34b223aeb8b4 (diff) |
Add Atlassian Bamboo service
Diffstat (limited to 'app/views/projects/services')
-rw-r--r-- | app/views/projects/services/_form.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/services/_form.html.haml b/app/views/projects/services/_form.html.haml index 16d59d1fe9d..1151f22c7e8 100644 --- a/app/views/projects/services/_form.html.haml +++ b/app/views/projects/services/_form.html.haml @@ -28,7 +28,7 @@ - @service.fields.each do |field| - name = field[:name] - - value = @service.send(name) + - value = @service.send(name) unless field[:type] == 'password' - type = field[:type] - placeholder = field[:placeholder] - choices = field[:choices] @@ -45,6 +45,8 @@ = f.check_box name - 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' .form-actions = f.submit 'Save', class: 'btn btn-save' |