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

_form.html.haml « runners « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 024b06fe97a80d359cee4f34a69719a0d58ea1f5 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
= gitlab_ui_form_for runner, url: runner_form_url do |f|
  = form_errors(runner)
  .form-group.row
    = label :active, _("Active"), class: 'col-form-label col-sm-2'
    .col-sm-10
      = f.gitlab_ui_checkbox_component :active, _("Paused runners don't accept new jobs")
  .form-group.row
    = label :protected, _("Protected"), class: 'col-form-label col-sm-2'
    .col-sm-10
      = f.gitlab_ui_checkbox_component :access_level, _('This runner will only run on pipelines triggered on protected branches'), checked_value: 'ref_protected', unchecked_value: 'not_protected'
  .form-group.row
    = label :run_untagged, _('Run untagged jobs'), class: 'col-form-label col-sm-2'
    .col-sm-10
      = f.gitlab_ui_checkbox_component :run_untagged, _('Indicates whether this runner can pick jobs without tags')
  - unless runner.group_type?
    .form-group.row
      = label :locked, _('Lock to current projects'), class: 'col-form-label col-sm-2'
      .col-sm-10
        = f.gitlab_ui_checkbox_component :locked, _('When a runner is locked, it cannot be assigned to other projects')
  .form-group.row
    = label_tag :ip_address, class: 'col-form-label col-sm-2' do
      = _('IP Address')
    .col-sm-10
      = f.text_field :ip_address, class: 'form-control', readonly: true
  .form-group.row
    = label_tag :description, class: 'col-form-label col-sm-2' do
      = _('Description')
    .col-sm-10
      = f.text_field :description, class: 'form-control'
  .form-group.row
    = label_tag :maximum_timeout_human_readable, class: 'col-form-label col-sm-2' do
      = _('Maximum job timeout')
    .col-sm-10
      = f.text_field :maximum_timeout_human_readable, class: 'form-control'
      .form-text.text-muted= _('Enter the number of seconds, or other human-readable input, like "1 hour". This timeout takes precedence over lower timeouts set for the project.')
  .form-group.row
    = label_tag :tag_list, class: 'col-form-label col-sm-2' do
      = _('Tags')
    .col-sm-10
      = f.text_field :tag_list, value: runner.tag_list.sort.join(', '), class: 'form-control'
      .form-text.text-muted= _('You can set up jobs to only use runners with specific tags. Separate tags with commas.')
  - if local_assigns[:in_gitlab_com_admin_context]
    .form-group.row
      = label_tag :public_projects_minutes_cost_factor, class: 'col-form-label col-sm-2' do
        = _('Public projects Minutes cost factor')
      .col-sm-10
        = f.text_field :public_projects_minutes_cost_factor, class: 'form-control'
    .form-group.row
      = label_tag :private_projects_minutes_cost_factor, class: 'col-form-label col-sm-2' do
        = _('Private projects Minutes cost factor')
      .col-sm-10
        = f.text_field :private_projects_minutes_cost_factor, class: 'form-control'
  .form-actions
    = f.submit _('Save changes'), class: 'gl-button btn btn-confirm'