summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-08-09 12:53:14 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-08-09 12:53:14 +0100
commit641d8ec7eac15ba4a91ab529e069cd175874ba57 (patch)
tree95a02db0bcdd3a29570140eb2e5eeb316fd0db88
parentc22bff8217d8f4c5de6a5f1b88abbaabb5d89c64 (diff)
downloadgitlab-ce-641d8ec7eac15ba4a91ab529e069cd175874ba57.tar.gz
Fix missed port
-rw-r--r--app/views/projects/mirrors/_mirror_repos_form.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/mirrors/_mirror_repos_form.html.haml b/app/views/projects/mirrors/_mirror_repos_form.html.haml
index 7927e459123..93994cb30ac 100644
--- a/app/views/projects/mirrors/_mirror_repos_form.html.haml
+++ b/app/views/projects/mirrors/_mirror_repos_form.html.haml
@@ -4,14 +4,14 @@
= label_tag :mirror_direction, _('Mirror direction'), class: 'label-light'
= select_tag :mirror_direction, options_for_select([[_('Push'), 'push']]), class: 'form-control js-mirror-direction', disabled: true
-= f.fields_for :remote_mirrors, @remote_mirror do |rm_f|
+= f.fields_for :remote_mirrors, @project.remote_mirrors.build do |rm_f|
= rm_f.hidden_field :enabled, value: '1'
= rm_f.hidden_field :url, class: 'js-mirror-url-hidden', required: true, pattern: "(#{protocols}):\/\/.+"
= rm_f.hidden_field :only_protected_branches, class: 'js-mirror-protected-hidden'
.form-group
= label_tag :auth_method, _('Authentication method'), class: 'label-bold'
- = select_tag :auth_method, options_for_select([[_('None'), 'none'], [_('Password'), 'password']], 'none'), { class: "form-control js-auth-method", disabled: true }
+ = select_tag :auth_method, options_for_select([[_('None'), 'none'], [_('Password'), 'password']], 'none'), { class: "form-control js-auth-method" }
.form-group.js-password-group.collapse
= label_tag :password, _('Password'), class: 'label-bold'