2015-05-01 08:39:11 +00:00
|
|
|
- page_title 'New Group'
|
|
|
|
- header_title 'New Group'
|
2014-01-08 16:39:03 +00:00
|
|
|
= form_for @group, html: { class: 'group-form form-horizontal' } do |f|
|
2013-01-24 15:47:09 +00:00
|
|
|
- if @group.errors.any?
|
2013-12-31 14:34:14 +00:00
|
|
|
.alert.alert-danger
|
2013-01-24 15:47:09 +00:00
|
|
|
%span= @group.errors.full_messages.first
|
2013-02-19 19:02:25 +00:00
|
|
|
|
2014-10-20 22:25:44 +00:00
|
|
|
= render 'shared/group_form', f: f, autofocus: true
|
2013-02-19 19:02:25 +00:00
|
|
|
|
2014-05-20 13:36:51 +00:00
|
|
|
.form-group.group-description-holder
|
|
|
|
= f.label :avatar, "Group avatar", class: 'control-label'
|
|
|
|
.col-sm-10
|
2014-10-20 21:29:49 +00:00
|
|
|
= render 'shared/choose_group_avatar_button', f: f
|
2014-05-20 13:36:51 +00:00
|
|
|
|
2013-12-30 23:27:02 +00:00
|
|
|
.form-group
|
2015-06-15 22:48:54 +00:00
|
|
|
.col-sm-offset-2.col-sm-10
|
2014-10-20 21:43:51 +00:00
|
|
|
= render 'shared/group_tips'
|
2013-06-07 14:41:01 +00:00
|
|
|
|
2013-02-19 19:02:25 +00:00
|
|
|
.form-actions
|
2014-06-24 06:45:38 +00:00
|
|
|
= f.submit 'Create group', class: "btn btn-create", tabindex: 3
|