As you can see, the dates are hardcoded in the calendar script. I'd like to replace this array with binds to my resa model. I don't know if I can do liquid logic inside javascipt. Any help welcome.
Bonus: This is my site's news snippet the home page actually). It uses bootstrap's carrousel feature and links to a news model.
i recently found https://github.com/ahmontero/bootstrap-calendar. It's a simple calendar that uses twitter-bootstrap template. I want to use it for rehearsal room reservations. So far I managed to implement bootstrap's modal view for group selection (ewample here:http://agenda.studiowan.fr/agenda).
Here's my sitemap:![Capture d e cran 2012-12-20 a 08 58 43](https://f.cloud.github.com/assets/182643/23937/2d37243c-4a7b-11e2-8995-815710d89641.png)
My index:
My calendar page:
My modalResa snippet:
My resa model:![Capture d e cran 2012-12-20 a 09 04 04](https://f.cloud.github.com/assets/182643/23943/dd46a10e-4a7b-11e2-8af5-12f75d748fee.png)
As you can see, the dates are hardcoded in the calendar script. I'd like to replace this array with binds to my resa model. I don't know if I can do liquid logic inside javascipt. Any help welcome.
Bonus: This is my site's news snippet the home page actually). It uses bootstrap's carrousel feature and links to a news model.
Snippet:
Model:![Capture d e cran 2012-12-20 a 09 10 31](https://f.cloud.github.com/assets/182643/23957/c0f3f884-4a7c-11e2-975c-0f0d3109bb72.png)