2018-04-12 16:11:22 -04:00
= form_for runner, url: runner_form_url do |f|
2016-05-18 11:23:26 -04:00
= form_errors(runner)
2018-04-12 16:11:22 -04:00
.form-group.row
2018-08-15 00:34:24 -04:00
= label :active, _("Active"), class: 'col-form-label col-sm-2'
2016-05-09 06:47:44 -04:00
.col-sm-10
2018-04-11 14:05:57 -04:00
.form-check
2018-05-31 15:20:46 -04:00
= f.check_box :active, { class: 'form-check-input' }
2018-08-15 00:34:24 -04:00
%label.light{ for: :runner_active }= _("Paused Runners don't accept new jobs")
2018-04-12 16:11:22 -04:00
.form-group.row
2018-08-15 00:34:24 -04:00
= label :protected, _("Protected"), class: 'col-form-label col-sm-2'
2017-07-31 08:59:04 -04:00
.col-sm-10
2018-04-11 14:05:57 -04:00
.form-check
2018-05-31 15:20:46 -04:00
= f.check_box :access_level, { class: 'form-check-input' }, 'ref_protected', 'not_protected'
2018-08-15 00:34:24 -04:00
%label.light{ for: :runner_access_level }= _('This runner will only run on pipelines triggered on protected branches')
2018-04-12 16:11:22 -04:00
.form-group.row
2018-08-15 00:34:24 -04:00
= label :run_untagged, _('Run untagged jobs'), class: 'col-form-label col-sm-2'
2016-05-04 08:40:03 -04:00
.col-sm-10
2018-04-11 14:05:57 -04:00
.form-check
2018-05-31 15:20:46 -04:00
= f.check_box :run_untagged, { class: 'form-check-input' }
2018-08-15 00:34:24 -04:00
%label.light{ for: :runner_run_untagged }= _('Indicates whether this runner can pick jobs without tags')
2018-05-04 07:59:19 -04:00
- unless runner.group_type?
2018-05-08 11:49:30 -04:00
.form-group.row
2018-05-10 12:00:33 -04:00
= label :locked, _('Lock to current projects'), class: 'col-form-label col-sm-2'
2018-05-04 07:59:19 -04:00
.col-sm-10
2018-05-08 11:49:30 -04:00
.form-check
2018-05-31 15:20:46 -04:00
= f.check_box :locked, { class: 'form-check-input' }
2018-08-15 00:34:24 -04:00
%label.light{ for: :runner_locked }= _('When a runner is locked, it cannot be assigned to other projects')
2018-04-12 16:11:22 -04:00
.form-group.row
2018-04-12 19:16:56 -04:00
= label_tag :token, class: 'col-form-label col-sm-2' do
2018-08-15 00:34:24 -04:00
= _('Token')
2016-05-09 06:47:44 -04:00
.col-sm-10
= f.text_field :token, class: 'form-control', readonly: true
2018-04-12 16:11:22 -04:00
.form-group.row
2018-04-12 19:16:56 -04:00
= label_tag :ip_address, class: 'col-form-label col-sm-2' do
2018-08-15 00:34:24 -04:00
= _('IP Address')
2018-02-25 22:31:36 -05:00
.col-sm-10
= f.text_field :ip_address, class: 'form-control', readonly: true
2018-04-12 16:11:22 -04:00
.form-group.row
2018-04-12 19:16:56 -04:00
= label_tag :description, class: 'col-form-label col-sm-2' do
2018-08-15 00:34:24 -04:00
= _('Description')
2016-05-09 06:47:44 -04:00
.col-sm-10
= f.text_field :description, class: 'form-control'
2018-04-12 16:11:22 -04:00
.form-group.row
2018-04-12 19:16:56 -04:00
= label_tag :maximum_timeout_human_readable, class: 'col-form-label col-sm-2' do
2018-08-15 00:34:24 -04:00
= _('Maximum job timeout')
2018-02-19 12:41:50 -05:00
.col-sm-10
2018-03-06 10:14:23 -05:00
= f.text_field :maximum_timeout_human_readable, class: 'form-control'
2018-12-05 07:09:05 -05:00
.form-text.text-muted= _('This timeout will take precedence when lower than project-defined timeout and accepts a human readable time input language like "1 hour". Values without specification represent seconds.')
2018-04-12 16:11:22 -04:00
.form-group.row
2018-04-12 19:16:56 -04:00
= label_tag :tag_list, class: 'col-form-label col-sm-2' do
2018-08-15 00:34:24 -04:00
= _('Tags')
2016-05-09 06:47:44 -04:00
.col-sm-10
2017-02-14 17:28:35 -05:00
= f.text_field :tag_list, value: runner.tag_list.sort.join(', '), class: 'form-control'
2018-09-19 09:04:09 -04:00
.form-text.text-muted= _('You can set up jobs to only use Runners with specific tags. Separate tags with commas.')
2016-05-09 06:47:44 -04:00
.form-actions
2018-08-15 00:34:24 -04:00
= f.submit _('Save changes'), class: 'btn btn-success'