Created
January 30, 2015 20:22
-
-
Save mberman84/95d4381f24004f5ed9f0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| %form{method:"get", style: "display: inline-block;"} | |
| - if @graph_type == 'volume' | |
| %b volume | |
| [ | |
| - if @sub_graph_type == 'daily' | |
| daily | |
| = link_to 'hourly', analytics_path(graph_type: 'volume', start_date: @since_start, end_date: @since_end, sub_graph_type: 'hourly') | |
| - else | |
| = link_to 'daily', analytics_path(graph_type: 'volume', start_date: @since_start, end_date: @since_end, sub_graph_type: 'daily') | |
| hourly | |
| ] | |
| - else | |
| = link_to 'volume', analytics_path(graph_type: 'volume', start_date: @since_start, end_date: @since_end, sub_graph_type: @sub_graph_type) | |
| | | |
| - if @graph_type == 'distribution' | |
| %b distribution | |
| - else | |
| = link_to 'distribution', analytics_path(graph_type: 'distribution', start_date: @since_start, end_date: @since_end, sub_graph_type: @sub_graph_type) | |
| | | |
| - if @graph_type == 'response' | |
| %b response | |
| - else | |
| = link_to 'response', analytics_path(graph_type: 'response', start_date: @since_start, end_date: @since_end, sub_graph_type: @sub_graph_type) | |
| %input{class: "datepicker", "data-date-format"=>"mm/dd/yyyy", name: "form_start_date", value: @since_start, placeholder: "Start Date"} | |
| %input{class: "datepicker", "data-date-format"=>"mm/dd/yyyy", name: "form_end_date", value: @since_end, placeholder: "End Date"} | |
| %input{type: "hidden", name: "previous_graph", value: @graph_type} | |
| %input{type: "hidden", name: "previous_sub_graph", value: @sub_graph_type} | |
| %input{type: "submit"} | |
| :javascript | |
| $('.datepicker').datepicker({ | |
| format: 'mm/dd/yyyy', | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment