gitlab-org--gitlab-foss/app/views/groups/new.html.haml

39 lines
1.4 KiB
Plaintext
Raw Normal View History

= form_for @group, html: { class: 'group-form form-horizontal' } do |f|
2013-01-24 15:47:09 +00:00
- if @group.errors.any?
.alert.alert-danger
2013-01-24 15:47:09 +00:00
%span= @group.errors.full_messages.first
.form-group
= f.label :name, class: 'control-label' do
2013-10-18 04:28:49 +00:00
Group name
.col-sm-10
2014-05-18 21:21:51 +00:00
= f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control", tabindex: 1, autofocus: true
2013-02-19 19:02:25 +00:00
.form-group.group-description-holder
= f.label :description, "Details", class: 'control-label'
.col-sm-10
2014-05-18 21:21:51 +00:00
= f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4, tabindex: 2
2013-02-19 19:02:25 +00:00
.form-group.group-description-holder
= f.label :avatar, "Group avatar", class: 'control-label'
.col-sm-10
%a.choose-btn.btn.btn-small.js-choose-group-avatar-button
2014-10-01 22:21:29 +00:00
%i.fa.fa-paperclip
%span Choose File ...
 
%span.file_name.js-avatar-filename File name...
= f.file_field :avatar, class: "js-group-avatar-input hidden"
.light The maximum file size allowed is 100KB.
.form-group
.col-sm-2
.col-sm-10
%ul
%li A group is a collection of several projects
%li Groups are private by default
%li Members of a group may only view projects they have permission to access
%li Group project URLs are prefixed with the group namespace
%li Existing projects may be moved into a group
2013-02-19 19:02:25 +00:00
.form-actions
= f.submit 'Create group', class: "btn btn-create", tabindex: 3