diff options
author | Rémy Coutable <remy@rymai.me> | 2016-05-12 18:25:56 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-05-12 18:25:56 +0300 |
commit | 66824e09e23648923fea061e956c4c7a16730c75 (patch) | |
tree | 25d4d0aa42608d23b80ceca4acddbd006b0e4456 /app/views/admin | |
parent | 5298c3cc02865e8accff0fbacad36414ff38f883 (diff) | |
parent | a2934f45317ed64beb948b8487199251a987c4a1 (diff) |
Merge branch 'fix/reuse-runner-edit-form-in-admin-area' into 'master'
Reuse runners edit form in admin and project area
Reuse runners edit form in admin and project area.
![reuse_runner_form](/uploads/d16e3ee196151b68f584d947f38a7c29/reuse_runner_form.png)
See merge request !4094
Diffstat (limited to 'app/views/admin')
-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 |