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

Changing tables #248

Merged
merged 4 commits into from
Oct 26, 2015
Merged

Conversation

valeriecodes
Copy link
Contributor

Add field to indicate whether a restroom has a changing table, per: #233

I don't know what icon should be used for this. The best I could come up with was the fa-child one, but I think there's probably better out there, open to suggestions.

Screenshots:
screen shot 2015-10-18 at 4 09 01 pm
screen shot 2015-10-18 at 4 08 42 pm

@tkwidmer

$('.listItem.not_unisex').hide()

$('#changing_table_filter').click ->
Copy link
Member

Choose a reason for hiding this comment

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

It's possible that we'll want to start pulling out all these boolean icons to enums rather than listing all of them here. Doesn't need to be part of this though, just a follow up. By no means is three icons unwieldy :P

Copy link
Member

Choose a reason for hiding this comment

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

Also, there may be a more 'rails' way to do it. Enums is just the first thing that pops into my head. @tkwidmer or @cllns might know

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really think there is a rails convention that would help here. These technically are three different filters. There may be a gem that will help with this, but since we are doing this filtering in javascript -- I don't know if it would really help without a refactor here. I'm fine with this for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

I too don't think it's necessary at this point but I think we'd want to use a bitfield, not an enum. Here's a popular one that's named after a silly looking dog https://github.com/pboling/flag_shih_tzu :)

@mi-wood
Copy link
Member

mi-wood commented Oct 19, 2015

A few minor comments. I don't have objections to the icon chosen, although maybe others have ideas

@tkwidmer
Copy link
Contributor

Other than that, I'm fine with this. =)

@valeriecodes
Copy link
Contributor Author

Did that HAML refactor @tkwidmer @mi-wood

@tkwidmer
Copy link
Contributor

gtg, gratz on your contribution! @azelma thank you!

tkwidmer added a commit that referenced this pull request Oct 26, 2015
@tkwidmer tkwidmer merged commit 449962c into RefugeRestrooms:develop Oct 26, 2015
@valeriecodes valeriecodes deleted the changing-tables branch October 26, 2015 17:54
@tkwidmer tkwidmer mentioned this pull request Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants