-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from ror-community/staging
Merge staging to master: org status
- Loading branch information
Showing
17 changed files
with
222 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
import Component from '@ember/component'; | ||
import { inject as service } from '@ember/service'; | ||
|
||
export default Component.extend({ | ||
router: service(), | ||
activeStatus: true, | ||
inactiveStatus: false, | ||
withdrawnStatus: false, | ||
filterValue: '', | ||
|
||
actions: { | ||
applyFilter() { | ||
this.filterValue = '' | ||
if (this.activeStatus == true){ | ||
this.filterValue += "status:active," | ||
} | ||
if (this.inactiveStatus == true){ | ||
this.filterValue += "status:inactive," | ||
} | ||
if (this.withdrawnStatus == true){ | ||
this.filterValue += "status:withdrawn," | ||
} | ||
this.filterValue = this.filterValue.slice(0, -1) | ||
this.set('model.query.filter', this.filterValue) | ||
//this.get('globalSearch').doSearch(this.query, this.allStatus) | ||
this.get('router').transitionTo('organizations.index', { queryParams: { query: this.model.query.query, page: this.model.query.page, all_status: this.model.query.allStatus, filter: this.model.query.filter}}); | ||
}, | ||
clearFilter() { | ||
this.filterValue = '' | ||
this.set('activeStatus', true); | ||
this.set('inactiveStatus', false); | ||
this.set('withdrawnStatus', false); | ||
this.filterValue = "status:active" | ||
this.set('model.query.filter', this.filterValue) | ||
this.get('router').transitionTo('organizations.index', { queryParams: { query: this.model.query.query, page: this.model.query.page, all_status: this.model.query.allStatus, filter: this.model.query.filter}}); | ||
} | ||
} | ||
|
||
}); |
Empty file.
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
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,22 @@ | ||
<div id="filters" class="small"> | ||
<div class="filter-group"> | ||
<h3>Record status <i class="fa fa-question-circle" aria-hidden="true"><BsPopover @triggerEvents="hover" class="popover">Each ROR record has a status of active, inactive or withdrawn. <b>Inactive</b> indicates that an organization has split, merged or otherwise ceased to operate. <b>Withdrawn</b> indicates that an organization was added to ROR in error.</BsPopover></i></h3> | ||
<hr> | ||
<div class="filters-list"> | ||
{{input class="filters-list-input" type="checkbox" id="active-status" name="activeStatus" checked=activeStatus}} | ||
<label class="filters-list-label" for="active-status">Active</label> | ||
</div> | ||
<div class="filters-list"> | ||
{{input class="filters-list-input" type="checkbox" id="inactive-status" name="inactiveStatus" checked=inactiveStatus}} | ||
<label class="filters-list-label" for="inactive-status">Inactive</label> | ||
</div> | ||
<div class="filters-list"> | ||
{{input class="filters-list-input" type="checkbox" id="withdrawn-status" name="withdrawnStatus" checked=withdrawnStatus}} | ||
<label class="filters-list-label" for="withdrawn-status">Withdrawn</label> | ||
</div> | ||
</div> | ||
<div> | ||
<button class="btn btn-sma btn-round btn-primary" type="submit" id="filter-button" {{action "applyFilter"}}><i class="fa fa-check-circle" aria-hidden="true"></i>Apply</button> | ||
<button class="btn btn-sma btn-round btn-secondary" type="submit" id="clear-button" {{action "clearFilter"}}><i class="fa fa-times-circle" aria-hidden="true"></i>Clear</button> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<div class="content"> | ||
|
||
<div class="container-fluid"> | ||
<div class="ml-4 ror-search-home"> | ||
{{#link-to "organizations.index"}}<i class="fa fa-caret-left" aria-hidden="true"></i> ROR search home page{{/link-to}} | ||
</div> | ||
{{organization-item model=model}} | ||
</div> | ||
</div> |