phcdevworks_mailer_form 1.1.4 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +0 -0
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_mailer_form_manifest.js +3 -3
- data/app/assets/stylesheets/phcdevworks_mailer_form/application.scss +15 -15
- data/app/assets/stylesheets/phcdevworks_mailer_form/website/pages.scss +3 -3
- data/app/controllers/phcdevworks_mailer_form/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_mailer_form/website/pages_controller.rb +24 -24
- data/app/helpers/phcdevworks_mailer_form/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_mailer_form/website/pages_helper.rb +4 -4
- data/app/jobs/phcdevworks_mailer_form/application_job.rb +4 -4
- data/app/mailers/phcdevworks_mailer_form/application_mailer.rb +6 -6
- data/app/models/phcdevworks_mailer_form/application_record.rb +5 -5
- data/app/models/phcdevworks_mailer_form/form_mailers.rb +22 -22
- data/app/views/layouts/phcdevworks_mailer_form/application.html.erb +45 -45
- data/app/views/phcdevworks_mailer_form/website/pages/contact.html.erb +1 -1
- data/app/views/phcdevworks_mailer_form/website/pages/forms/_form_contact.html.erb +30 -30
- data/config/routes.rb +7 -7
- data/config/spring.rb +1 -1
- data/lib/phcdevworks_mailer_form/engine.rb +47 -48
- data/lib/phcdevworks_mailer_form/version.rb +3 -3
- data/lib/phcdevworks_mailer_form.rb +6 -6
- data/lib/tasks/phcdevworks_mailer_form_tasks.rake +4 -4
- metadata +33 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5106a3bef63ce472933335f344fe6ab1624b46150e1b02daf0ddac45b6cda5be
|
4
|
+
data.tar.gz: b847d5cbd615a195a7fe1f2fcc9191620137e06942e81aca39170a41e6b8badb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bb7c76eeb797d6d4531f1cfa903e5f42e782ce8b168f7d37fad23dfcbbf1f2aac2962904007a17658f8f89f29079bc0caa9c8b7001b31f10f56a176436e8be7
|
7
|
+
data.tar.gz: 905f3b3641b574b90bff733548df3881bbb70cf8799128a72c5c2086bd26df67ce91600363870ee128bf011b60e84f1c8fb6557187574a0db4bf96ae2856edba
|
data/MIT-LICENSE
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
Copyright 2020 BradPotts
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
Copyright 2020 BradPotts
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require "bundler/setup"
|
2
|
-
|
3
|
-
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
-
load "rails/tasks/engine.rake"
|
5
|
-
|
6
|
-
load "rails/tasks/statistics.rake"
|
7
|
-
|
8
|
-
require "bundler/gem_tasks"
|
1
|
+
require "bundler/setup"
|
2
|
+
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
+
load "rails/tasks/engine.rake"
|
5
|
+
|
6
|
+
load "rails/tasks/statistics.rake"
|
7
|
+
|
8
|
+
require "bundler/gem_tasks"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
//= link_directory ../stylesheets/phcdevworks_mailer_form .scss
|
2
|
-
//= link phcthemes_admin_panel_pack_coloradmin.css
|
3
|
-
//= link phcthemes_admin_panel_pack_coloradmin.js
|
1
|
+
//= link_directory ../stylesheets/phcdevworks_mailer_form .scss
|
2
|
+
//= link phcthemes_admin_panel_pack_coloradmin.css
|
3
|
+
//= link phcthemes_admin_panel_pack_coloradmin.js
|
@@ -1,15 +1,15 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -1,3 +1,3 @@
|
|
1
|
-
// Place all the styles related to the website/pages controller here.
|
2
|
-
// They will automatically be included in application.css.
|
3
|
-
// You can use Sass (SCSS) here: https://sass-lang.com/
|
1
|
+
// Place all the styles related to the website/pages controller here.
|
2
|
+
// They will automatically be included in application.css.
|
3
|
+
// You can use Sass (SCSS) here: https://sass-lang.com/
|
@@ -1,13 +1,13 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
class ApplicationController < ActionController::Base
|
3
|
-
|
4
|
-
# Security Filters
|
5
|
-
protect_from_forgery with: :exception
|
6
|
-
|
7
|
-
# Load Requried Helper Files
|
8
|
-
helper PhcdevworksActiveMenus::Engine.helpers
|
9
|
-
helper PhcdevworksNotifications::Engine.helpers
|
10
|
-
helper PhcdevworksTitleseo::Engine.helpers
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
class ApplicationController < ActionController::Base
|
3
|
+
|
4
|
+
# Security Filters
|
5
|
+
protect_from_forgery with: :exception
|
6
|
+
|
7
|
+
# Load Requried Helper Files
|
8
|
+
helper PhcdevworksActiveMenus::Engine.helpers
|
9
|
+
helper PhcdevworksNotifications::Engine.helpers
|
10
|
+
helper PhcdevworksTitleseo::Engine.helpers
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
@@ -1,24 +1,24 @@
|
|
1
|
-
require_dependency "phcdevworks_mailer_form/application_controller"
|
2
|
-
|
3
|
-
module PhcdevworksMailerForm
|
4
|
-
class Website::PagesController < ApplicationController
|
5
|
-
|
6
|
-
# Page - Form - Contact
|
7
|
-
def contact
|
8
|
-
@contact = FormMailers.new
|
9
|
-
end
|
10
|
-
|
11
|
-
# Send Contact Email
|
12
|
-
def create
|
13
|
-
@contact = FormMailers.new(params[:form_mailers])
|
14
|
-
@contact.request = request
|
15
|
-
if @contact.deliver
|
16
|
-
redirect_to contact_us_path, :flash => { :success => 'Thank You Message Sent!' }
|
17
|
-
else
|
18
|
-
flash.now[:error] = 'Error Message Didnt Send!'
|
19
|
-
render :contact
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
1
|
+
require_dependency "phcdevworks_mailer_form/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksMailerForm
|
4
|
+
class Website::PagesController < ApplicationController
|
5
|
+
|
6
|
+
# Page - Form - Contact
|
7
|
+
def contact
|
8
|
+
@contact = FormMailers.new
|
9
|
+
end
|
10
|
+
|
11
|
+
# Send Contact Email
|
12
|
+
def create
|
13
|
+
@contact = FormMailers.new(params[:form_mailers])
|
14
|
+
@contact.request = request
|
15
|
+
if @contact.deliver
|
16
|
+
redirect_to contact_us_path, :flash => { :success => 'Thank You Message Sent!' }
|
17
|
+
else
|
18
|
+
flash.now[:error] = 'Error Message Didnt Send!'
|
19
|
+
render :contact
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
module ApplicationHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
module ApplicationHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
module Website::PagesHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
module Website::PagesHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
class ApplicationJob < ActiveJob::Base
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
class ApplicationJob < ActiveJob::Base
|
3
|
+
end
|
4
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
class ApplicationMailer < ActionMailer::Base
|
3
|
-
default from: 'from@example.com'
|
4
|
-
layout 'mailer'
|
5
|
-
end
|
6
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
class ApplicationMailer < ActionMailer::Base
|
3
|
+
default from: 'from@example.com'
|
4
|
+
layout 'mailer'
|
5
|
+
end
|
6
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
class ApplicationRecord < ActiveRecord::Base
|
3
|
-
self.abstract_class = true
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
class ApplicationRecord < ActiveRecord::Base
|
3
|
+
self.abstract_class = true
|
4
|
+
end
|
5
|
+
end
|
@@ -1,22 +1,22 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
class FormMailers < MailForm::Base
|
3
|
-
|
4
|
-
# Mailer Fields
|
5
|
-
attributes :mailer_name, :validate => true
|
6
|
-
attributes :mailer_email, :validate => /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i
|
7
|
-
attributes :mailer_department
|
8
|
-
attributes :mailer_subject
|
9
|
-
attributes :mailer_message
|
10
|
-
attribute :mailer_captcha, :captcha => true
|
11
|
-
|
12
|
-
# Mailer Header
|
13
|
-
def headers
|
14
|
-
{
|
15
|
-
:subject => "Website Contact",
|
16
|
-
:to => "info@phcnetworks.net",
|
17
|
-
:from => %("#{mailer_name}" <#{mailer_email}>)
|
18
|
-
}
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
class FormMailers < MailForm::Base
|
3
|
+
|
4
|
+
# Mailer Fields
|
5
|
+
attributes :mailer_name, :validate => true
|
6
|
+
attributes :mailer_email, :validate => /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i
|
7
|
+
attributes :mailer_department
|
8
|
+
attributes :mailer_subject
|
9
|
+
attributes :mailer_message
|
10
|
+
attribute :mailer_captcha, :captcha => true
|
11
|
+
|
12
|
+
# Mailer Header
|
13
|
+
def headers
|
14
|
+
{
|
15
|
+
:subject => "Website Contact",
|
16
|
+
:to => "info@phcnetworks.net",
|
17
|
+
:from => %("#{mailer_name}" <#{mailer_email}>)
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
@@ -1,45 +1,45 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
<!-- SEO System -->
|
6
|
-
<% phc_seo_title "PHCDevworks Mailer Forms" %>
|
7
|
-
<% phc_seo_description "Contact form using Rails ActionMailer." %>
|
8
|
-
<!-- SEO System -->
|
9
|
-
|
10
|
-
<!-- SEO and Site Description -->
|
11
|
-
<meta charset="utf-8">
|
12
|
-
<title><%= yield(:phc_seo_title) %></title>
|
13
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
-
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
-
<!-- SEO and Site Description -->
|
16
|
-
|
17
|
-
<!-- Rails Security Tags -->
|
18
|
-
<%= csrf_meta_tags %>
|
19
|
-
<%= csp_meta_tag %>
|
20
|
-
<!-- Rails Security Tags -->
|
21
|
-
|
22
|
-
<!-- CSS Styles -->
|
23
|
-
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
-
<!-- CSS Styles -->
|
25
|
-
|
26
|
-
<!-- JavaScript -->
|
27
|
-
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
-
<!-- JavaScript -->
|
29
|
-
|
30
|
-
</head>
|
31
|
-
<body>
|
32
|
-
|
33
|
-
<!-- Page Container -->
|
34
|
-
<div id="page-container" class="fade page-without-sidebar page-header-fixed">
|
35
|
-
<!-- Page Content -->
|
36
|
-
<div id="content" class="content">
|
37
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
38
|
-
<%= yield %>
|
39
|
-
</div>
|
40
|
-
<!-- Page Content -->
|
41
|
-
</div>
|
42
|
-
<!-- Page Container -->
|
43
|
-
|
44
|
-
</body>
|
45
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Mailer Forms" %>
|
7
|
+
<% phc_seo_description "Contact form using Rails ActionMailer." %>
|
8
|
+
<!-- SEO System -->
|
9
|
+
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
16
|
+
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
21
|
+
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
+
<!-- CSS Styles -->
|
25
|
+
|
26
|
+
<!-- JavaScript -->
|
27
|
+
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
+
<!-- JavaScript -->
|
29
|
+
|
30
|
+
</head>
|
31
|
+
<body>
|
32
|
+
|
33
|
+
<!-- Page Container -->
|
34
|
+
<div id="page-container" class="fade page-without-sidebar page-header-fixed">
|
35
|
+
<!-- Page Content -->
|
36
|
+
<div id="content" class="content">
|
37
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
38
|
+
<%= yield %>
|
39
|
+
</div>
|
40
|
+
<!-- Page Content -->
|
41
|
+
</div>
|
42
|
+
<!-- Page Container -->
|
43
|
+
|
44
|
+
</body>
|
45
|
+
</html>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render "phcdevworks_mailer_form/website/pages/forms/form_contact" %>
|
1
|
+
<%= render "phcdevworks_mailer_form/website/pages/forms/form_contact" %>
|
@@ -1,31 +1,31 @@
|
|
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 -->
|
6
|
-
|
7
|
-
<div class="form-group">
|
8
|
-
<%= f.text_field :mailer_name, required: true, class: "form-control", placeholder: "Name" %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="form-group">
|
12
|
-
<%= f.text_field :mailer_email, required: true, class: "form-control", placeholder: "E-mail Address" %>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<div class="form-group">
|
16
|
-
<%= f.text_field :mailer_subject, required: true, class: "form-control", placeholder: "Subject" %>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class="form-group">
|
20
|
-
<%= f.text_area :mailer_message, rows: 8, cols: 40, required: true, class: "form-control", placeholder: "Message" %>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="hidden d-none">
|
24
|
-
<%= f.text_field :mailer_captcha %>
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div class="actions">
|
28
|
-
<%= f.submit class: "btn btn-primary" %>
|
29
|
-
</div>
|
30
|
-
|
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 -->
|
6
|
+
|
7
|
+
<div class="form-group">
|
8
|
+
<%= f.text_field :mailer_name, required: true, class: "form-control", placeholder: "Name" %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="form-group">
|
12
|
+
<%= f.text_field :mailer_email, required: true, class: "form-control", placeholder: "E-mail Address" %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="form-group">
|
16
|
+
<%= f.text_field :mailer_subject, required: true, class: "form-control", placeholder: "Subject" %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="form-group">
|
20
|
+
<%= f.text_area :mailer_message, rows: 8, cols: 40, required: true, class: "form-control", placeholder: "Message" %>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="hidden d-none">
|
24
|
+
<%= f.text_field :mailer_captcha %>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div class="actions">
|
28
|
+
<%= f.submit class: "btn btn-primary" %>
|
29
|
+
</div>
|
30
|
+
|
31
31
|
<% end %>
|
data/config/routes.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
PhcdevworksMailerForm::Engine.routes.draw do
|
2
|
-
|
3
|
-
# Contact Page
|
4
|
-
get "contact_us", to: "website/pages#contact"
|
5
|
-
post "contact_us", to: "website/pages#create"
|
6
|
-
|
7
|
-
end
|
1
|
+
PhcdevworksMailerForm::Engine.routes.draw do
|
2
|
+
|
3
|
+
# Contact Page
|
4
|
+
get "contact_us", to: "website/pages#contact"
|
5
|
+
post "contact_us", to: "website/pages#create"
|
6
|
+
|
7
|
+
end
|
data/config/spring.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
Spring.application_root = './spec/test_app'
|
1
|
+
Spring.application_root = './spec/test_app'
|
2
2
|
|
@@ -1,48 +1,47 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
class Engine < ::Rails::Engine
|
3
|
-
|
4
|
-
# Load Main Dependencies
|
5
|
-
require "jbuilder"
|
6
|
-
require "paper_trail"
|
7
|
-
require "friendly_id"
|
8
|
-
|
9
|
-
# Load Theme Dependencies
|
10
|
-
require "phcthemes_admin_panel_pack"
|
11
|
-
require "phcthemes_web_theme_pack"
|
12
|
-
|
13
|
-
# Load Helper Dependencies
|
14
|
-
require "phcdevworks_core"
|
15
|
-
require "phcdevworks_active_menus"
|
16
|
-
require "phcdevworks_notifications"
|
17
|
-
require "phcdevworks_titleseo"
|
18
|
-
|
19
|
-
# Load Upload Dependencies
|
20
|
-
require "aws-sdk-s3"
|
21
|
-
require "google-cloud-storage"
|
22
|
-
require "mini_magick"
|
23
|
-
|
24
|
-
# Frontend Dependencies
|
25
|
-
require "wicked"
|
26
|
-
require "gravtastic"
|
27
|
-
require "friendly_id"
|
28
|
-
|
29
|
-
# Mailer Dependencies
|
30
|
-
require "mail_form"
|
31
|
-
|
32
|
-
# Load Required PHC Plugins
|
33
|
-
require "phcdevworks_accounts"
|
34
|
-
require "
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
g.
|
43
|
-
g.
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# Load Main Dependencies
|
5
|
+
require "jbuilder"
|
6
|
+
require "paper_trail"
|
7
|
+
require "friendly_id"
|
8
|
+
|
9
|
+
# Load Theme Dependencies
|
10
|
+
require "phcthemes_admin_panel_pack"
|
11
|
+
require "phcthemes_web_theme_pack"
|
12
|
+
|
13
|
+
# Load Helper Dependencies
|
14
|
+
require "phcdevworks_core"
|
15
|
+
require "phcdevworks_active_menus"
|
16
|
+
require "phcdevworks_notifications"
|
17
|
+
require "phcdevworks_titleseo"
|
18
|
+
|
19
|
+
# Load Upload Dependencies
|
20
|
+
require "aws-sdk-s3"
|
21
|
+
require "google-cloud-storage"
|
22
|
+
require "mini_magick"
|
23
|
+
|
24
|
+
# Frontend Dependencies
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
28
|
+
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
31
|
+
|
32
|
+
# Load Required PHC Plugins
|
33
|
+
require "phcdevworks_accounts"
|
34
|
+
require "phcdevworks_core_modules"
|
35
|
+
|
36
|
+
# Engine Namespace
|
37
|
+
isolate_namespace PhcdevworksMailerForm
|
38
|
+
|
39
|
+
# Rspec Generators
|
40
|
+
config.generators do |g|
|
41
|
+
g.test_framework :rspec
|
42
|
+
g.fixture_replacement :factory_bot
|
43
|
+
g.factory_bot dir: 'spec/factories'
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module PhcdevworksMailerForm
|
2
|
-
VERSION =
|
3
|
-
end
|
1
|
+
module PhcdevworksMailerForm
|
2
|
+
VERSION = "1.3.0"
|
3
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require "phcdevworks_mailer_form/version"
|
2
|
-
require "phcdevworks_mailer_form/engine"
|
3
|
-
|
4
|
-
module PhcdevworksMailerForm
|
5
|
-
# Your code goes here...
|
6
|
-
end
|
1
|
+
require "phcdevworks_mailer_form/version"
|
2
|
+
require "phcdevworks_mailer_form/engine"
|
3
|
+
|
4
|
+
module PhcdevworksMailerForm
|
5
|
+
# Your code goes here...
|
6
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# desc "Explaining what the task does"
|
2
|
-
# task :phcdevworks_mailer_form do
|
3
|
-
# # Task goes here
|
4
|
-
# end
|
1
|
+
# desc "Explaining what the task does"
|
2
|
+
# task :phcdevworks_mailer_form do
|
3
|
+
# # Task goes here
|
4
|
+
# end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_mailer_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,112 +44,112 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '12.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '12.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: phcthemes_admin_panel_pack
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '4.
|
61
|
+
version: '4.1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '4.
|
68
|
+
version: '4.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: phcthemes_web_theme_pack
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '4.
|
75
|
+
version: '4.1'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '4.
|
82
|
+
version: '4.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: phcdevworks_active_menus
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '2.
|
89
|
+
version: '2.3'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '2.
|
96
|
+
version: '2.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: phcdevworks_core
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '2.
|
103
|
+
version: '2.3'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '2.
|
110
|
+
version: '2.3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: phcdevworks_notifications
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '2.
|
117
|
+
version: '2.3'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '2.
|
124
|
+
version: '2.3'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: phcdevworks_titleseo
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
131
|
+
version: '3.3'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '3.
|
138
|
+
version: '3.3'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: phcdevworks_core_modules
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '7.
|
145
|
+
version: '7.3'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '7.
|
152
|
+
version: '7.3'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: wicked
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,28 +212,28 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: '1.
|
215
|
+
version: '1.103'
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: '1.
|
222
|
+
version: '1.103'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: google-cloud-storage
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: '1.
|
229
|
+
version: '1.34'
|
230
230
|
type: :runtime
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: '1.
|
236
|
+
version: '1.34'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: mini_magick
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,70 +254,70 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: '3.
|
257
|
+
version: '3.3'
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: '3.
|
264
|
+
version: '3.3'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: phcdevworks_accounts_stripe
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
269
|
- - "~>"
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: 0.
|
271
|
+
version: 0.2.0
|
272
272
|
type: :runtime
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: 0.
|
278
|
+
version: 0.2.0
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: factory_bot_rails
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
282
282
|
requirements:
|
283
283
|
- - "~>"
|
284
284
|
- !ruby/object:Gem::Version
|
285
|
-
version: '6.
|
285
|
+
version: '6.2'
|
286
286
|
type: :development
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
290
|
- - "~>"
|
291
291
|
- !ruby/object:Gem::Version
|
292
|
-
version: '6.
|
292
|
+
version: '6.2'
|
293
293
|
- !ruby/object:Gem::Dependency
|
294
294
|
name: rspec-rails
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
297
|
- - "~>"
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version: '
|
299
|
+
version: '5.0'
|
300
300
|
type: :development
|
301
301
|
prerelease: false
|
302
302
|
version_requirements: !ruby/object:Gem::Requirement
|
303
303
|
requirements:
|
304
304
|
- - "~>"
|
305
305
|
- !ruby/object:Gem::Version
|
306
|
-
version: '
|
306
|
+
version: '5.0'
|
307
307
|
- !ruby/object:Gem::Dependency
|
308
308
|
name: spring
|
309
309
|
requirement: !ruby/object:Gem::Requirement
|
310
310
|
requirements:
|
311
311
|
- - "~>"
|
312
312
|
- !ruby/object:Gem::Version
|
313
|
-
version: '
|
313
|
+
version: '3.0'
|
314
314
|
type: :development
|
315
315
|
prerelease: false
|
316
316
|
version_requirements: !ruby/object:Gem::Requirement
|
317
317
|
requirements:
|
318
318
|
- - "~>"
|
319
319
|
- !ruby/object:Gem::Version
|
320
|
-
version: '
|
320
|
+
version: '3.0'
|
321
321
|
- !ruby/object:Gem::Dependency
|
322
322
|
name: spring-commands-rspec
|
323
323
|
requirement: !ruby/object:Gem::Requirement
|
@@ -399,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
399
399
|
- !ruby/object:Gem::Version
|
400
400
|
version: '0'
|
401
401
|
requirements: []
|
402
|
-
rubygems_version: 3.
|
402
|
+
rubygems_version: 3.2.22
|
403
403
|
signing_key:
|
404
404
|
specification_version: 4
|
405
405
|
summary: Rails 6 - Engine - Mailer Form
|