diff --git a/app/views/kanaui/dashboard/index.html.erb b/app/views/kanaui/dashboard/index.html.erb index e4c2300..c1da0ee 100644 --- a/app/views/kanaui/dashboard/index.html.erb +++ b/app/views/kanaui/dashboard/index.html.erb @@ -2,57 +2,50 @@
+
+
+ <% if params[:name] %> -
-
-
- - -
- <%= form_tag kanaui_engine.dashboard_index_path, :class => 'form-horizontal', :method => :get do %> - - - - - - -
-
- <% # TODO datepicker breaks :hover %> - From: -
-
-
-
- <% # TODO datepicker breaks :hover %> - To: -
-
- <% ((@report['variables'] || {})['fields'] || []).each do |definition| %> -
-
- <%= definition['name'].titleize %>: - <% # TODO Not fully implemented server side %> - <% if definition['dataType'] == 'date' %> - <% # TODO datepicker breaks :hover %> - - <% else %> - - <% end %> -
-
+
+ <%= form_tag kanaui_engine.dashboard_index_path, :class => 'form-horizontal', :method => :get do %> + + + + + +
+
+ From: +
+
+
+
+ To: +
+
+ <% ((@report['variables'] || {})['fields'] || []).each do |definition| %> +
+
+ <%= definition['name'].titleize %>: + <% # TODO Not fully implemented server side %> + <% if definition['dataType'] == 'date' %> + <% # TODO datepicker breaks :hover %> + + <% else %> + <% end %> -
-
- <%= submit_tag 'Refresh', :class => 'btn btn-default' %> -
-
- <% end %> -
-
-
-
+
+
+ <% end %> +
+
+ <%= submit_tag 'Refresh', :class => 'btn btn-default' %> +
+
+ <% end %> +
<% end %> +

<%= link_to 'Available Reports', kanaui_engine.url_for(:controller => :reports) %>

+
@@ -182,3 +176,18 @@
+ + +<%= javascript_tag do %> + $(document).ready(function() { + $('.calendar-icon').click(function() { + $('.form-container').toggle(); + }); + }); +<% end %> + +