refinerycms-inquiries 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/admin/inquiries_controller.rb +32 -0
- data/app/controllers/admin/inquiry_settings_controller.rb +22 -0
- data/app/controllers/inquiries_controller.rb +47 -0
- data/app/helpers/inquiries_helper.rb +2 -0
- data/app/mailers/inquiry_mailer.rb +20 -0
- data/app/models/inquiry.rb +25 -0
- data/app/models/inquiry_setting.rb +25 -0
- data/app/views/admin/inquiries/_inquiry.html.erb +24 -0
- data/app/views/admin/inquiries/_submenu.html.erb +27 -0
- data/app/views/admin/inquiries/index.html.erb +26 -0
- data/app/views/admin/inquiries/show.html.erb +74 -0
- data/app/views/admin/inquiries/spam.html.erb +26 -0
- data/app/views/admin/inquiry_settings/_confirmation_email_form.html.erb +57 -0
- data/app/views/admin/inquiry_settings/_notification_recipients_form.html.erb +24 -0
- data/app/views/admin/inquiry_settings/edit.html.erb +5 -0
- data/app/views/inquiries/new.html.erb +34 -0
- data/app/views/inquiries/thank_you.html.erb +1 -0
- data/app/views/inquiry_mailer/confirmation.html.erb +1 -0
- data/app/views/inquiry_mailer/notification.html.erb +18 -0
- data/config/locales/da.yml +68 -0
- data/config/locales/de.yml +71 -0
- data/config/locales/en.yml +76 -0
- data/config/locales/es.yml +69 -0
- data/config/locales/fr.yml +66 -0
- data/config/locales/it.yml +67 -0
- data/config/locales/lv.yml +76 -0
- data/config/locales/nb.yml +77 -0
- data/config/locales/nl.yml +76 -0
- data/config/locales/pt-BR.yml +86 -0
- data/config/locales/ru.yml +79 -0
- data/config/locales/sl.yml +68 -0
- data/config/locales/zh-CN.yml +73 -0
- data/config/routes.rb +20 -0
- data/lib/inquiries.rb +24 -0
- data/license.md +21 -0
- data/readme.md +23 -0
- metadata +135 -0
@@ -0,0 +1,73 @@
|
|
1
|
+
zh-CN:
|
2
|
+
plugins:
|
3
|
+
refinery_inquiries:
|
4
|
+
title: Inquiries
|
5
|
+
inquiries:
|
6
|
+
new:
|
7
|
+
header_message: Whoops there was a small problem
|
8
|
+
message: "The following problems need to be corrected:"
|
9
|
+
send: Send message
|
10
|
+
privacy_policy: We value your privacy
|
11
|
+
admin:
|
12
|
+
inquiries:
|
13
|
+
inquiry:
|
14
|
+
read_inquiry: Read the inquiry
|
15
|
+
said: said
|
16
|
+
mark_as_spam: Mark as spam
|
17
|
+
mark_as_ham: Move to inbox
|
18
|
+
submenu:
|
19
|
+
inbox: Inbox
|
20
|
+
spam: Spam
|
21
|
+
update_notified: Update who gets notified
|
22
|
+
edit_confirmation_email: Edit confirmation email
|
23
|
+
index:
|
24
|
+
no_inquiries: You have not received any inquiries yet.
|
25
|
+
spam:
|
26
|
+
no_spam: Hooray! You don't have any spam.
|
27
|
+
show:
|
28
|
+
details: Details
|
29
|
+
age: Age
|
30
|
+
actions: Actions
|
31
|
+
back_to_all_inquiries: Back to all Inquiries
|
32
|
+
spam: Spam
|
33
|
+
spam_yes: 'yes'
|
34
|
+
inquiry: Inquiry
|
35
|
+
to: To
|
36
|
+
from: From
|
37
|
+
click_to_email: Click to email this address
|
38
|
+
phone: Phone
|
39
|
+
date: Date
|
40
|
+
message: Message
|
41
|
+
inquiry_settings:
|
42
|
+
update:
|
43
|
+
updated: "'%{setting}' was successfully updated."
|
44
|
+
notification_recipients_form:
|
45
|
+
inquiry_settings_value_name: Send notifications to
|
46
|
+
explanation: Every time someone contacts you on your website, Refinery sends out an email to say there is a new inquiry.
|
47
|
+
hint: When a new inquiry is submitted, Refinery will send an email notification to you.
|
48
|
+
example: "Enter your email address(es) like: jack@work.com, jill@office.com"
|
49
|
+
confirmation_email_form:
|
50
|
+
to: To
|
51
|
+
from: From
|
52
|
+
subject: Subject
|
53
|
+
click_to_edit_subject: Click here to edit the subject
|
54
|
+
explanation: Every time someone contacts you on your website, Refinery sends out an email to confirm the inquiry with the person who made it.
|
55
|
+
below_edit_email_sent: Below you can edit the email that is sent out.
|
56
|
+
the_customer_making_inquiry: The customer making the inquiry
|
57
|
+
message: Message
|
58
|
+
note: "Note: place the text %name% where you'd like the customer's name to appear in the email"
|
59
|
+
inquiry_mailer:
|
60
|
+
notification:
|
61
|
+
greeting: Hi there
|
62
|
+
you_recieved_new_inquiry: You just received a new inquiry on your website.
|
63
|
+
inquiry_starts: --- inquiry starts ---
|
64
|
+
inquiry_ends: --- inquiry ends ---
|
65
|
+
from: From
|
66
|
+
email: Email
|
67
|
+
phone: Phone
|
68
|
+
message: Message
|
69
|
+
closing_line: Kind Regards
|
70
|
+
ps: P.S. All your inquiries are stored in the "Inquiries" section of Refinery should you ever want to view it later there.
|
71
|
+
activerecord:
|
72
|
+
models:
|
73
|
+
inquiry: inquiry
|
data/config/routes.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Refinery::Application.routes.draw do
|
2
|
+
get '/contact', :to => 'inquiries#new', :as => 'new_inquiry'
|
3
|
+
resources :contact, :as => :inquiries, :controller => 'inquiries' do
|
4
|
+
collection do
|
5
|
+
get :thank_you
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
scope(:path => 'refinery', :as => 'admin', :module => 'admin') do
|
10
|
+
resources :inquiries do
|
11
|
+
collection do
|
12
|
+
get :spam
|
13
|
+
end
|
14
|
+
member do
|
15
|
+
get :toggle_spam
|
16
|
+
end
|
17
|
+
end
|
18
|
+
resources :inquiry_settings
|
19
|
+
end
|
20
|
+
end
|
data/lib/inquiries.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'refinery'
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
module Inquiries
|
5
|
+
class Engine < Rails::Engine
|
6
|
+
config.after_initialize do
|
7
|
+
require 'filters_spam'
|
8
|
+
|
9
|
+
Refinery::Plugin.register do |plugin|
|
10
|
+
plugin.title = "Inquiries"
|
11
|
+
plugin.name = "refinery_inquiries"
|
12
|
+
plugin.directory = "inquiries"
|
13
|
+
plugin.description = "Provides a contact form and stores inquiries"
|
14
|
+
plugin.version = %q{0.9.8}
|
15
|
+
plugin.menu_match = /(refinery|admin)\/inquir(ies|y_settings)$/
|
16
|
+
plugin.activity = {
|
17
|
+
:class => InquirySetting,
|
18
|
+
:title => 'name'
|
19
|
+
}
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/license.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2005-2010 [Resolve Digital Ltd.](http://www.resolvedigital.co.nz)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/readme.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Inquiries
|
2
|
+
|
3
|
+
![Refinery Inquiries](http://refinerycms.com/system/images/0000/0626/inquiries.png)
|
4
|
+
|
5
|
+
## About
|
6
|
+
|
7
|
+
__Add a simple contact form to Refinery that notifies you and the customer when an inquiry is made.__
|
8
|
+
|
9
|
+
In summary you can:
|
10
|
+
|
11
|
+
* Collect and manage inquiries
|
12
|
+
* Specify who is notified when a new inquiry comes in
|
13
|
+
* Customise an auto responder email that is sent to the person making the inquiry
|
14
|
+
|
15
|
+
When inquiries come in, you and the customer are notified. The inquiry will now show up as an "open" inquiry. The idea is to deal with the inquiry and then "close" it so you know it's been sorted.
|
16
|
+
|
17
|
+
## How do I get Notified?
|
18
|
+
|
19
|
+
Go into your 'Inquiries' tab in the Refinery admin area and click on "Update who gets notified"
|
20
|
+
|
21
|
+
## How do I Edit the Automatic Confirmation Email
|
22
|
+
|
23
|
+
Go into your 'Inquiries' tab in the Refinery admin area and click on "Edit confirmation email"
|
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: refinerycms-inquiries
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 43
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
- 8
|
10
|
+
version: 0.9.8
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Resolve Digital
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-08-27 00:00:00 +12:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: filters_spam
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 9
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 1
|
33
|
+
version: "0.1"
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: refinerycms
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 31098153
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 9
|
48
|
+
- 8
|
49
|
+
- beta
|
50
|
+
version: 0.9.8.beta
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
description: Inquiry handling functionality extracted from Refinery CMS to allow you to have a contact form and manage inquiries in the Refinery backend.
|
54
|
+
email: info@refinerycms.com
|
55
|
+
executables: []
|
56
|
+
|
57
|
+
extensions: []
|
58
|
+
|
59
|
+
extra_rdoc_files: []
|
60
|
+
|
61
|
+
files:
|
62
|
+
- app/controllers/admin/inquiries_controller.rb
|
63
|
+
- app/controllers/admin/inquiry_settings_controller.rb
|
64
|
+
- app/controllers/inquiries_controller.rb
|
65
|
+
- app/helpers/inquiries_helper.rb
|
66
|
+
- app/mailers/inquiry_mailer.rb
|
67
|
+
- app/models/inquiry.rb
|
68
|
+
- app/models/inquiry_setting.rb
|
69
|
+
- app/views/admin/inquiries/_inquiry.html.erb
|
70
|
+
- app/views/admin/inquiries/_submenu.html.erb
|
71
|
+
- app/views/admin/inquiries/index.html.erb
|
72
|
+
- app/views/admin/inquiries/show.html.erb
|
73
|
+
- app/views/admin/inquiries/spam.html.erb
|
74
|
+
- app/views/admin/inquiry_settings/_confirmation_email_form.html.erb
|
75
|
+
- app/views/admin/inquiry_settings/_notification_recipients_form.html.erb
|
76
|
+
- app/views/admin/inquiry_settings/edit.html.erb
|
77
|
+
- app/views/inquiries/new.html.erb
|
78
|
+
- app/views/inquiries/thank_you.html.erb
|
79
|
+
- app/views/inquiry_mailer/confirmation.html.erb
|
80
|
+
- app/views/inquiry_mailer/notification.html.erb
|
81
|
+
- config/locales/da.yml
|
82
|
+
- config/locales/de.yml
|
83
|
+
- config/locales/en.yml
|
84
|
+
- config/locales/es.yml
|
85
|
+
- config/locales/fr.yml
|
86
|
+
- config/locales/it.yml
|
87
|
+
- config/locales/lv.yml
|
88
|
+
- config/locales/nb.yml
|
89
|
+
- config/locales/nl.yml
|
90
|
+
- config/locales/pt-BR.yml
|
91
|
+
- config/locales/ru.yml
|
92
|
+
- config/locales/sl.yml
|
93
|
+
- config/locales/zh-CN.yml
|
94
|
+
- config/routes.rb
|
95
|
+
- readme.md
|
96
|
+
- license.md
|
97
|
+
- lib/inquiries.rb
|
98
|
+
has_rdoc: true
|
99
|
+
homepage: http://refinerycms.com
|
100
|
+
licenses: []
|
101
|
+
|
102
|
+
post_install_message:
|
103
|
+
rdoc_options: []
|
104
|
+
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
hash: 57
|
113
|
+
segments:
|
114
|
+
- 1
|
115
|
+
- 8
|
116
|
+
- 7
|
117
|
+
version: 1.8.7
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
hash: 3
|
124
|
+
segments:
|
125
|
+
- 0
|
126
|
+
version: "0"
|
127
|
+
requirements: []
|
128
|
+
|
129
|
+
rubyforge_project:
|
130
|
+
rubygems_version: 1.3.7
|
131
|
+
signing_key:
|
132
|
+
specification_version: 3
|
133
|
+
summary: Inquiry handling functionality for the Refinery CMS project.
|
134
|
+
test_files: []
|
135
|
+
|