ecm_contact2 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cf7050f8a9b854f16f175cb0dc3428a7bfabd08
4
- data.tar.gz: 17b1f7ff5e4ffc7e16291a5edfff6e469f791229
3
+ metadata.gz: 5c6af65ee06f56771bfc3dd58bfa04bb7eae5375
4
+ data.tar.gz: 9a4f2401c953c1f73e163024df817a0a7f8330a7
5
5
  SHA512:
6
- metadata.gz: 1438fdb7306549b10384a3dad46942cb31d68d61ac4385e034a3a9a89db48aae632c87e429ef06a629c2d051cad1a88d3ac07e2afcf6839d7f00e8a1de954f6f
7
- data.tar.gz: 31174ee40de67323f93fac79bd5d0f8b4c77117b38e3544cf3877b5963af9f0485c5c7f95b9508d28df3c67032f85dc08d47c1b0dad2992b11b3cd3bac0a4d72
6
+ metadata.gz: 7f1b4f78df08e6651ba0346d9e55320faa989a6be88655255f66d93386ac8265642dd1629efe6224a49debe12c2357dbaf2793aaadf34c275529c1253a45837b
7
+ data.tar.gz: 0c02bfca663191fec62c1b66a0b15f7d47792c1e25179e51f398d7a35f5e5c741cdc241889b01cdc670af6a8e93004fe87923cb62e6d5755c17ce8e93b5809f6
@@ -1,6 +1,6 @@
1
1
  <h4 style="text-decoration:underline"><%= message.subject %></h4>
2
2
 
3
- <% @resource.mail_form_attributes.each do |attribute, value|
3
+ <% @resource.mail_attributes.each do |attribute, value|
4
4
  next if value.blank? %>
5
5
 
6
6
  <p><b><%= @resource.class.human_attribute_name(attribute) %>:</b>
@@ -17,7 +17,8 @@ de:
17
17
  actions:
18
18
  back: 'Zurück'
19
19
  routes:
20
- ecm_contact: kontakt
20
+ ecm_contact_engine: kontakt
21
+ # ecm_contact: kontakt
21
22
  contact_requests: anfrage
22
23
  simple_form:
23
24
  "yes": 'Ja'
@@ -30,4 +31,16 @@ de:
30
31
  name: "Max Mustermann"
31
32
  email: "max.mustermann@example.com"
32
33
  message: "Hi Dave..."
33
- phone: "+49 69 12345678"
34
+ phone: "+49 69 12345678"
35
+ mail_form:
36
+ models:
37
+ ecm/contact/contact_request: Kontaktanfrage
38
+ attributes:
39
+ ecm/contact/contact_request:
40
+ email: E-Mail
41
+ name: Name
42
+ message: Nachricht
43
+ phone: Telefon
44
+ terms_of_service: Hiermit erlaube ich dem Seitenbetreiber die Nutzung meiner Daten zwecks Beantwortung dieser Kontaktanfrage.
45
+ contact_request:
46
+ title: "Kontaktanfrage"
@@ -17,7 +17,8 @@ en:
17
17
  actions:
18
18
  back: 'Back'
19
19
  routes:
20
- ecm_contact: contact
20
+ ecm_contact_engine: contact
21
+ # ecm_contact: contact
21
22
  contact_requests: request
22
23
  simple_form:
23
24
  "yes": 'Yes'
@@ -30,4 +31,16 @@ en:
30
31
  name: "John Doe"
31
32
  email: "john.doe@example.com"
32
33
  message: "Hi Dave..."
33
- phone: "+1-541-754-3010"
34
+ phone: "+1-541-754-3010"
35
+ mail_form:
36
+ models:
37
+ ecm/contact/contact_request: contact request
38
+ attributes:
39
+ ecm/contact/contact_request:
40
+ email: email
41
+ name: name
42
+ message: message
43
+ phone: phone
44
+ terms_of_service: I hereby allow the site owner to use my personal data for the purpose of answering this request.
45
+ contact_request:
46
+ title: contact request
@@ -1,7 +1,8 @@
1
1
  Ecm::Contact::Engine.routes.draw do
2
2
  localized do
3
- scope :ecm_contact do
3
+ scope :ecm_contact_engine do
4
4
  resources :contact_requests, only: [:create, :index]
5
+
5
6
  root to: 'contact_requests#index'
6
7
  end
7
8
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Contact
3
- VERSION = '4.0.0'.freeze
3
+ VERSION = '4.0.1'.freeze
4
4
  end
5
5
  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: 4.0.0
4
+ version: 4.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: 2017-05-07 00:00:00.000000000 Z
11
+ date: 2017-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -267,10 +267,8 @@ files:
267
267
  - app/views/ecm/contact/contact_requests/index.html.erb
268
268
  - app/views/mail_form/contact.erb
269
269
  - config/initializers/assets.rb
270
- - config/locales/ecm.contact.de.yml
271
- - config/locales/ecm.contact.en.yml
272
- - config/locales/ecm.contact.request.de.yml
273
- - config/locales/ecm.contact.request.en.yml
270
+ - config/locales/de.yml
271
+ - config/locales/en.yml
274
272
  - config/routes.rb
275
273
  - lib/ecm/contact/configuration.rb
276
274
  - lib/ecm/contact/engine.rb
@@ -300,9 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
298
  version: '0'
301
299
  requirements: []
302
300
  rubyforge_project:
303
- rubygems_version: 2.4.8
301
+ rubygems_version: 2.6.11
304
302
  signing_key:
305
303
  specification_version: 4
306
304
  summary: Basic contact form.
307
305
  test_files: []
308
- has_rdoc:
@@ -1,13 +0,0 @@
1
- de:
2
- mail_form:
3
- models:
4
- ecm/contact/contact_request: Kontaktanfrage
5
- attributes:
6
- ecm/contact/contact_request:
7
- email: E-Mail
8
- name: Name
9
- message: Nachricht
10
- phone: Telefon
11
- terms_of_service: Hiermit erlaube ich dem Seitenbetreiber die Nutzung meiner Daten zwecks Beantwortung dieser Kontaktanfrage.
12
- contact_request:
13
- title: "Kontaktanfrage"
@@ -1,13 +0,0 @@
1
- en:
2
- mail_form:
3
- models:
4
- ecm/contact/contact_request: contact request
5
- attributes:
6
- ecm/contact/contact_request:
7
- email: email
8
- name: name
9
- message: message
10
- phone: phone
11
- terms_of_service: I hereby allow the site owner to use my personal data for the purpose of answering this request.
12
- contact_request:
13
- title: contact request