ecm_contact2 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/Rakefile +3 -4
- data/app/assets/stylesheets/ecm_contact.css +6 -17
- data/app/views/ecm/contact/requests/_form.erb +14 -16
- data/app/views/ecm/contact/requests/index.html.erb +2 -4
- data/{lib/generators/ecm/contact/locales/templates → config/locales}/ecm.contact.de.yml +2 -0
- data/{lib/generators/ecm/contact/locales/templates → config/locales}/ecm.contact.en.yml +3 -1
- data/{lib/generators/ecm/contact/locales/templates → config/locales}/ecm.contact.request.de.yml +0 -0
- data/{lib/generators/ecm/contact/locales/templates → config/locales}/ecm.contact.request.en.yml +0 -0
- data/lib/ecm/contact/version.rb +1 -1
- data/lib/generators/ecm/contact/install/templates/ecm_contact.rb +37 -5
- data/lib/generators/ecm/contact/locales/locales_generator.rb +2 -3
- metadata +84 -29
- data/lib/generators/ecm/contact/locales/templates/ecm.contact.routes.de.yml +0 -3
- data/lib/generators/ecm/contact/locales/templates/ecm.contact.routes.en.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f8e120b24a22981329833e812b3eefd65f5a61
|
4
|
+
data.tar.gz: 653ab859ba763823131a945a6db0f4a14f4dc6bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57a3b81675252e0c039178edfd5a0d1429c1f339f88a043d96e949379d78109c683ab499488a265676bdb51d91919d9a9b0b5c7b83537e50378d836f7afa24d0
|
7
|
+
data.tar.gz: 8f1550181f6ac1b2046bc0ce28e32694099c4ad80f2aa33321e2b9f23087288b9cdfff5e3c75c18376ac029b02b60d1e48c8a50024eb4d2f6dd6148bbef9ec9c
|
data/MIT-LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -14,14 +14,13 @@ end
|
|
14
14
|
|
15
15
|
RDoc::Task.new(:rdoc) do |rdoc|
|
16
16
|
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = '
|
17
|
+
rdoc.title = 'ECM Contact 2'
|
18
18
|
rdoc.options << '--line-numbers'
|
19
19
|
rdoc.rdoc_files.include('README.rdoc')
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
23
|
Bundler::GemHelper.install_tasks
|
27
24
|
|
25
|
+
|
26
|
+
require 'rails/dummy/tasks'
|
@@ -1,30 +1,19 @@
|
|
1
|
-
#
|
1
|
+
#new_ecm_contact_request abbr {
|
2
2
|
border-bottom: 0px;
|
3
3
|
}
|
4
4
|
|
5
|
-
#
|
5
|
+
#new_ecm_contact_request #ecm_contact_request_submit span.glyphicon {
|
6
6
|
margin-right: 5px;
|
7
7
|
}
|
8
8
|
|
9
|
-
#
|
10
|
-
margin-
|
9
|
+
#new_ecm_contact_request .boolean span.error {
|
10
|
+
margin-left: -20px;
|
11
11
|
}
|
12
12
|
|
13
|
-
#
|
14
|
-
display: inline-block;
|
15
|
-
margin-left: 10px;
|
16
|
-
margin-top: -17px;
|
17
|
-
}
|
18
|
-
|
19
|
-
#ecm_contact_request .boolean span.error {
|
20
|
-
margin-left: 20px;
|
21
|
-
display: block;
|
22
|
-
}
|
23
|
-
|
24
|
-
#ecm_contact_request label {
|
13
|
+
#new_ecm_contact_request label {
|
25
14
|
font-weight: normal;
|
26
15
|
}
|
27
16
|
|
28
|
-
#
|
17
|
+
#new_ecm_contact_request span.error {
|
29
18
|
color: red;
|
30
19
|
}
|
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
<%=
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<%= f.input :terms_of_service, :as => :boolean, :required => true, :input_html => { :class => Ecm::Contact::Configuration.input_terms_of_service_css_classes } %>
|
1
|
+
<%= simple_form_for(@contact_request) do |f| %>
|
2
|
+
<%= f.input :nickname, :input_html => { :style => 'display:none' }, :label_html => { :style => 'display:none' } %>
|
3
|
+
<%= f.input :name, :input_html => { :class => Ecm::Contact::Configuration.input_name_css_classes } %>
|
4
|
+
<%= f.input :email, :input_html => { :class => Ecm::Contact::Configuration.input_email_css_classes } %>
|
5
|
+
<%= f.input :phone, :input_html => { :class => Ecm::Contact::Configuration.input_phone_css_classes } %>
|
6
|
+
<%= f.input :message, :as => :text, :input_html => { :class => Ecm::Contact::Configuration.input_message_css_classes } %>
|
7
|
+
<%= f.input :terms_of_service, :as => :boolean, :required => true, :input_html => { :class => Ecm::Contact::Configuration.input_terms_of_service_css_classes } %>
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
</div>
|
9
|
+
<div class="controls form-actions well">
|
10
|
+
<%= button_tag(:type => 'submit', :class => 'input btn btn-primary', :id => 'ecm_contact_request_submit') do %>
|
11
|
+
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
|
12
|
+
<%= t('helpers.submit.create', :model => f.object.class.model_name.human) %>
|
13
|
+
<% end %>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
@@ -1,7 +1,5 @@
|
|
1
1
|
<% content_for :title do %><%= I18n.t('ecm.contact.request.index.page_title') %><% end %>
|
2
2
|
<% content_for :meta_description do %><%= I18n.t('ecm.contact.request.index.meta_description') %><% end %>
|
3
|
-
<
|
4
|
-
<h2><%= Ecm::Contact::Request.model_name.human %></h2>
|
3
|
+
<h1><%= Ecm::Contact::Request.model_name.human %></h1>
|
5
4
|
|
6
|
-
|
7
|
-
</div>
|
5
|
+
<%= render 'form' %>
|
@@ -7,9 +7,11 @@ en:
|
|
7
7
|
request:
|
8
8
|
index:
|
9
9
|
page_title: Contact request
|
10
|
-
meta_description: Contact us
|
10
|
+
meta_description: Contact us
|
11
11
|
title: Contact request
|
12
12
|
subject: "[%{application_name}] New contact request"
|
13
|
+
routes:
|
14
|
+
ecm_contact_requests: contact
|
13
15
|
simple_form:
|
14
16
|
"yes": 'Yes'
|
15
17
|
"no": 'No'
|
data/{lib/generators/ecm/contact/locales/templates → config/locales}/ecm.contact.request.de.yml
RENAMED
File without changes
|
data/{lib/generators/ecm/contact/locales/templates → config/locales}/ecm.contact.request.en.yml
RENAMED
File without changes
|
data/lib/ecm/contact/version.rb
CHANGED
@@ -2,6 +2,15 @@ Ecm::Contact.configure do |config|
|
|
2
2
|
# Configure your contact requiest recipients here.
|
3
3
|
#
|
4
4
|
# You can specify multiple recipients and multiple environments.
|
5
|
+
#
|
6
|
+
# Default:
|
7
|
+
#
|
8
|
+
# config.recipients = {
|
9
|
+
# :development => %w[ info@development.example.com ],
|
10
|
+
# :test => %w[ info@test.example.com ],
|
11
|
+
# :production => %w[ info@production.example.com ]
|
12
|
+
# }
|
13
|
+
#
|
5
14
|
config.recipients = {
|
6
15
|
:development => %w[ info@development.example.com ],
|
7
16
|
:test => %w[ info@test.example.com ],
|
@@ -9,15 +18,38 @@ Ecm::Contact.configure do |config|
|
|
9
18
|
}
|
10
19
|
|
11
20
|
# Configure your input field css classes here.
|
12
|
-
|
13
|
-
config.
|
14
|
-
|
15
|
-
config.
|
21
|
+
#
|
22
|
+
# Default: config.input_name_css_classes = 'form-control'
|
23
|
+
#
|
24
|
+
config.input_name_css_classes = 'form-control'
|
25
|
+
|
26
|
+
# Configure your input field css classes here.
|
27
|
+
#
|
28
|
+
# Default: config.input_email_css_classes = 'form-control'
|
29
|
+
#
|
30
|
+
config.input_email_css_classes = 'form-control'
|
31
|
+
|
32
|
+
# Configure your input field css classes here.
|
33
|
+
#
|
34
|
+
# Default: config.input_phone_css_classes = 'form-control'
|
35
|
+
#
|
36
|
+
config.input_phone_css_classes = 'form-control'
|
37
|
+
|
38
|
+
# Configure your input field css classes here.
|
39
|
+
#
|
40
|
+
# Default: config.input_message_css_classes = 'form-control'
|
41
|
+
#
|
42
|
+
config.input_message_css_classes = 'form-control'
|
43
|
+
|
44
|
+
# Configure your input field css classes here.
|
45
|
+
#
|
46
|
+
# Default: config.input_terms_of_service_css_classes = 'form-control'
|
47
|
+
#
|
16
48
|
config.input_terms_of_service_css_classes = ''
|
17
49
|
|
18
50
|
# set the base controller for the contact form
|
19
51
|
#
|
20
52
|
# Default: config.base_controller = 'ApplicationController'
|
21
53
|
#
|
22
|
-
config.base_controller = '
|
54
|
+
config.base_controller = 'ApplicationController'
|
23
55
|
end
|
@@ -4,15 +4,14 @@ module Ecm
|
|
4
4
|
class LocalesGenerator < Rails::Generators::Base
|
5
5
|
desc "Generates the locales"
|
6
6
|
|
7
|
-
source_root File.expand_path('
|
7
|
+
source_root File.expand_path('../../../../../../config/locales', __FILE__)
|
8
8
|
|
9
9
|
def generate_intializer
|
10
10
|
copy_file "ecm.contact.de.yml", "config/locales/ecm.contact.de.yml"
|
11
11
|
copy_file "ecm.contact.en.yml", "config/locales/ecm.contact.en.yml"
|
12
|
+
|
12
13
|
copy_file "ecm.contact.request.de.yml", "config/locales/ecm.contact.request.de.yml"
|
13
14
|
copy_file "ecm.contact.request.en.yml", "config/locales/ecm.contact.request.en.yml"
|
14
|
-
copy_file "ecm.contact.routes.de.yml", "config/locales/ecm.contact.routes.de.yml"
|
15
|
-
copy_file "ecm.contact.routes.en.yml", "config/locales/ecm.contact.routes.en.yml"
|
16
15
|
end
|
17
16
|
end
|
18
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_contact2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '4.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 5.0
|
22
|
+
version: '5.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: '4.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.0
|
32
|
+
version: '5.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: mail_form
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,6 +58,20 @@ dependencies:
|
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: route_translator
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: thin
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +87,7 @@ dependencies:
|
|
73
87
|
- !ruby/object:Gem::Version
|
74
88
|
version: '0'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
90
|
+
name: rails-dummy
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
93
|
- - ">="
|
@@ -87,7 +101,7 @@ dependencies:
|
|
87
101
|
- !ruby/object:Gem::Version
|
88
102
|
version: '0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
104
|
+
name: therubyracer
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
92
106
|
requirements:
|
93
107
|
- - ">="
|
@@ -101,21 +115,21 @@ dependencies:
|
|
101
115
|
- !ruby/object:Gem::Version
|
102
116
|
version: '0'
|
103
117
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
118
|
+
name: less-rails
|
105
119
|
requirement: !ruby/object:Gem::Requirement
|
106
120
|
requirements:
|
107
|
-
- - "
|
121
|
+
- - ">="
|
108
122
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
123
|
+
version: '0'
|
110
124
|
type: :development
|
111
125
|
prerelease: false
|
112
126
|
version_requirements: !ruby/object:Gem::Requirement
|
113
127
|
requirements:
|
114
|
-
- - "
|
128
|
+
- - ">="
|
115
129
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
130
|
+
version: '0'
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
132
|
+
name: twitter-bootstrap-rails
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
120
134
|
requirements:
|
121
135
|
- - ">="
|
@@ -129,21 +143,21 @@ dependencies:
|
|
129
143
|
- !ruby/object:Gem::Version
|
130
144
|
version: '0'
|
131
145
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
146
|
+
name: sqlite3
|
133
147
|
requirement: !ruby/object:Gem::Requirement
|
134
148
|
requirements:
|
135
|
-
- - "
|
149
|
+
- - ">="
|
136
150
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0
|
151
|
+
version: '0'
|
138
152
|
type: :development
|
139
153
|
prerelease: false
|
140
154
|
version_requirements: !ruby/object:Gem::Requirement
|
141
155
|
requirements:
|
142
|
-
- - "
|
156
|
+
- - ">="
|
143
157
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0
|
158
|
+
version: '0'
|
145
159
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
160
|
+
name: yard
|
147
161
|
requirement: !ruby/object:Gem::Requirement
|
148
162
|
requirements:
|
149
163
|
- - ">="
|
@@ -157,7 +171,7 @@ dependencies:
|
|
157
171
|
- !ruby/object:Gem::Version
|
158
172
|
version: '0'
|
159
173
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
174
|
+
name: capybara
|
161
175
|
requirement: !ruby/object:Gem::Requirement
|
162
176
|
requirements:
|
163
177
|
- - ">="
|
@@ -171,7 +185,35 @@ dependencies:
|
|
171
185
|
- !ruby/object:Gem::Version
|
172
186
|
version: '0'
|
173
187
|
- !ruby/object:Gem::Dependency
|
174
|
-
name:
|
188
|
+
name: rspec-rails
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: shoulda-matchers
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 2.8.0
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - "~>"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 2.8.0
|
215
|
+
- !ruby/object:Gem::Dependency
|
216
|
+
name: guard-rails
|
175
217
|
requirement: !ruby/object:Gem::Requirement
|
176
218
|
requirements:
|
177
219
|
- - ">="
|
@@ -185,7 +227,21 @@ dependencies:
|
|
185
227
|
- !ruby/object:Gem::Version
|
186
228
|
version: '0'
|
187
229
|
- !ruby/object:Gem::Dependency
|
188
|
-
name:
|
230
|
+
name: guard-rspec
|
231
|
+
requirement: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - ">="
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
type: :development
|
237
|
+
prerelease: false
|
238
|
+
version_requirements: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '0'
|
243
|
+
- !ruby/object:Gem::Dependency
|
244
|
+
name: guard-bundler
|
189
245
|
requirement: !ruby/object:Gem::Requirement
|
190
246
|
requirements:
|
191
247
|
- - ">="
|
@@ -215,6 +271,10 @@ files:
|
|
215
271
|
- app/views/ecm/contact/requests/_request.erb
|
216
272
|
- app/views/ecm/contact/requests/index.html.erb
|
217
273
|
- app/views/mail_form/contact.erb
|
274
|
+
- config/locales/ecm.contact.de.yml
|
275
|
+
- config/locales/ecm.contact.en.yml
|
276
|
+
- config/locales/ecm.contact.request.de.yml
|
277
|
+
- config/locales/ecm.contact.request.en.yml
|
218
278
|
- lib/ecm/contact/configuration.rb
|
219
279
|
- lib/ecm/contact/engine.rb
|
220
280
|
- lib/ecm/contact/routing.rb
|
@@ -223,12 +283,6 @@ files:
|
|
223
283
|
- lib/generators/ecm/contact/install/install_generator.rb
|
224
284
|
- lib/generators/ecm/contact/install/templates/ecm_contact.rb
|
225
285
|
- lib/generators/ecm/contact/locales/locales_generator.rb
|
226
|
-
- lib/generators/ecm/contact/locales/templates/ecm.contact.de.yml
|
227
|
-
- lib/generators/ecm/contact/locales/templates/ecm.contact.en.yml
|
228
|
-
- lib/generators/ecm/contact/locales/templates/ecm.contact.request.de.yml
|
229
|
-
- lib/generators/ecm/contact/locales/templates/ecm.contact.request.en.yml
|
230
|
-
- lib/generators/ecm/contact/locales/templates/ecm.contact.routes.de.yml
|
231
|
-
- lib/generators/ecm/contact/locales/templates/ecm.contact.routes.en.yml
|
232
286
|
- lib/tasks/ecm_contact_tasks.rake
|
233
287
|
homepage: https://github.com/robotex82/ecm_contact2
|
234
288
|
licenses: []
|
@@ -254,3 +308,4 @@ signing_key:
|
|
254
308
|
specification_version: 4
|
255
309
|
summary: Basic contact form.
|
256
310
|
test_files: []
|
311
|
+
has_rdoc:
|