rosa-build/app/views/groups/profile/edit.html.slim

27 lines
947 B
Plaintext

-set_meta_tags title: [title_object(@group), t('layout.groups.edit')]
= render 'groups/base/submenu'
.row
.col-md-offset-2.col-md-8
rd-widget
rd-widget-header title=t('layout.groups.edit')
rd-widget-body
= simple_form_for @group,
html: { class: 'form-horizontal' },
url: profile_group_path(@group),
wrapper: :horizontal_form,
wrapper_mappings: { boolean: :horizontal_boolean,
file: :horizontal_file_input } do |f|
= render 'form', f: f
- if policy(@group).destroy?
.row.top-space
.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'