summaryrefslogtreecommitdiff
path: root/app/views/admin/groups/edit.html.haml
blob: e68c97e2c596793118ba43501cd783167269ab6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%h3.page-title Edit Group
%hr
= form_for [:admin, @group] do |f|
  - if @group.errors.any?
    .alert.alert-danger
      %span= @group.errors.full_messages.first
  .form-group.group_name_holder
    = f.label :name do
      Group name
    .col-sm-10
      = f.text_field :name, placeholder: "Example Group", class: "input-lg"

  .form-group.group-description-holder
    = f.label :description, "Details"
    .col-sm-10
      = f.text_area :description, maxlength: 250, class: "input-lg js-gfm-input", rows: 4

  .form-group.group_name_holder
    = f.label :path do
      %span.cred Group path
    .col-sm-10
      = f.text_field :path, placeholder: "example-group", class: "input-lg danger"
      %ul.cred
        %li Changing group path can have unintended side effects.
        %li Renaming group path will rename directory for all related projects
        %li It will change web url for access group and group projects.
        %li It will change the git path to repositories under this group.

  .form-actions
    = f.submit 'Save changes', class: "btn btn-primary"
    = link_to  'Cancel', admin_groups_path, class: "btn btn-cancel"