2019-07-17 20:02:58 +00:00
|
|
|
{{title "Job " job.name " definition"}}
|
2018-07-25 22:19:43 +00:00
|
|
|
{{partial "jobs/job/subnav"}}
|
|
|
|
<section class="section">
|
2018-08-21 23:46:24 +00:00
|
|
|
{{#unless isEditing}}
|
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Job Definition
|
2018-08-23 17:26:20 +00:00
|
|
|
<button class="button is-light is-compact pull-right" type="button" onclick={{action edit}} data-test-edit-job>Edit</button>
|
2018-08-21 23:46:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-06-01 19:03:56 +00:00
|
|
|
<JsonViewer data-test-definition-view @json={{definition}} />
|
2018-08-21 23:46:24 +00:00
|
|
|
</div>
|
2017-09-19 14:47:10 +00:00
|
|
|
</div>
|
2018-08-21 23:46:24 +00:00
|
|
|
{{else}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<JobEditor
|
|
|
|
@job={{job}}
|
|
|
|
@cancelable={{true}}
|
|
|
|
@context="edit"
|
|
|
|
@onCancel={{action onCancel}}
|
|
|
|
@onSubmit={{action onSubmit}} />
|
2018-08-21 23:46:24 +00:00
|
|
|
{{/unless}}
|
2018-07-25 22:19:43 +00:00
|
|
|
</section>
|