spud_inquiries 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown ADDED
@@ -0,0 +1,42 @@
1
+ Spud Inquiries
2
+ ==============
3
+
4
+ Spud Inquiries is a Spud Engine designed to make it easier to generate contact forms and send email notifications when these inquiries occur. This engine works great with the spud_cms engine but it is fully capable of running standalone with spud_core.
5
+
6
+ Installation/Usage
7
+ ------------------
8
+
9
+ 1. In your Gemfile add the following
10
+
11
+ gem 'spud_core', :git => "git://github.com/davydotcom/spud_core_admin.git"
12
+ gem 'spud_inquiries', :git => "git://github.com/davydotcom/spud_inquiries.git"
13
+
14
+ 2. Run bundle install
15
+ 3. Copy in database migrations to your new rails project
16
+
17
+ bundle exec rake railties:install:migrations
18
+ rake db:migrate
19
+
20
+ 4. run a rails server instance and point your browser to /spud/admin
21
+
22
+ Routing to the Inquiries Engine
23
+ -------------------------------
24
+ By default the inquiries gem routes the "/contact" url to the form named "contact". However this and other configuration options can be changed as shown below.
25
+
26
+
27
+ Spud::Cms.configure do |config|
28
+ config.default_contact_form = "contact"
29
+ config.base_layout = "application"
30
+ config.from_address = "no-reply@example.org"
31
+ end
32
+
33
+
34
+
35
+ Where "contact" is the name of the form you wish to use (downcased,parameterized,hyphenated)
36
+
37
+ Inquiry will default render to the 'application' layout of your application. You can change this by adjusting the configuration option called "base_layout". More configuration options can be found in the Wiki "Configuration" page.
38
+
39
+ Creating a Contact Form
40
+ -----------------------
41
+ Creating a contact form is still fairly new and improvements will be made as time goes on. To create a new form, go to the Inquiries app inside of your spud admin panel. Click the forms button to manage various forms. Here you can set the form name, any content (html safe) you wish to render before the form renders, and add the form fields to the form (Email address is currently at the top of all forms and not adjustable).
42
+
@@ -1,24 +1,21 @@
1
-
1
+ <%=error_messages_for(f.object)%>
2
2
  <fieldset>
3
3
  <legend>Form Info</legend>
4
4
  <ol>
5
5
  <li>
6
- <%=error_message_on "page","name"%>
6
+
7
7
  <%=f.label :name, :required=>true%>
8
8
  <%=f.text_field :name%>
9
9
  </li>
10
10
  <li>
11
- <%=error_message_on "page","recipients"%>
12
11
  <%=f.label :recipients, :required=>true%>
13
12
  <%=f.text_field :recipients%>
14
13
  </li>
15
14
  <li>
16
- <%=error_message_on "page","subject"%>
17
15
  <%=f.label :subject, :required=>true%>
18
16
  <%=f.text_field :subject%>
19
17
  </li>
20
18
  <li>
21
- <%=error_message_on "page","content"%>
22
19
  <%=f.label :content, :required=>true%>
23
20
  <%=f.text_area :content,:cols => 75,:rows => 5,:class => "wysiwym"%>
24
21
  </li>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud_inquiries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,25 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-30 00:00:00.000000000 Z
12
+ date: 2012-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spud_core
16
- requirement: &70274607365740 !ruby/object:Gem::Requirement
16
+ requirement: &70361647865960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.3.0
21
+ version: 0.5.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70274607365740
24
+ version_requirements: *70361647865960
25
25
  description:
26
26
  email: destes@redwindsw.com
27
27
  executables: []
28
28
  extensions: []
29
- extra_rdoc_files: []
29
+ extra_rdoc_files:
30
+ - README.markdown
30
31
  files:
31
32
  - app/assets/images/spud/admin/contacts_thumb.png
32
33
  - app/assets/javascripts/spud/admin/inquiries.js
@@ -37,12 +38,6 @@ files:
37
38
  - app/controllers/spud/admin/inquiries_controller.rb
38
39
  - app/controllers/spud/admin/inquiry_forms_controller.rb
39
40
  - app/controllers/spud/inquiries/sitemaps_controller.rb
40
- - app/helpers/contacts_helper.rb
41
- - app/helpers/spud/admin/inquiries_helper.rb
42
- - app/helpers/spud/admin/inquiry_forms_helper.rb
43
- - app/helpers/spud/admin/users_helper.rb
44
- - app/helpers/spud/inquiries/sitemaps_helper.rb
45
- - app/helpers/spud/user_sessions_helper.rb
46
41
  - app/mailers/spud/inquiry_mailer.rb
47
42
  - app/models/spud_inquiry.rb
48
43
  - app/models/spud_inquiry_field.rb
@@ -67,6 +62,7 @@ files:
67
62
  - lib/spud_inquiries.rb
68
63
  - lib/spud_inquiries/configuration.rb
69
64
  - lib/spud_inquiries/engine.rb
65
+ - README.markdown
70
66
  homepage:
71
67
  licenses: []
72
68
  post_install_message:
@@ -1,2 +0,0 @@
1
- module ContactsHelper
2
- end
@@ -1,2 +0,0 @@
1
- module Spud::Admin::InquiriesHelper
2
- end
@@ -1,2 +0,0 @@
1
- module Spud::Admin::InquiryFormsHelper
2
- end
@@ -1,2 +0,0 @@
1
- module Spud::Admin::UsersHelper
2
- end
@@ -1,2 +0,0 @@
1
- module Spud::Inquiries::SitemapsHelper
2
- end
@@ -1,2 +0,0 @@
1
- module Spud::UserSessionsHelper
2
- end