Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add checkbox to sidebar filters in explore route. #3263

Merged
merged 4 commits into from
Jul 31, 2019

Conversation

Anupam-dagar
Copy link
Member

Fixes: #3098

Short description of what this resolves:

There are no checkboxes in the sidebar filter of explore route.

Changes proposed in this pull request:

  • Add checkbox to each filter option of sidebar filter in explore route.

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Screenshots

Screenshot from 2019-07-12 01-14-17
Screenshot from 2019-07-12 01-14-06
Screenshot from 2019-07-12 01-13-39

@kushthedude
Copy link
Member

Push any test commit, Let Netlify restart.

@kushthedude kushthedude changed the title Add checkbox to sidebar filters in explore route. feat: Add checkbox to sidebar filters in explore route. Jul 11, 2019
@auto-label auto-label bot added the feature label Jul 11, 2019
{{#each dateRanges as |dateRange|}}
<div class="field">
<div class="ui checkbox">
<input type="checkbox" onChange={{action 'selectDateFilter' dateRange.key}} checked={{if (eq dateType dateRange.key) 'active'}}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use semantic-ui-ember checkbox.

{{#each Category.subTopics as |subCategory|}}
<div class="field inner item">
<div class="ui checkbox">
<input type="checkbox" onChange={{action 'selectCategory' Category.name subCategory.slug}} checked={{if (eq sub_category subCategory.slug) 'active'}}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use semantic-ui-ember checkbox.

{{#each model.eventTypes as |eventType|}}
<div class="field">
<div class="ui checkbox">
<input type="checkbox" onChange={{action 'selectEventType' eventType.name}} checked={{if (eq event_type eventType.name) 'active'}}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use semantic-ui-ember checkbox.

<div class="grouped fields">
<div class="field">
<div class="ui checkbox">
<input type="checkbox" onChange={{action 'selectTicketType' 'free'}} checked={{if (eq ticket_type 'free') true}}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use semantic-ui-ember checkbox.

</div>
</div>
<div class="field">
<div class="ui checkbox checkbox">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use semantic-ui-ember checkbox.

@Anupam-dagar
Copy link
Member Author

I have made the requested changes.

<div class="grouped fields">
{{#each Category.subTopics as |subCategory|}}
<div class="field inner item">
{{ui-checkbox label=subCategory.name class='toggle' checked=(if (eq sub_category subCategory.slug) 'active') onChange=(action 'selectCategory' Category.name subCategory.slug)}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use checkbox rather than toggle
Screenshot 2019-07-15 at 4 13 54 AM

@abhinavk96 abhinavk96 merged commit 403df8a into fossasia:development Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix and improve event filters / browse events search
3 participants