diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-09 12:47:44 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-10 14:21:01 +0200 |
commit | 732e98eee7da718d282903844649d02f935fd2be (patch) | |
tree | 88b46f51898c93c979a52d0745f0d2f72837d1de /app/views/admin/runners | |
parent | 4cc85a58e8ca00f5a4ecbd2bca40a0cad867b817 (diff) | |
download | gitlab-ce-732e98eee7da718d282903844649d02f935fd2be.tar.gz |
Reuse runners edit form in admin and project area
Diffstat (limited to 'app/views/admin/runners')
-rw-r--r-- | app/views/admin/runners/show.html.haml | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/app/views/admin/runners/show.html.haml b/app/views/admin/runners/show.html.haml index 8700b4820cd..4dfb3ed05bb 100644 --- a/app/views/admin/runners/show.html.haml +++ b/app/views/admin/runners/show.html.haml @@ -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 |