2021-12-17 03:44:29 +00:00
|
|
|
{{! conditional to check if SelectableCard is apart of a CSS Grid, if yes return grid item class }}
|
|
|
|
{{#if this.gridContainer}}
|
2020-02-13 19:44:57 +00:00
|
|
|
<div class="selectable-card is-rounded is-grid-container">
|
2020-02-14 17:20:44 +00:00
|
|
|
<div class="selectable-card-title">
|
2021-12-17 03:44:29 +00:00
|
|
|
<h2 class="title-number">{{format-number this.total}}</h2>
|
2022-06-02 20:40:04 +00:00
|
|
|
<h3 class="title is-5" data-test-selectable-card-title={{@cardTitle}}>{{@cardTitle}}</h3>
|
|
|
|
<p class="has-text-grey is-size-8">{{@subText}}</p>
|
2020-02-13 19:44:57 +00:00
|
|
|
</div>
|
|
|
|
{{yield}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2022-06-02 20:40:04 +00:00
|
|
|
<div class="selectable-card is-rounded no-flex">
|
|
|
|
<div class="is-flex-between is-fullwidth card-details" data-test-selectable-card={{@cardTitle}}>
|
|
|
|
<h3 class="title is-5">{{@cardTitle}}</h3>
|
|
|
|
<LinkTo
|
|
|
|
@route={{@actionTo}}
|
|
|
|
class="has-icon-right is-ghost is-no-underline has-text-semibold"
|
|
|
|
@query={{hash itemType=@queryParam}}
|
|
|
|
data-test-action-text={{@actionText}}
|
|
|
|
>
|
|
|
|
{{@actionText}}
|
|
|
|
{{#if @actionText}}
|
|
|
|
<Icon @name="chevron-right" />
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
</div>
|
|
|
|
<p class="has-text-grey is-size-8">{{@subText}}</p>
|
|
|
|
<h2 class="title-number">{{format-number this.total}}</h2>
|
2020-02-13 19:44:57 +00:00
|
|
|
{{yield}}
|
|
|
|
</div>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{/if}}
|