96ea5b799a
1. Listing, filtering by action and searching by source name and destination name 2. Edit/Create page, edits ping the API double fine, need to work through creates and deletes 3. Currently uses a `Precedence` intention keyname that doesn't yet exist in the real API
40 lines
1.2 KiB
Handlebars
40 lines
1.2 KiB
Handlebars
{{#app-view class="acl edit" loading=isLoading}}
|
|
{{#block-slot 'breadcrumbs'}}
|
|
<ol>
|
|
<li><a href={{href-to 'dc.intentions'}}>All Intentions</a></li>
|
|
</ol>
|
|
{{/block-slot}}
|
|
{{#block-slot 'header'}}
|
|
<h1>
|
|
{{#if item.ID }}
|
|
Edit Intention
|
|
{{else}}
|
|
New Intention
|
|
{{/if}}
|
|
</h1>
|
|
{{/block-slot}}
|
|
{{#block-slot 'actions'}}
|
|
{{#if (not create) }}
|
|
{{#feedback-dialog type='inline'}}
|
|
{{#block-slot 'action' as |success error|}}
|
|
{{#copy-button success=(action success) error=(action error) clipboardText=item.ID title='copy UUID to clipboard'}}
|
|
Copy UUID
|
|
{{/copy-button}}
|
|
{{/block-slot}}
|
|
{{#block-slot 'success'}}
|
|
<p>
|
|
Copied UUID!
|
|
</p>
|
|
{{/block-slot}}
|
|
{{#block-slot 'error'}}
|
|
<p>
|
|
Sorry, something went wrong!
|
|
</p>
|
|
{{/block-slot}}
|
|
{{/feedback-dialog}}
|
|
{{/if}}
|
|
{{/block-slot}}
|
|
{{#block-slot 'content'}}
|
|
{{ partial 'dc/intentions/form'}}
|
|
{{/block-slot}}
|
|
{{/app-view}} |