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

57 lines
2.4 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
= 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
= label :active, "Active", class: 'col-form-label col-sm-2'
2016-06-02 11:05:42 +05:30
.col-sm-10
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :active, { class: 'form-check-input' }
2017-08-17 22:00:37 +05:30
%span.light Paused Runners don't accept new jobs
2018-11-08 19:23:39 +05:30
.form-group.row
= label :protected, "Protected", class: 'col-form-label col-sm-2'
2018-03-17 18:26:18 +05:30
.col-sm-10
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :access_level, { class: 'form-check-input' }, 'ref_protected', 'not_protected'
2018-03-17 18:26:18 +05:30
%span.light This runner will only run on pipelines triggered on protected branches
2018-11-08 19:23:39 +05:30
.form-group.row
= label :run_untagged, 'Run untagged jobs', class: 'col-form-label col-sm-2'
2016-06-02 11:05:42 +05:30
.col-sm-10
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :run_untagged, { class: 'form-check-input' }
2016-06-02 11:05:42 +05:30
%span.light 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
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :locked, { class: 'form-check-input' }
%span.light= _('When a runner is locked, it cannot be assigned to other projects')
.form-group.row
= label_tag :token, class: 'col-form-label col-sm-2' do
2016-06-02 11:05:42 +05:30
Token
.col-sm-10
= f.text_field :token, class: 'form-control', readonly: true
2018-11-08 19:23:39 +05:30
.form-group.row
= label_tag :ip_address, class: 'col-form-label col-sm-2' do
2018-03-27 19:54:05 +05:30
IP Address
.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
2016-06-02 11:05:42 +05:30
Description
.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-05-09 12:01:36 +05:30
Maximum job timeout
.col-sm-10
= f.text_field :maximum_timeout_human_readable, class: 'form-control'
2018-11-08 19:23:39 +05:30
.form-text.text-muted This timeout will take precedence when lower than Project-defined timeout
.form-group.row
= label_tag :tag_list, class: 'col-form-label col-sm-2' do
2016-06-02 11:05:42 +05:30
Tags
.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'
2018-11-08 19:23:39 +05:30
.form-text.text-muted You can setup jobs to only use Runners with specific tags. Separate tags with commas.
2016-06-02 11:05:42 +05:30
.form-actions
= f.submit 'Save changes', class: 'btn btn-save'