From e7e508413b12e06967601b541f02c8943b2ddc19 Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Wed, 4 May 2022 18:17:38 +0200 Subject: [PATCH] added statut, disable google maps --- app/controllers/home_controller.rb | 4 +++ app/views/home/contact.html.erb | 21 ++------------ app/views/home/statute.html.erb | 40 ++++++++++++++++++++++++++ app/views/layouts/home_layout.html.erb | 3 ++ config/routes.rb | 1 + 5 files changed, 50 insertions(+), 19 deletions(-) create mode 100644 app/views/home/statute.html.erb diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 25e0b13..5ec8fd6 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -39,6 +39,10 @@ class HomeController < ApplicationController @email_message = EmailMessage.new end + def statute + + end + def register_contact @email_message = EmailMessage.new(email_messages_params) return unless @email_message.save diff --git a/app/views/home/contact.html.erb b/app/views/home/contact.html.erb index 1439157..c558e07 100644 --- a/app/views/home/contact.html.erb +++ b/app/views/home/contact.html.erb @@ -23,9 +23,6 @@
-
- -

Deep Tech Institute

@@ -35,6 +32,8 @@ 80-172 Gdańsk

+
+
@@ -56,19 +55,3 @@ width: 100%; } - - diff --git a/app/views/home/statute.html.erb b/app/views/home/statute.html.erb new file mode 100644 index 0000000..ff52d46 --- /dev/null +++ b/app/views/home/statute.html.erb @@ -0,0 +1,40 @@ +
+
+
+
+
+
+

Regulamin

+
+
+
+
+
+
+ +
+
+
+
+
+
+
+

Treść regulaminu

+
+
+
+
+
+
+
+
+ <%= render '/shared/disclaimer' %> +
+
+
+
+
+
+
+
+
diff --git a/app/views/layouts/home_layout.html.erb b/app/views/layouts/home_layout.html.erb index 7cf74b5..8cc8bee 100644 --- a/app/views/layouts/home_layout.html.erb +++ b/app/views/layouts/home_layout.html.erb @@ -27,6 +27,9 @@ + diff --git a/config/routes.rb b/config/routes.rb index 66724d2..7d147fb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,6 +2,7 @@ Rails.application.routes.draw do get 'zrezygnuj' => 'email_filter#unsubscribe' get 'email_filter/unsubscribe' get 'kontakt' => 'home#contact' + get 'regulamin' => 'home#statute' get 'dotacja/:id' => 'home#show' get 'zestawienie_dotacji/plik' => 'home#prepare_pdf' get 'home/search'