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-02-19 14:02:25 -05:00
|
|
|
|
2014-10-20 18:25:44 -04:00
|
|
|
= render 'shared/group_form', f: f, autofocus: true
|
2013-02-19 14:02:25 -05:00
|
|
|
|
2014-05-20 09:36:51 -04:00
|
|
|
.form-group.group-description-holder
|
|
|
|
= f.label :avatar, "Group avatar", class: 'control-label'
|
|
|
|
.col-sm-10
|
2014-10-20 17:29:49 -04:00
|
|
|
= render 'shared/choose_group_avatar_button', f: f
|
2014-05-20 09:36:51 -04: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
|
2014-10-20 17:43:51 -04:00
|
|
|
= render 'shared/group_tips'
|
2013-06-07 10:41:01 -04:00
|
|
|
|
2013-02-19 14:02:25 -05:00
|
|
|
.form-actions
|
2014-06-24 02:45:38 -04:00
|
|
|
= f.submit 'Create group', class: "btn btn-create", tabindex: 3
|