diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-09 13:47:44 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-10 15:21:01 +0300 |
commit | 732e98eee7da718d282903844649d02f935fd2be (patch) | |
tree | 88b46f51898c93c979a52d0745f0d2f72837d1de /app/views/projects/runners/edit.html.haml | |
parent | 4cc85a58e8ca00f5a4ecbd2bca40a0cad867b817 (diff) |
Reuse runners edit form in admin and project area
Diffstat (limited to 'app/views/projects/runners/edit.html.haml')
-rw-r--r-- | app/views/projects/runners/edit.html.haml | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/app/views/projects/runners/edit.html.haml b/app/views/projects/runners/edit.html.haml index eba03028af8..771947d7908 100644 --- a/app/views/projects/runners/edit.html.haml +++ b/app/views/projects/runners/edit.html.haml @@ -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) |