From 47ce6c08355f7141b79c9da657beac16049e1fe0 Mon Sep 17 00:00:00 2001 From: bsidio Date: Mon, 2 Oct 2017 13:20:14 +0530 Subject: [PATCH 1/9] Updated layout --- app/views/layouts/application.html.erb | 36 +++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b55585e..1f9a6de 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,17 +1,47 @@ + + - FuelPricesIndia + + + + + + + Latest Fuel Price India <%= csrf_meta_tags %> + <%= stylesheet_link_tag "https://fonts.googleapis.com/icon?family=Material+Icons" %> + <%= stylesheet_link_tag "https://code.getmdl.io/1.3.0/material.indigo-pink.min.css" %> + <%= stylesheet_link_tag "http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" %> + <%= javascript_include_tag "https://code.getmdl.io/1.3.0/material.min.js" %> + + <%= stylesheet_link_tag "http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" %> + + + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> - - + + + + <%= yield %> + From 4b71e63cbdd7fea787377af1a86cfb91f3aef5c4 Mon Sep 17 00:00:00 2001 From: bsidio Date: Mon, 2 Oct 2017 13:22:25 +0530 Subject: [PATCH 2/9] Updated indec --- app/views/layouts/application.html.erb | 1 - app/views/main/index.html.erb | 22 +++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 1f9a6de..0e9e222 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -42,6 +42,5 @@

- diff --git a/app/views/main/index.html.erb b/app/views/main/index.html.erb index ac7b8c2..967aee8 100644 --- a/app/views/main/index.html.erb +++ b/app/views/main/index.html.erb @@ -1,17 +1,17 @@
-

Latest Fuel Price

- <%= select_tag 'city_name', options_for_select(City.city_list) %> - <%= select_tag 'fuelType', options_for_select(["Petrol", "Diesel"]) %> -
-
-
- -
+ +

Latest Fuel Price India

+
+ <%= select_tag 'city_name', options_for_select(City.city_list), {:class => 'mdl-textfield__input'} %>
+ <%= select_tag 'fuelType', options_for_select(["Petrol", "Diesel"]) , {:class => 'mdl-textfield__input'} %> +
+

+
-

-
+

+