phcdevworks_mailer_form 0.0.6b → 0.0.7b
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84f0d5c7866c6bdedce7b018564198229b95425ab7e474c88b790e1c0c210c51
|
4
|
+
data.tar.gz: e2ce5d7aefa33e5afe824f57bf12e4dfa9075abf849ed9a753c9cb5c4dec7448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93c22da59e76b854a92bf05c5f10a02a7e89f6ea3b438d5d0770be37c90aea1d4e5cae3bad7aa5c388997ddad3bbc65b6846ccfe0b63bacfe2c21a0805cd0029
|
7
|
+
data.tar.gz: 1e41b57d22506bc42052906af251536177de6a2ba1317a98d99e52772add300777d7cd729c0e3c381d50c9086fc1ef820f87ad81e52bee3f378ccf6bbbca0aee
|
@@ -24,7 +24,7 @@ module PhcdevworksMailerForm
|
|
24
24
|
|
25
25
|
# Whitelist
|
26
26
|
def contact_params
|
27
|
-
params.require(:contact_form).permit(:mailer_name, :mailer_email, :mailer_department, :mailer_subject, :mailer_message, :
|
27
|
+
params.require(:contact_form).permit(:mailer_name, :mailer_email, :mailer_department, :mailer_subject, :mailer_message, :mailer_captcha)
|
28
28
|
end
|
29
29
|
|
30
30
|
end
|
@@ -1,4 +1,8 @@
|
|
1
|
-
<%= form_for @contact, url: contact_us_path do |f| %>
|
1
|
+
<%= form_for @contact, url: contact_us_path, remote: true do |f| %>
|
2
|
+
|
3
|
+
<!-- -PHC- Content - Contact Form - Container - Row - Container - Form - Notifications -->
|
4
|
+
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @contact %>
|
5
|
+
<!-- -PHC- Content - Contact Form - Container - Row - Container - Form - Notifications -->
|
2
6
|
|
3
7
|
<div class="form-group">
|
4
8
|
<%= f.text_field :mailer_name, required: true, class: "form-control", placeholder: "Name" %>
|