mix-rails-vouchers 0.23.1 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9053a0a9cd7b2bca334fad065d04e105547c12d5
|
4
|
+
data.tar.gz: a5d8ad54865889c65e20feeb0313551600bf1c5b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dd2fb7d93cbe0f40fe3d348171f8eaf82f4c822f0845372b7742943a0ef07840ce68b690324850f91566420cca380e1890e49b3cd79f7455767f2e2386e8aacf
|
7
|
+
data.tar.gz: d688bfc21b15121db7951833b0625084a25ebb5f20a41e4b43c0ff3b08fcb85861125e244f91aa412bff8a94393e39285a074e023f2f50465d692bb5ba89cd4b
|
@@ -0,0 +1,15 @@
|
|
1
|
+
- admix_tab t('vouchers.voucher') do |t|
|
2
|
+
- t.tab_content do
|
3
|
+
= f.input :name, label: t('vouchers.fields.name'), input_html: {class: 'span12'}
|
4
|
+
= f.input :rules, label: t('vouchers.fields.rules'), as: 'ckeditor', input_html: { ckeditor: {toolbar: 'Full'} }
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
- admix_tab t('tabs.images') do |t|
|
9
|
+
- t.tab_content do
|
10
|
+
= f.input :photo, label: t('vouchers.fields.photo'), as: :file
|
11
|
+
= f.input :partner_photo, label: t('vouchers.fields.partner_photo'), as: :file
|
12
|
+
|
13
|
+
- content_for :form_options do
|
14
|
+
= f.input :date_from, label: t('vouchers.fields.date_from'), as: 'datepicker'
|
15
|
+
= f.input :date_to, label: t('vouchers.fields.date_to'), as: 'datepicker'
|
@@ -1,13 +1,14 @@
|
|
1
1
|
pt-BR:
|
2
2
|
vouchers:
|
3
3
|
vouchers: 'Vouchers'
|
4
|
+
voucher: 'Voucher'
|
4
5
|
mailers:
|
5
6
|
send_confirmation_link:
|
6
7
|
subject: 'Imprima seu Voucher'
|
7
8
|
fields:
|
8
9
|
name: 'Nome'
|
9
|
-
date_from: '
|
10
|
-
date_to: '
|
10
|
+
date_from: 'Válido de'
|
11
|
+
date_to: 'Válido até'
|
11
12
|
rules: 'Regras'
|
12
13
|
photo: 'Foto'
|
13
14
|
partner_photo: 'Foto do parceiro'
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mix-rails-vouchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.24.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rafael Garcia
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: mail_form
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: rails
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -56,7 +51,6 @@ files:
|
|
56
51
|
- app/controllers/admix/vouchers_controller.rb
|
57
52
|
- app/controllers/vouchers_controller.rb
|
58
53
|
- app/mailers/voucher_mailer.rb
|
59
|
-
- app/models/admix/vouchers_datagrid.rb
|
60
54
|
- app/models/email_validator.rb
|
61
55
|
- app/models/voucher_user.rb
|
62
56
|
- app/models/vouchers/contact.rb
|
@@ -65,7 +59,7 @@ files:
|
|
65
59
|
- app/views/admix/vouchers/_table_actions.html.haml
|
66
60
|
- app/views/admix/vouchers/print.html.haml
|
67
61
|
- app/views/admix/vouchers/users.html.haml
|
68
|
-
- app/views/admix/vouchers/
|
62
|
+
- app/views/admix/vouchers/_form_config.haml
|
69
63
|
- app/views/vouchers/confirmation.html.haml
|
70
64
|
- app/views/vouchers/_voucher.html.haml
|
71
65
|
- app/views/vouchers/_voucher_show.html.haml
|
@@ -88,32 +82,25 @@ files:
|
|
88
82
|
- README.rdoc
|
89
83
|
homepage: https://github.com/mixinternet/mix-rails
|
90
84
|
licenses: []
|
85
|
+
metadata: {}
|
91
86
|
post_install_message:
|
92
87
|
rdoc_options: []
|
93
88
|
require_paths:
|
94
89
|
- lib
|
95
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
91
|
requirements:
|
98
|
-
- -
|
92
|
+
- - '>='
|
99
93
|
- !ruby/object:Gem::Version
|
100
94
|
version: '0'
|
101
|
-
segments:
|
102
|
-
- 0
|
103
|
-
hash: -1021860088337861470
|
104
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
96
|
requirements:
|
107
|
-
- -
|
97
|
+
- - '>='
|
108
98
|
- !ruby/object:Gem::Version
|
109
99
|
version: '0'
|
110
|
-
segments:
|
111
|
-
- 0
|
112
|
-
hash: -1021860088337861470
|
113
100
|
requirements: []
|
114
101
|
rubyforge_project:
|
115
|
-
rubygems_version:
|
102
|
+
rubygems_version: 2.0.0
|
116
103
|
signing_key:
|
117
|
-
specification_version:
|
104
|
+
specification_version: 4
|
118
105
|
summary: Vouchers module for mix-rails
|
119
106
|
test_files: []
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class Admix::VouchersDatagrid
|
2
|
-
include Datagrid
|
3
|
-
|
4
|
-
scope do
|
5
|
-
Voucher
|
6
|
-
end
|
7
|
-
column :name, header: I18n.t('vouchers.fields.name')
|
8
|
-
|
9
|
-
column :date_from, header: I18n.t('vouchers.fields.date_from') do |voucher|
|
10
|
-
voucher.date_from.strftime('%d/%m/%Y')
|
11
|
-
end
|
12
|
-
|
13
|
-
column :date_to, header: I18n.t('vouchers.fields.date_to') do |voucher|
|
14
|
-
voucher.date_to.strftime('%d/%m/%Y')
|
15
|
-
end
|
16
|
-
|
17
|
-
include Admix::TableActions
|
18
|
-
end
|
@@ -1,6 +0,0 @@
|
|
1
|
-
= f.input :name, label: t('vouchers.fields.name')
|
2
|
-
= f.input :date_from, label: t('vouchers.fields.date_from'), as: 'datepicker'
|
3
|
-
= f.input :date_to, label: t('vouchers.fields.date_to'), as: 'datepicker'
|
4
|
-
= f.input :photo, label: t('vouchers.fields.photo'), as: :file
|
5
|
-
= f.input :rules, label: t('vouchers.fields.rules'), as: :text, input_html: {class: 'niceditor'}
|
6
|
-
= f.input :partner_photo, label: t('vouchers.fields.partner_photo'), as: :file
|