new.html.haml 900 Bytes
%h3.page-title New Group
%hr
= form_for [:admin, @group] do |f|
  - if @group.errors.any?
    .alert.alert-danger
      %span= @group.errors.full_messages.first
  .form-group
    = f.label :name do
      Group name
    .col-sm-10
      = f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control left"
  .form-group.group-description-holder
    = f.label :description, "Details"
    .col-sm-10
      = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4

  .form-actions
    = f.submit 'Create group', class: "btn btn-create"

  %hr
  .padded
    %ul
      %li Group is kind of directory for several projects
      %li All created groups are private
      %li People within a group see only projects they have access to
      %li All projects of group will be stored in a group directory
      %li You will be able to move existing projects into group