open-nomad/ui/app/templates/jobs/job/definition.hbs
Buck Doyle 2998deac50
Convert to angle bracket invocation (#8075)
This is mostly a direct application of the ember-angle-brackets-codemod.
I manually restored newlines in multi-line component invocations, usually
preserving file line length except for now-non-positional link-to @route.

I needed to rename task to taskState in some cases to avoid Ember
Concurrency naming conflicts.
2020-06-01 14:03:56 -05:00

23 lines
701 B
Handlebars

{{title "Job " job.name " definition"}}
{{partial "jobs/job/subnav"}}
<section class="section">
{{#unless 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 edit}} data-test-edit-job>Edit</button>
</div>
<div class="boxed-section-body is-full-bleed">
<JsonViewer data-test-definition-view @json={{definition}} />
</div>
</div>
{{else}}
<JobEditor
@job={{job}}
@cancelable={{true}}
@context="edit"
@onCancel={{action onCancel}}
@onSubmit={{action onSubmit}} />
{{/unless}}
</section>