Moved offers active/archive filter to view actions bar

This commit is contained in:
Peter Zimon 2021-10-14 17:14:27 +02:00
parent 2234b04a56
commit 7a26051439

View File

@ -1,16 +1,8 @@
<section class="gh-canvas gh-offers">
<GhCanvasHeader class="gh-canvas-header">
<h2 class="gh-canvas-title" data-test-screen-title>Offers</h2>
<section class="view-actions">
<LinkTo @route="offer.new" class="gh-btn gh-btn-primary"><span>New offer</span></LinkTo>
</section>
</GhCanvasHeader>
<section class="view-container">
{{#if this.offersExist}}
<section class="gh-offers-actions view-actions">
<div class="gh-contentfilter view-actions-bottom-row">
<div>
<div class="gh-contentfilter-menu gh-contentfilter-type {{if this.selectedType.value "gh-contentfilter-selected"}}" data-test-type-select="true">
<PowerSelect
@selected={{this.selectedType}}
@ -27,7 +19,13 @@
</PowerSelect>
</div>
</div>
<LinkTo @route="offer.new" class="gh-btn gh-btn-primary"><span>New offer</span></LinkTo>
</section>
</GhCanvasHeader>
<section class="view-container">
{{#if this.offersExist}}
<table class="gh-list gh-offers-list">
<tr class="gh-list-row header">
<th class="gh-list-header">{{this.offersList.length}} offers</th>