open-nomad/ui/app/templates/jobs/job/definition.hbs

23 lines
743 B
Handlebars
Raw Normal View History

{{page-title "Job " this.job.name " definition"}}
<JobSubnav @job={{this.job}} />
2018-07-25 22:19:43 +00:00
<section class="section">
{{#unless this.isEditing}}
<div class="boxed-section">
<div class="boxed-section-head">
Job Definition
<button class="button is-light is-compact pull-right" type="button" onclick={{action this.edit}} data-test-edit-job>Edit</button>
</div>
<div class="boxed-section-body is-full-bleed">
<JsonViewer data-test-definition-view @json={{this.definition}} />
</div>
2017-09-19 14:47:10 +00:00
</div>
{{else}}
<JobEditor
@job={{this.job}}
@cancelable={{true}}
@context="edit"
@onCancel={{action this.onCancel}}
@onSubmit={{action this.onSubmit}} />
{{/unless}}
2018-07-25 22:19:43 +00:00
</section>