2014-01-08 11:39:03 -05:00
|
|
|
= form_for @group, html: { class: 'group-form form-horizontal' } do |f|
|
2013-01-24 10:47:09 -05:00
|
|
|
- if @group.errors.any?
|
2013-12-31 09:34:14 -05:00
|
|
|
.alert.alert-danger
|
2013-01-24 10:47:09 -05:00
|
|
|
%span= @group.errors.full_messages.first
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2014-01-08 11:39:03 -05:00
|
|
|
= f.label :name, class: 'control-label' do
|
2013-10-18 00:28:49 -04:00
|
|
|
Group name
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2014-01-08 11:39:03 -05:00
|
|
|
= f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control"
|
2013-02-19 14:02:25 -05:00
|
|
|
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group.group-description-holder
|
2014-01-08 11:39:03 -05:00
|
|
|
= f.label :description, "Details", class: 'control-label'
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2014-01-01 15:11:18 -05:00
|
|
|
= f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4
|
2013-02-19 14:02:25 -05:00
|
|
|
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2014-01-08 11:39:03 -05:00
|
|
|
.col-sm-2
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2013-06-07 10:41:01 -04:00
|
|
|
%ul
|
2013-10-23 11:33:29 -04:00
|
|
|
%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-06-07 10:41:01 -04:00
|
|
|
|
2013-02-19 14:02:25 -05:00
|
|
|
.form-actions
|
2013-03-01 09:26:26 -05:00
|
|
|
= f.submit 'Create group', class: "btn btn-create"
|
2013-02-19 14:02:25 -05:00
|
|
|
|
|
|
|
|