2013-05-14 05:46:41 -04:00
|
|
|
.project-edit-container
|
|
|
|
.project-edit-errors
|
2013-05-14 05:56:03 -04:00
|
|
|
= render 'projects/errors'
|
2013-05-14 05:46:41 -04:00
|
|
|
.project-edit-content
|
|
|
|
= form_for @project, remote: true do |f|
|
2013-08-07 16:28:02 -04:00
|
|
|
.control-group.project_name_holder
|
2013-05-14 05:46:41 -04:00
|
|
|
= f.label :name do
|
|
|
|
Project name is
|
2013-08-07 16:28:02 -04:00
|
|
|
.controls
|
2013-08-07 16:40:29 -04:00
|
|
|
= f.text_field :name, placeholder: "Example Project", class: "input-xxlarge", tabindex: 1, autofocus: true
|
2013-05-14 05:46:41 -04:00
|
|
|
|
|
|
|
- if current_user.can_select_namespace?
|
2013-08-07 16:28:02 -04:00
|
|
|
.control-group
|
2013-05-14 05:46:41 -04:00
|
|
|
= f.label :namespace_id do
|
|
|
|
%span Namespace
|
2013-08-07 16:28:02 -04:00
|
|
|
.controls
|
2013-05-14 05:46:41 -04:00
|
|
|
= f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'chosen', tabindex: 2}
|
|
|
|
|
2013-08-07 16:28:02 -04:00
|
|
|
.control-group
|
|
|
|
.controls
|
2013-05-14 05:46:41 -04:00
|
|
|
= link_to "#", class: 'appear-link' do
|
|
|
|
%i.icon-upload-alt
|
|
|
|
%span Import existing repository?
|
2013-08-07 16:28:02 -04:00
|
|
|
.control-group.appear-data.import-url-data
|
2013-05-14 05:46:41 -04:00
|
|
|
= f.label :import_url do
|
|
|
|
%span Import existing repo
|
2013-08-07 16:28:02 -04:00
|
|
|
.controls
|
2013-05-14 05:46:41 -04:00
|
|
|
= f.text_field :import_url, class: 'xlarge', placeholder: 'https://github.com/randx/six.git'
|
|
|
|
.light
|
2013-07-29 06:46:00 -04:00
|
|
|
URL must be cloneable
|
2013-08-07 16:28:02 -04:00
|
|
|
.control-group
|
2013-07-29 14:06:59 -04:00
|
|
|
= f.label :description do
|
|
|
|
Description
|
|
|
|
%span.light (optional)
|
2013-08-07 16:28:02 -04:00
|
|
|
.controls
|
2013-07-29 14:06:59 -04:00
|
|
|
= f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250, tabindex: 3
|
2013-05-14 05:46:41 -04:00
|
|
|
|
|
|
|
%p.padded
|
|
|
|
New projects are private by default. You choose who can see the project and commit to repository.
|
2013-08-01 09:20:18 -04:00
|
|
|
.form-actions
|
|
|
|
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
|
2013-05-14 05:46:41 -04:00
|
|
|
|
2013-08-01 09:20:18 -04:00
|
|
|
- if current_user.can_create_group?
|
|
|
|
.pull-right
|
2013-08-07 16:28:02 -04:00
|
|
|
.controls.light
|
2013-08-01 09:20:18 -04:00
|
|
|
Need a group for several dependent projects?
|
|
|
|
= link_to new_group_path, class: "btn btn-tiny" do
|
|
|
|
Create a group
|
2013-05-14 05:46:41 -04:00
|
|
|
|
|
|
|
.save-project-loader.hide
|
2012-01-27 17:51:02 -05:00
|
|
|
%center
|
2012-08-30 15:15:34 -04:00
|
|
|
= image_tag "ajax_loader.gif"
|
2013-04-03 15:28:19 -04:00
|
|
|
%h3 Creating project & repository. Please wait a moment, this page will automatically refresh when ready.
|