refinerycms-pods 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ module Refinery
3
3
  class Pod < Refinery::Core::BaseModel
4
4
  self.table_name = 'refinery_pods'
5
5
 
6
- POD_TYPES = %w(content banner gallery video)
6
+ POD_TYPES = %w(content banner gallery video inquiry)
7
7
 
8
8
  attr_accessible :name, :body, :url, :image_id, :pod_type, :portfolio_entry_id, :video_id, :position, :page_ids
9
9
 
@@ -0,0 +1,18 @@
1
+ <% @inquiry ||= ::Refinery::Inquiries::Inquiry.new %>
2
+
3
+ <div class="side_pod inquiry_pod">
4
+ <%= simple_form_for [refinery, :inquiries, @inquiry], :html => {:class => 'form-vertical'} do |f| %>
5
+ <%= f.input :name %>
6
+ <%= f.input :email%>
7
+ <%= f.input :phone %>
8
+ <%= f.input :message ,:input_html => {:rows=>6} %>
9
+ <%= f.button :submit, :class => 'btn-primary' %>
10
+ <% end %>
11
+ </div>
12
+
13
+
14
+
15
+
16
+
17
+
18
+
data/readme.md CHANGED
@@ -4,6 +4,8 @@ Manageable little side-pods for your [Refinery CMS](http://refinerycms.com) webs
4
4
 
5
5
  + Portfolios - https://github.com/resolve/refinerycms-portfolio (branch rails-3-1 or whichever the stable 2.0 branch is)
6
6
  + Videos - https://github.com/julesce/refinerycms-videos (2.0.x)
7
+ + Inquiries - https://github.com/refinery/refinerycms-inquiries (2.0.x)
8
+ + Simple_form - https://github.com/plataformatec/simple_form (2.0.x)
7
9
 
8
10
  This version of `refinerycms-pods` supports Rails 3.2.x. and upwards. Designed to work with the asset pipeline.
9
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-pods
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: 2.0.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: simple_form
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 2.0.2
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.0.2
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: refinerycms-testing
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +118,7 @@ files:
102
118
  - app/views/refinery/pods/shared/_banner_pod.html.erb
103
119
  - app/views/refinery/pods/shared/_content_pod.html.erb
104
120
  - app/views/refinery/pods/shared/_gallery_pod.html.erb
121
+ - app/views/refinery/pods/shared/_inquiry_pod.html.erb
105
122
  - app/views/refinery/pods/shared/_pods.html.erb
106
123
  - app/views/refinery/pods/shared/_video_pod.html.erb
107
124
  - db/migrate/1_create_pods_pods.rb