gitlabhq/gitlabhq

View on GitHub
app/views/admin/groups/edit.html.haml

Summary

Maintainability
Test Coverage
%h3.page-title Edit Group
%hr
= form_for [:admin, @group] do |f|
  - if @group.errors.any?
    .alert.alert-error
      %span= @group.errors.full_messages.first
  .control-group.group_name_holder
    = f.label :name do
      Group name is
    .controls
      = f.text_field :name, placeholder: "Example Group", class: "input-xxlarge"

  .control-group.group-description-holder
    = f.label :description, "Details"
    .controls
      = f.text_area :description, maxlength: 250, class: "input-xxlarge js-gfm-input", rows: 4

  .control-group.group_name_holder
    = f.label :path do
      %span.cred Group path is
    .controls
      = f.text_field :path, placeholder: "example-group", class: "input-xxlarge 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"