summaryrefslogtreecommitdiff
path: root/app/views/shared/_group_form.html.haml
blob: fc1753ca082f0c47521dfb6ffdc711487f479d29 (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
- 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'

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

    - if @group.persisted?
      .alert.alert-warning.prepend-top-10
        %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.

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