BigW Consortium Gitlab

_group_form.html.haml 1.17 KB
Newer Older
1 2 3 4 5 6 7
- if @group.persisted?
  .form-group
    = f.label :name, class: 'control-label' do
      Group name
    .col-sm-10
      = f.text_field :name, placeholder: 'open-source', class: 'form-control'

Ciro Santilli committed
8
.form-group
9 10
  = f.label :path, class: 'control-label' do
    Group path
Ciro Santilli committed
11
  .col-sm-10
12
    .input-group.gl-field-error-anchor
13 14 15
      .input-group-addon
        = root_url
      = f.text_field :path, placeholder: 'open-source', class: 'form-control',
16 17 18
        autofocus: local_assigns[:autofocus] || false,  pattern: "[a-zA-Z0-9-_]+",
        required: true, title: 'Please choose a group name with no special characters.'

19
    - if @group.persisted?
20
      .alert.alert-warning.prepend-top-10
21 22 23 24 25
        %ul
          %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.
Ciro Santilli committed
26 27

.form-group.group-description-holder
28
  = f.label :description, class: 'control-label'
Ciro Santilli committed
29 30 31
  .col-sm-10
    = f.text_area :description, maxlength: 250,
        class: 'form-control js-gfm-input', rows: 4