2021-02-17 21:01:44 +00:00
|
|
|
{{page-title "Job " this.job.name " definition"}}
|
2020-07-09 20:19:07 +00:00
|
|
|
<JobSubnav @job={{this.job}} />
|
2018-07-25 22:19:43 +00:00
|
|
|
<section class="section">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#unless this.isEditing}}
|
2018-08-21 23:46:24 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Job Definition
|
2020-07-09 20:19:07 +00:00
|
|
|
<button class="button is-light is-compact pull-right" type="button" onclick={{action this.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-07-09 20:19:07 +00:00
|
|
|
<JsonViewer data-test-definition-view @json={{this.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
|
2020-07-09 20:19:07 +00:00
|
|
|
@job={{this.job}}
|
2020-06-01 19:03:56 +00:00
|
|
|
@cancelable={{true}}
|
|
|
|
@context="edit"
|
2020-07-09 20:19:07 +00:00
|
|
|
@onCancel={{action this.onCancel}}
|
|
|
|
@onSubmit={{action this.onSubmit}} />
|
2018-08-21 23:46:24 +00:00
|
|
|
{{/unless}}
|
2018-07-25 22:19:43 +00:00
|
|
|
</section>
|