Reuse runners edit form in admin and project area
This commit is contained in:
parent
4cc85a58e8
commit
732e98eee7
|
@ -22,25 +22,9 @@
|
|||
%h4 This runner will process builds only from ASSIGNED projects
|
||||
%p You can't make this a shared runner.
|
||||
%hr
|
||||
= form_for @runner, url: admin_runner_path(@runner), html: { class: 'form-horizontal' } do |f|
|
||||
.form-group
|
||||
= label_tag :token, class: 'control-label' do
|
||||
Token
|
||||
.col-sm-10
|
||||
= f.text_field :token, class: 'form-control', readonly: true
|
||||
.form-group
|
||||
= label_tag :description, class: 'control-label' do
|
||||
Description
|
||||
.col-sm-10
|
||||
= f.text_field :description, class: 'form-control'
|
||||
.form-group
|
||||
= label_tag :tag_list, class: 'control-label' do
|
||||
Tags
|
||||
.col-sm-10
|
||||
= f.text_field :tag_list, value: @runner.tag_list.to_s, class: 'form-control'
|
||||
.help-block You can setup builds to only use runners with specific tags
|
||||
.form-actions
|
||||
= f.submit 'Save', class: 'btn btn-save'
|
||||
|
||||
.append-bottom-20
|
||||
= render '/projects/runners/form', runner: @runner, runner_form_url: admin_runner_path(@runner)
|
||||
|
||||
.row
|
||||
.col-md-6
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
= form_for runner, url: runner_form_url, html: { class: 'form-horizontal' } do |f|
|
||||
.form-group
|
||||
= label :active, "Active", class: 'control-label'
|
||||
.col-sm-10
|
||||
.checkbox
|
||||
= f.check_box :active
|
||||
%span.light Paused runners don't accept new builds
|
||||
.form-group
|
||||
= label_tag :token, class: 'control-label' do
|
||||
Token
|
||||
.col-sm-10
|
||||
= f.text_field :token, class: 'form-control', readonly: true
|
||||
.form-group
|
||||
= label_tag :description, class: 'control-label' do
|
||||
Description
|
||||
.col-sm-10
|
||||
= f.text_field :description, class: 'form-control'
|
||||
.form-group
|
||||
= label_tag :tag_list, class: 'control-label' do
|
||||
Tags
|
||||
.col-sm-10
|
||||
= f.text_field :tag_list, value: runner.tag_list.to_s, class: 'form-control'
|
||||
.help-block You can setup jobs to only use runners with specific tags
|
||||
.form-actions
|
||||
= f.submit 'Save changes', class: 'btn btn-save'
|
|
@ -2,28 +2,4 @@
|
|||
|
||||
%h4 Runner ##{@runner.id}
|
||||
%hr
|
||||
= form_for @runner, url: runner_path(@runner), html: { class: 'form-horizontal' } do |f|
|
||||
.form-group
|
||||
= label :active, "Active", class: 'control-label'
|
||||
.col-sm-10
|
||||
.checkbox
|
||||
= f.check_box :active
|
||||
%span.light Paused runners don't accept new builds
|
||||
.form-group
|
||||
= label_tag :token, class: 'control-label' do
|
||||
Token
|
||||
.col-sm-10
|
||||
= f.text_field :token, class: 'form-control', readonly: true
|
||||
.form-group
|
||||
= label_tag :description, class: 'control-label' do
|
||||
Description
|
||||
.col-sm-10
|
||||
= f.text_field :description, class: 'form-control'
|
||||
.form-group
|
||||
= label_tag :tag_list, class: 'control-label' do
|
||||
Tags
|
||||
.col-sm-10
|
||||
= f.text_field :tag_list, value: @runner.tag_list.to_s, class: 'form-control'
|
||||
.help-block You can setup jobs to only use runners with specific tags
|
||||
.form-actions
|
||||
= f.submit 'Save changes', class: 'btn btn-save'
|
||||
= render 'form', runner: @runner, runner_form_url: runner_path(@runner)
|
||||
|
|
Loading…
Reference in New Issue