2015-09-11 14:41:01 +05:30
|
|
|
- page_title 'New Group'
|
2015-12-23 02:04:40 +05:30
|
|
|
- header_title "Groups", dashboard_groups_path
|
|
|
|
|
|
|
|
%h3.page-title
|
|
|
|
New Group
|
|
|
|
%hr
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
= form_for @group, html: { class: 'group-form form-horizontal' } do |f|
|
2016-06-02 11:05:42 +05:30
|
|
|
= form_errors(@group)
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'shared/group_form', f: f, autofocus: true
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.form-group.group-description-holder
|
|
|
|
= f.label :avatar, "Group avatar", class: 'control-label'
|
|
|
|
.col-sm-10
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'shared/choose_group_avatar_button', f: f
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
= render 'shared/visibility_level', f: f, visibility_level: default_group_visibility, can_change_visibility_level: true, form_model: @group
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.form-group
|
2015-09-11 14:41:01 +05:30
|
|
|
.col-sm-offset-2.col-sm-10
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'shared/group_tips'
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.form-actions
|
|
|
|
= f.submit 'Create group', class: "btn btn-create", tabindex: 3
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to 'Cancel', dashboard_groups_path, class: 'btn btn-cancel'
|