-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into DES/enhancement/#705-vl-refactor
# Conflicts: # app/components/subcases/subcase-detail-nav.hbs
- Loading branch information
Showing
12 changed files
with
241 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<WebComponents::AuModal data-test-au-modal-publication-new> | ||
<WebComponents::AuModal::Header @size="medium" @title={{t "publications-filter" }} @closeModal={{this.cancel}} /> | ||
<WebComponents::AuModal::Body> | ||
<div class="auk-form-group-layout auk-form-group-layout--grid"> | ||
<div class="auk-o-grid"> | ||
<div class="auk-o-grid-col-4"> | ||
<div class="auk-form-group"> | ||
<WebComponents::AuLabel for="defaultInput">{{t "source"}}</WebComponents::AuLabel> | ||
</div> | ||
<div class="auk-form-group"> | ||
<WebComponents::AuLabel for="defaultInput">{{t "status"}}</WebComponents::AuLabel> | ||
</div> | ||
</div> | ||
<div class="auk-o-grid-col-4"> | ||
<div class="auk-form-group"> | ||
<WebComponents::AuCheckboxList> | ||
<WebComponents::AuCheckbox @label={{t "via-cabinet" }} @name="ministerFilterOption" | ||
@checked={{this.filter.ministerFilterOption}} @toggle={{this.toggleFilterOption}} /> | ||
</WebComponents::AuCheckboxList> | ||
</div> | ||
<div class="auk-form-group"> | ||
<WebComponents::AuCheckboxList> | ||
<WebComponents::AuCheckbox @label={{t "publications-published" }} @name="publishedFilterOption" | ||
@checked={{this.filter.publishedFilterOption}} @toggle={{this.toggleFilterOption}} /> | ||
<WebComponents::AuCheckbox @label={{t "publications-paused" }} @name="pausedFilterOption" | ||
@checked={{this.filter.pausedFilterOption}} @toggle={{this.toggleFilterOption}} /> | ||
</WebComponents::AuCheckboxList> | ||
</div> | ||
</div> | ||
<div class="auk-o-grid-col-4"> | ||
<div class="auk-form-group"> | ||
<WebComponents::AuCheckboxList> | ||
<WebComponents::AuCheckbox @label={{t "not-via-cabinet" }} @name="notMinisterFilterOption" | ||
@checked={{this.filter.notMinisterFilterOption}} @toggle={{this.toggleFilterOption}} /> | ||
</WebComponents::AuCheckboxList> | ||
</div> | ||
<div class="auk-form-group"> | ||
<WebComponents::AuCheckboxList> | ||
<WebComponents::AuCheckbox @label={{t "publications-to-publish" }} @name="toPublishFilterOption" | ||
@checked={{this.filter.toPublishFilterOption}} @toggle={{this.toggleFilterOption}} /> | ||
<WebComponents::AuCheckbox @label={{t "discharged" }} @name="withdrawnFilterOption" | ||
@checked={{this.filter.withdrawnFilterOption}} @toggle={{this.toggleFilterOption}} /> | ||
</WebComponents::AuCheckboxList> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</WebComponents::AuModal::Body> | ||
{{!-- TODO, use the template, yield the buttons in the right toolbar--}} | ||
<WebComponents::AuModal::Footer @custom={{true}}> | ||
<WebComponents::AuToolbar> | ||
<WebComponents::AuToolbar::Group @position="left"> | ||
<WebComponents::AuToolbar::Item> | ||
<WebComponents::AuButton @skin="borderless" {{on "click" this.cancel}} data-test-publication-button-cancel> | ||
{{t "cancel"}} | ||
</WebComponents::AuButton> | ||
</WebComponents::AuToolbar::Item> | ||
</WebComponents::AuToolbar::Group> | ||
<WebComponents::AuToolbar::Group @position="right"> | ||
<WebComponents::AuToolbar::Item> | ||
<WebComponents::AuButton @skin="secondary" data-test-publication-button-reset-filters {{on "click" | ||
this.reset}}> | ||
{{t "clear-filter-plural"}} | ||
</WebComponents::AuButton> | ||
</WebComponents::AuToolbar::Item> | ||
<WebComponents::AuToolbar::Item> | ||
<WebComponents::AuButton @icon="filter" @skin="primary" data-test-publication-button-filter-content | ||
{{on "click" (fn @onSave this.filter)}}> | ||
{{t "filter-content"}} | ||
</WebComponents::AuButton> | ||
</WebComponents::AuToolbar::Item> | ||
</WebComponents::AuToolbar::Group> | ||
</WebComponents::AuToolbar> | ||
</WebComponents::AuModal::Footer> | ||
</WebComponents::AuModal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Component from '@glimmer/component'; | ||
import { action } from '@ember/object'; | ||
import { tracked } from '@glimmer/tracking'; | ||
|
||
export default class PublicationsFilterModal extends Component { | ||
@tracked filter; | ||
|
||
constructor() { | ||
super(...arguments); | ||
this.filter = this.args.filter.clone(); | ||
} | ||
|
||
@action | ||
reset() { | ||
this.filter.reset(); | ||
} | ||
|
||
@action | ||
cancel() { | ||
this.args.onCancel(); | ||
} | ||
|
||
@action | ||
toggleFilterOption(event) { | ||
this.filter[event.target.name] = event.target.checked; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class CasesCaseSubcasesSubcaseDecisionRoute extends Route { | ||
async model() { | ||
const subcase = this.modelFor('cases.case.subcases.subcase'); | ||
const pieces = await this.store.query('piece', { | ||
'filter[agenda-item-treatment][subcase][:id:]': subcase.id, | ||
sort: '-created', | ||
}); | ||
return pieces.toArray(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Documents::DocumentCardList | ||
@pieces={{this.model}} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.