Use select2 placeholder instead of blank option
This commit is contained in:
parent
9bad736fb3
commit
2aeb26bd88
|
@ -22,7 +22,7 @@
|
|||
.form-group
|
||||
= f.label :name, "Branch", class: 'control-label'
|
||||
.col-sm-10
|
||||
= f.select(:name, @project.open_branches.map { |br| [br.name, br.name] } , {include_blank: "Select branch"}, {class: "select2"})
|
||||
= f.select(:name, @project.open_branches.map { |br| [br.name, br.name] } , {include_blank: true}, {class: "select2", data: {placeholder: "Select branch"}})
|
||||
.form-group
|
||||
.col-sm-offset-2.col-sm-10
|
||||
.checkbox
|
||||
|
@ -33,4 +33,3 @@
|
|||
.form-actions
|
||||
= f.submit 'Protect', class: "btn-create btn"
|
||||
= render 'branches_list'
|
||||
|
||||
|
|
Loading…
Reference in New Issue