Fix visibility level on new project page

This commit is contained in:
blackst0ne 2017-03-11 19:02:21 +11:00
parent 69c1a9ae86
commit 245020a127
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
- page_title 'New Project' - page_title 'New Project'
- header_title "Projects", dashboard_projects_path - header_title "Projects", dashboard_projects_path
- visibility_level = params.try(:[], :project).try(:[], :visibility_level).to_i || default_project_visibility
.project-edit-container .project-edit-container
.project-edit-errors .project-edit-errors
@ -95,7 +96,7 @@
= f.label :visibility_level, class: 'label-light' do = f.label :visibility_level, class: 'label-light' do
Visibility Level Visibility Level
= link_to icon('question-circle'), help_page_path("public_access/public_access") = link_to icon('question-circle'), help_page_path("public_access/public_access")
= render 'shared/visibility_level', f: f, visibility_level: default_project_visibility, can_change_visibility_level: true, form_model: @project, with_label: false = render 'shared/visibility_level', f: f, visibility_level: visibility_level, can_change_visibility_level: true, form_model: @project, with_label: false
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4 = f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
= link_to 'Cancel', dashboard_projects_path, class: 'btn btn-cancel' = link_to 'Cancel', dashboard_projects_path, class: 'btn btn-cancel'

View file

@ -0,0 +1,4 @@
---
title: Fix visibility level on new project page
merge_request: 9885
author: blackst0ne