alphagov/finder-frontend — pull request #79 by tommyp (2014-09-22 13:43:10+00:00)
Title: Date filtering facet

In order to allow users to filter on a date, we need to add a date filtering facet. Screenshot:

![screen shot 2014-09-22 at 14 35 11](https://cloud.githubusercontent.com/assets/449004/4356831/4ed6708a-425d-11e4-97f4-b3527c09b12d.png)

This works by allowing the user to filter a range, `from` and `to` based on the key in the schema.

While working on this, it became apparent that the way the filter sentence was being constructed wouldn't work with these, so this was also refactored. Now, each facet returns it's on sentence fragment. They all basically work the same, with the `select_facet` and `date_facet` having multiple values with `radio_facet` only ever having one (though it's also in an array as the front end always treats them as arrays).

@alicebartlett also refactored some the CSS with this work and added the frontend code necessary for the date facet.

For this to be displayed, it relies on a schema having a date facet, such as [this PR](https://github.com/alphagov/finder-api/pull/56) for AAIB.