debian-mirror-gitlab/app/views/shared/runners/_form.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
2.8 KiB
Text
Raw Normal View History

2022-07-16 23:28:13 +05:30
= gitlab_ui_form_for runner, url: runner_form_url do |f|
2016-06-02 11:05:42 +05:30
= form_errors(runner)
2018-11-08 19:23:39 +05:30
.form-group.row
2018-11-20 20:47:30 +05:30
= label :active, _("Active"), class: 'col-form-label col-sm-2'
2016-06-02 11:05:42 +05:30
.col-sm-10
2022-07-16 23:28:13 +05:30
= f.gitlab_ui_checkbox_component :active, _("Paused runners don't accept new jobs")
2018-11-08 19:23:39 +05:30
.form-group.row
2018-11-20 20:47:30 +05:30
= label :protected, _("Protected"), class: 'col-form-label col-sm-2'
2018-03-17 18:26:18 +05:30
.col-sm-10
2022-07-16 23:28:13 +05:30
= 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'
2018-11-08 19:23:39 +05:30
.form-group.row
2018-11-20 20:47:30 +05:30
= label :run_untagged, _('Run untagged jobs'), class: 'col-form-label col-sm-2'
2016-06-02 11:05:42 +05:30
.col-sm-10
2022-07-16 23:28:13 +05:30
= f.gitlab_ui_checkbox_component :run_untagged, _('Indicates whether this runner can pick jobs without tags')
2018-10-15 14:42:47 +05:30
- unless runner.group_type?
2018-11-08 19:23:39 +05:30
.form-group.row
= label :locked, _('Lock to current projects'), class: 'col-form-label col-sm-2'
2018-10-15 14:42:47 +05:30
.col-sm-10
2022-07-16 23:28:13 +05:30
= f.gitlab_ui_checkbox_component :locked, _('When a runner is locked, it cannot be assigned to other projects')
2018-11-08 19:23:39 +05:30
.form-group.row
= label_tag :ip_address, class: 'col-form-label col-sm-2' do
2018-11-20 20:47:30 +05:30
= _('IP Address')
2018-03-27 19:54:05 +05:30
.col-sm-10
= f.text_field :ip_address, class: 'form-control', readonly: true
2018-11-08 19:23:39 +05:30
.form-group.row
= label_tag :description, class: 'col-form-label col-sm-2' do
2018-11-20 20:47:30 +05:30
= _('Description')
2016-06-02 11:05:42 +05:30
.col-sm-10
= f.text_field :description, class: 'form-control'
2018-11-08 19:23:39 +05:30
.form-group.row
= label_tag :maximum_timeout_human_readable, class: 'col-form-label col-sm-2' do
2018-11-20 20:47:30 +05:30
= _('Maximum job timeout')
2018-05-09 12:01:36 +05:30
.col-sm-10
= f.text_field :maximum_timeout_human_readable, class: 'form-control'
2021-03-08 18:12:59 +05:30
.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.')
2018-11-08 19:23:39 +05:30
.form-group.row
= label_tag :tag_list, class: 'col-form-label col-sm-2' do
2018-11-20 20:47:30 +05:30
= _('Tags')
2016-06-02 11:05:42 +05:30
.col-sm-10
2017-08-17 22:00:37 +05:30
= f.text_field :tag_list, value: runner.tag_list.sort.join(', '), class: 'form-control'
2021-03-08 18:12:59 +05:30
.form-text.text-muted= _('You can set up jobs to only use runners with specific tags. Separate tags with commas.')
2020-04-22 19:07:51 +05:30
- 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'
2016-06-02 11:05:42 +05:30
.form-actions
2021-04-29 21:17:54 +05:30
= f.submit _('Save changes'), class: 'gl-button btn btn-confirm'