Fix direction select disabled

This commit is contained in:
Luke Bennett 2018-08-02 10:37:20 +01:00
parent b2363b9418
commit 5f1dfa9a22
No known key found for this signature in database
GPG Key ID: A738E9C68D3BF31A
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
.form-group
= label_tag :mirror_direction, _('Mirror direction'), class: 'label-light'
= select_tag :mirror_direction, options_for_select(options), class: 'form-control js-mirror-direction', disabled: "#{'disabled' if options.count == 1}"
= select_tag :mirror_direction, options_for_select(options), class: 'form-control js-mirror-direction', disabled: options.count == 1
= render 'projects/mirrors/mirror_repos_form', can_push: can_push, can_pull: can_pull, f: f

View File

@ -7,7 +7,7 @@
.form-group
= label_tag :auth_method, _('Authentication method'), class: 'label-bold'
= select_tag :auth_method, options_for_select([[_('Password'), 'password']], 'password'), { class: "form-control js-auth-method", disabled: 'disabled' }
= select_tag :auth_method, options_for_select([[_('Password'), 'password']], 'password'), { class: "form-control js-auth-method", disabled: true }
.form-group
= label_tag :password, _('Password'), class: 'label-bold'