2013-08-12 14:21:57 +00:00
|
|
|
.project-edit-container
|
2013-05-14 09:46:41 +00:00
|
|
|
.project-edit-errors
|
2013-05-14 09:56:03 +00:00
|
|
|
= render 'projects/errors'
|
2013-05-14 09:46:41 +00:00
|
|
|
.project-edit-content
|
2013-09-13 12:39:04 +00:00
|
|
|
|
2013-05-14 09:46:41 +00:00
|
|
|
= form_for @project, remote: true do |f|
|
2013-08-14 10:23:12 +00:00
|
|
|
.control-group.project-name-holder
|
2013-05-14 09:46:41 +00:00
|
|
|
= f.label :name do
|
2013-10-18 04:28:49 +00:00
|
|
|
%strong Project name
|
2013-08-07 20:28:02 +00:00
|
|
|
.controls
|
2013-08-08 08:57:34 +00:00
|
|
|
= f.text_field :name, placeholder: "Example Project", class: "input-xlarge", tabindex: 1, autofocus: true
|
2013-08-14 10:23:12 +00:00
|
|
|
%span.help-inline
|
|
|
|
= link_to "#", class: 'js-toggle-visibility-link' do
|
2013-08-14 11:14:23 +00:00
|
|
|
%span Customize repository name?
|
2013-08-14 10:23:12 +00:00
|
|
|
|
2013-12-30 22:38:53 +00:00
|
|
|
.control-group.js-toggle-visibility-container.gl-hide
|
2013-08-14 10:23:12 +00:00
|
|
|
= f.label :path do
|
|
|
|
%span Repository name
|
|
|
|
.controls
|
|
|
|
.input-append
|
|
|
|
= f.text_field :path
|
|
|
|
%span.add-on .git
|
|
|
|
|
2013-05-14 09:46:41 +00:00
|
|
|
|
|
|
|
- if current_user.can_select_namespace?
|
2013-08-07 20:28:02 +00:00
|
|
|
.control-group
|
2013-05-14 09:46:41 +00:00
|
|
|
= f.label :namespace_id do
|
|
|
|
%span Namespace
|
2013-08-07 20:28:02 +00:00
|
|
|
.controls
|
2013-05-14 09:46:41 +00:00
|
|
|
= f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'chosen', tabindex: 2}
|
|
|
|
|
2013-08-07 20:28:02 +00:00
|
|
|
.control-group
|
|
|
|
.controls
|
2013-05-14 09:46:41 +00:00
|
|
|
= link_to "#", class: 'appear-link' do
|
|
|
|
%i.icon-upload-alt
|
|
|
|
%span Import existing repository?
|
2013-08-07 20:28:02 +00:00
|
|
|
.control-group.appear-data.import-url-data
|
2013-05-14 09:46:41 +00:00
|
|
|
= f.label :import_url do
|
|
|
|
%span Import existing repo
|
2013-08-07 20:28:02 +00:00
|
|
|
.controls
|
2013-08-08 08:57:34 +00:00
|
|
|
= f.text_field :import_url, class: 'input-xlarge', placeholder: 'https://github.com/randx/six.git'
|
2013-05-14 09:46:41 +00:00
|
|
|
.light
|
2013-07-29 10:46:00 +00:00
|
|
|
URL must be cloneable
|
2013-08-07 20:28:02 +00:00
|
|
|
.control-group
|
2013-07-29 18:06:59 +00:00
|
|
|
= f.label :description do
|
|
|
|
Description
|
|
|
|
%span.light (optional)
|
2013-08-07 20:28:02 +00:00
|
|
|
.controls
|
2013-10-18 04:29:39 +00:00
|
|
|
= f.text_area :description, placeholder: "Awesome project", class: "input-xlarge", rows: 3, maxlength: 250, tabindex: 3
|
2013-11-06 15:13:21 +00:00
|
|
|
= render "visibility_level", f: f, visibility_level: gitlab_config.default_projects_features.visibility_level, can_change_visibility_level: true
|
2013-05-14 09:46:41 +00:00
|
|
|
|
2013-08-01 13:20:18 +00:00
|
|
|
.form-actions
|
|
|
|
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
|
2013-05-14 09:46:41 +00:00
|
|
|
|
2013-08-01 13:20:18 +00:00
|
|
|
- if current_user.can_create_group?
|
|
|
|
.pull-right
|
2013-08-07 20:28:02 +00:00
|
|
|
.controls.light
|
2013-08-01 13:20:18 +00:00
|
|
|
Need a group for several dependent projects?
|
|
|
|
= link_to new_group_path, class: "btn btn-tiny" do
|
|
|
|
Create a group
|
2013-05-14 09:46:41 +00:00
|
|
|
|
2013-12-30 22:38:53 +00:00
|
|
|
.save-project-loader.gl-hide
|
2012-01-27 22:51:02 +00:00
|
|
|
%center
|
2012-08-30 19:15:34 +00:00
|
|
|
= image_tag "ajax_loader.gif"
|
2013-08-12 14:21:57 +00:00
|
|
|
%h3 Creating project & repository.
|
|
|
|
%p Please wait a moment, this page will automatically refresh when ready.
|