phcdevworks_mailer_form 0.0.5b → 0.0.6b

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27ea3edb8eaa3ca234b603645377189f10cea66086682ef093a29b5ddabc1284
4
- data.tar.gz: f47a236c0efc507e87b4d403f2f9747ed41dde5d821e1dfb30eef73cbe5420a6
3
+ metadata.gz: 20d96d393089e6e99d3cf0bebf1f502066846ed547ae66c90f05cc853b736946
4
+ data.tar.gz: 6202bbedad2adeda76e4e8959bb4a0a4613bf55e032492ae63571623c7979a44
5
5
  SHA512:
6
- metadata.gz: 11cdcaa5d187b01c5253d1eae22ae68a6678885b1bb4df874aa03d36677693d33615cf04a1b7ce40f8a7d186ab073a72d16470ab77b090063206ff71297cda37
7
- data.tar.gz: 3bb396a58a8829245db0d545675d088fc5780567520c7a7b049ddd00a74b33c569bdd77b06ecc50c60a569ab263b87d2704d10fa2bc1ba37a675d10449e2f8c3
6
+ metadata.gz: 89788c88f10e877ad01aa0b73fad920d3142beace9bf469443902626568c697f4d79e1b11192dcc321997296663d805f8c528c9f90107e048b2ac60afc4b9207
7
+ data.tar.gz: df835fa87cdb8fb128db18b995310a0e9a04c66eb30c43e5ed43405d6766f0882f9e805990fe07dd4ffae85fc88e36d480ab6f1e6870da97ae64425db02ba8dd
@@ -3,8 +3,6 @@ require_dependency "phcdevworks_mailer_form/application_controller"
3
3
  module PhcdevworksMailerForm
4
4
  class Website::PagesController < ApplicationController
5
5
 
6
-
7
-
8
6
  # Page - Form - Contact
9
7
  def contact
10
8
  @contact = FormMailers.new
@@ -15,11 +13,10 @@ module PhcdevworksMailerForm
15
13
  @contact = FormMailers.new(params[:contact_form])
16
14
  @contact.request = request
17
15
  if @contact.deliver
18
- flash.now[:notice] = 'Thank You Message Sent!'
19
- render :index
16
+ format.html { redirect_to contact_us_path, :flash => { :success => 'Nessage has been Sent.' }}
20
17
  else
21
18
  flash.now[:error] = 'Error Message Not Sent!'
22
- render :index
19
+ render :contact
23
20
  end
24
21
  end
25
22
 
@@ -1,19 +1,19 @@
1
1
  <%= form_for @contact, url: contact_us_path do |f| %>
2
2
 
3
3
  <div class="form-group">
4
- <%= f.text_field :mailer_name, required: true, class: "form-control", placeholder: "Your Name" %>
4
+ <%= f.text_field :mailer_name, required: true, class: "form-control", placeholder: "Name" %>
5
5
  </div>
6
6
 
7
7
  <div class="form-group">
8
- <%= f.text_field :mailer_email, required: true, class: "form-control", placeholder: "Your E-mail Address" %>
8
+ <%= f.text_field :mailer_email, required: true, class: "form-control", placeholder: "E-mail Address" %>
9
9
  </div>
10
10
 
11
11
  <div class="form-group">
12
- <%= f.text_field :mailer_subject, required: true, class: "form-control", placeholder: "Your E-mail Address" %>
12
+ <%= f.text_field :mailer_subject, required: true, class: "form-control", placeholder: "Subject" %>
13
13
  </div>
14
14
 
15
15
  <div class="form-group">
16
- <%= f.text_area :mailer_message, rows: 8, cols: 40, required: true, class: "form-control", placeholder: "Your Message" %>
16
+ <%= f.text_area :mailer_message, rows: 8, cols: 40, required: true, class: "form-control", placeholder: "Message" %>
17
17
  </div>
18
18
 
19
19
  <div class="hidden d-none">
@@ -2,7 +2,6 @@ PhcdevworksMailerForm::Engine.routes.draw do
2
2
 
3
3
  # Contact Page
4
4
  get "contact_us", to: "website/pages#contact"
5
-
6
-
7
-
5
+ post "contact_us", to: "website/pages#create"
6
+
8
7
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksMailerForm
2
- VERSION = "0.0.5b"
2
+ VERSION = "0.0.6b"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_mailer_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5b
4
+ version: 0.0.6b
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks