diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-05 17:04:10 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-05 17:19:01 -0500 |
commit | f096cc0471267e2aee289b9b60212d5cb5d259af (patch) | |
tree | b0a7620d3d8d0219f6198ad6082897d2b99d854c /app/views/projects/protected_branches | |
parent | fe8ff714d5b4ee7270b13ebbf8586481871f4013 (diff) | |
download | gitlab-ce-f096cc0471267e2aee289b9b60212d5cb5d259af.tar.gz |
Set for for labels and ID for dropdowns on create form
Diffstat (limited to 'app/views/projects/protected_branches')
-rw-r--r-- | app/views/projects/protected_branches/_create_protected_branch.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/projects/protected_branches/_create_protected_branch.html.haml b/app/views/projects/protected_branches/_create_protected_branch.html.haml index 34bc465c356..85d0c494ba8 100644 --- a/app/views/projects/protected_branches/_create_protected_branch.html.haml +++ b/app/views/projects/protected_branches/_create_protected_branch.html.haml @@ -6,7 +6,7 @@ .panel-body .form-horizontal .form-group - %label.col-md-2.text-right + = f.label :name, class: 'col-md-2 text-right' do Branch: .col-md-10 = render partial: "dropdown", locals: { f: f } @@ -18,19 +18,19 @@ %code production/* are supported .form-group - %label.col-md-2.text-right + %label.col-md-2.text-right{ for: 'merge_access_level_attributes' } Allowed to merge: .col-md-10 = dropdown_tag('Select', options: { toggle_class: 'js-allowed-to-merge wide', - data: { field_name: 'protected_branch[merge_access_level_attributes][access_level]' }}) + data: { field_name: 'protected_branch[merge_access_level_attributes][access_level]', input_id: 'merge_access_level_attributes' }}) .form-group - %label.col-md-2.text-right + %label.col-md-2.text-right{ for: 'push_access_level_attributes' } Allowed to push: .col-md-10 = dropdown_tag('Select', options: { toggle_class: 'js-allowed-to-push wide', - data: { field_name: 'protected_branch[push_access_level_attributes][access_level]' }}) + data: { field_name: 'protected_branch[push_access_level_attributes][access_level]', input_id: 'push_access_level_attributes' }}) .panel-footer = f.submit 'Protect', class: 'btn-create btn', disabled: true |