2014-11-06 22:24:33 +00:00
|
|
|
-set_meta_tags title: [title_object(@group), t('layout.groups.edit')]
|
|
|
|
|
|
|
|
= render 'groups/base/submenu'
|
|
|
|
|
|
|
|
.container.col-md-offset-2.col-md-8
|
|
|
|
.row
|
|
|
|
= simple_form_for @group,
|
2014-11-07 04:08:36 +00:00
|
|
|
html: { class: 'form-horizontal' },
|
2014-11-06 22:24:33 +00:00
|
|
|
url: profile_group_path(@group),
|
|
|
|
wrapper: :horizontal_form,
|
2014-11-07 04:08:36 +00:00
|
|
|
wrapper_mappings: { boolean: :horizontal_boolean,
|
|
|
|
file: :horizontal_file_input } do |f|
|
2014-11-06 22:24:33 +00:00
|
|
|
|
|
|
|
= render 'form', f: f
|
|
|
|
|
|
|
|
- if can? :destroy, @group
|
|
|
|
.row
|
|
|
|
hr
|
|
|
|
.alert.alert-danger
|
|
|
|
= t('layout.groups.delete_warning')
|
|
|
|
= link_to t('layout.delete'),
|
|
|
|
profile_group_path(@group),
|
|
|
|
method: :delete,
|
|
|
|
data: { confirm: t("layout.groups.confirm_delete") },
|
|
|
|
class: 'btn btn-danger'
|
|
|
|
|
|
|
|
|
|
|
|
/ = form_for @group, url: profile_group_path(@group) do |f|
|
|
|
|
/ = render "form", f: f
|
|
|
|
|
|
|
|
/ .hr
|
|
|
|
/ .groups-profile= image_tag('code.png')
|
|
|
|
/ .groups-profile= link_to t("layout.groups.public_profile"), @group
|
|
|
|
/ .both
|
|
|
|
/ .hr
|
|
|
|
/ .leftside= t("layout.groups.delete_warning")
|
|
|
|
/ .rightside
|
|
|
|
/ = link_to t("layout.delete"), profile_group_path(@group), method: :delete, data: { confirm: t("layout.groups.confirm_delete") }, class: 'button' if can? :destroy, @group
|
|
|
|
/ .both
|
|
|
|
|
|
|
|
/ - content_for :sidebar, render('sidebar')
|