Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_group_form.html.haml « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 89e176bb90904212d11d4c0da8d452bf2d120b83 (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
32
33
34
35
36
37
38
39
40
- parent = GroupFinder.new(current_user).execute(id: params[:parent_id] || @group.parent_id)
- group_path = root_url
- group_path << parent.full_path + '/' if parent
- if @group.persisted?
  .form-group.col-xs-12
    = f.label :name, class: 'label-light' do
      %span Group name
    = f.text_field :name, placeholder: 'open-source', class: 'form-control'

<<<<<<< HEAD
.form-group.col-xs-12
  = f.label :path, class: 'label-light' do
    %span Group path
  .input-group.gl-field-error-anchor
    .group-root-path.input-group-addon.has-tooltip{ title: group_path, :'data-placement' => 'bottom' }
      %span>= root_url
      - if parent
        %strong= parent.full_path + '/'
    = f.text_field :path, placeholder: 'open-source', class: 'form-control',
      autofocus: local_assigns[:autofocus] || false, required: true,
      pattern: Gitlab::Regex::NAMESPACE_REGEX_STR_JS,
      title: 'Please choose a group name with no special characters.',
      "data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
    - if parent
      = f.hidden_field :parent_id, value: parent.id

  - 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.col-xs-12
  = f.label :description, class: 'label-light' do
    Description
    %span.lighter (optional)
  = f.text_area :description, maxlength: 250,
      class: 'form-control js-gfm-input', rows: 4