mirror of
https://github.com/status-im/consul.git
synced 2025-01-13 07:14:37 +00:00
d0405ba8b9
* Move almost everything to use %frames * Fix pill styles of ACL types * Remove horizontal scrollbars from dom recycling scroller component * Make text areas look ok in Firefox * Remove ember-bulma-css * New form elements, break out %toggle * %button design tweaks * %form-element design tweaks * Better hashicorp logo * Small screen CSS improvements (#4624) 1. Reduce header size when there are no breadcrumbs 2. Make the filters toggleable, closed by default 3. Reduce the size of the footer on small screens 4. Hide all non-primary columns for forms 5. Slightly change the layout of various items, mainly buttons within forms 6. Make some confirmation dialogs work vertically on small screens. Guessing we might be better just using native confirmations on small screens
86 lines
3.6 KiB
Handlebars
86 lines
3.6 KiB
Handlebars
{{#app-view class="intention list"}}
|
|
{{#block-slot 'notification' as |status type|}}
|
|
{{partial 'dc/intentions/notifications'}}
|
|
{{/block-slot}}
|
|
{{#block-slot 'header'}}
|
|
<h1>
|
|
Intentions
|
|
</h1>
|
|
<label for="toolbar-toggle"></label>
|
|
{{/block-slot}}
|
|
{{#block-slot 'actions'}}
|
|
<a data-test-create href="{{href-to 'dc.intentions.create'}}" class="type-create">Create</a>
|
|
{{/block-slot}}
|
|
{{#block-slot 'toolbar'}}
|
|
{{#if (gt items.length 0) }}
|
|
{{intention-filter filters=actionFilters search=filters.s type=filters.action onchange=(action 'filter')}}
|
|
{{/if}}
|
|
{{/block-slot}}
|
|
{{#block-slot 'content'}}
|
|
{{#if (gt filtered.length 0) }}
|
|
{{#tabular-collection
|
|
route='dc.intentions.edit'
|
|
key='SourceName'
|
|
items=filtered as |item index|
|
|
}}
|
|
{{#block-slot 'header'}}
|
|
<th>Source</th>
|
|
<th> </th>
|
|
<th>Destination</th>
|
|
<th>Precedence</th>
|
|
{{/block-slot}}
|
|
{{#block-slot 'row'}}
|
|
<td class="source" data-test-intention="{{item.ID}}">
|
|
<a href={{href-to 'dc.intentions.edit' item.ID}} data-test-intention-source="{{item.SourceName}}">
|
|
{{#if (eq item.SourceName '*') }}
|
|
All Services (*)
|
|
{{else}}
|
|
{{item.SourceName}}
|
|
{{/if}}
|
|
</a>
|
|
</td>
|
|
<td class="intent-{{item.Action}}" data-test-intention-action="{{item.Action}}">
|
|
<strong>{{item.Action}}</strong>
|
|
</td>
|
|
<td class="destination" data-test-intention-destination="{{item.DestinationName}}">
|
|
{{#if (eq item.DestinationName '*') }}
|
|
All Services (*)
|
|
{{else}}
|
|
{{item.DestinationName}}
|
|
{{/if}}
|
|
</td>
|
|
<td class="precedence">
|
|
{{item.Precedence}}
|
|
</td>
|
|
{{/block-slot}}
|
|
{{#block-slot 'actions' as |index change checked|}}
|
|
{{#confirmation-dialog confirming=false index=index message='Are you sure you want to delete this intention?'}}
|
|
{{#block-slot 'action' as |confirm|}}
|
|
{{#action-group index=index onchange=(action change) checked=(if (eq checked index) 'checked')}}
|
|
<ul>
|
|
<li>
|
|
<a href={{href-to 'dc.intentions.edit' item.ID}}>Edit</a>
|
|
</li>
|
|
<li>
|
|
<a data-test-delete onclick={{action confirm 'delete' item}}>Delete</a>
|
|
</li>
|
|
</ul>
|
|
{{/action-group}}
|
|
{{/block-slot}}
|
|
{{#block-slot 'dialog' as |execute cancel message|}}
|
|
<p>
|
|
{{message}}
|
|
</p>
|
|
<button type="button" class="type-delete" {{action execute}}>Confirm Delete</button>
|
|
<button type="button" class="type-cancel" {{action cancel}}>Cancel</button>
|
|
{{/block-slot}}
|
|
{{/confirmation-dialog}}
|
|
{{/block-slot}}
|
|
{{/tabular-collection}}
|
|
{{else}}
|
|
<p>
|
|
There are no intentions.
|
|
</p>
|
|
{{/if}}
|
|
{{/block-slot}}
|
|
{{/app-view}} |