templus_models 2.0.16 → 3.0.4
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.
- checksums.yaml +4 -4
- data/app/controllers/crud_controller.rb +59 -117
- data/app/helpers/crud_helper.rb +17 -43
- data/app/helpers/search_helper.rb +18 -47
- data/app/raro_crud/raro_crud.rb +186 -190
- data/app/views/crud/_form.html.erb +11 -3
- data/app/views/crud/_record.html.erb +14 -30
- data/app/views/crud/_records.html.erb +51 -51
- data/app/views/crud/_search.html.erb +28 -28
- data/app/views/crud/_shared.html.erb +94 -105
- data/app/views/crud/listing.pdf.erb +41 -48
- data/app/views/crud/listing.xls.erb +39 -44
- data/app/views/crud/printing.pdf.erb +55 -50
- data/config/initializers/raro_search.rb +0 -7
- data/lib/templus_models/version.rb +1 -1
- data/lib/templus_models.rb +1 -1
- data/test/dummy/config/locales/pt-BR.yml +3 -4
- metadata +631 -633
- data/app/helpers/attributes_helper.rb +0 -32
- data/app/helpers/imagens_helper.rb +0 -15
@@ -12,13 +12,6 @@ Ransack.configure do |config|
|
|
12
12
|
validator: proc { |v| v.present? },
|
13
13
|
compounds: true,
|
14
14
|
type: :string
|
15
|
-
|
16
|
-
config.add_predicate 'has_any_term',
|
17
|
-
arel_predicate: 'matches_any',
|
18
|
-
formatter: proc { |v| ["% #{v} %", "% #{v}", "#{v} %", "#{v}"] },
|
19
|
-
validator: proc { |v| v.present? },
|
20
|
-
compounds: true,
|
21
|
-
type: :string
|
22
15
|
end
|
23
16
|
|
24
17
|
module Kaminari
|
data/lib/templus_models.rb
CHANGED
@@ -144,7 +144,6 @@
|
|
144
144
|
not_contains: "Não Contém"
|
145
145
|
begins: "Começa"
|
146
146
|
ends: "Termina"
|
147
|
-
word: "Palavra"
|
148
147
|
menu:
|
149
148
|
entitys: "Cadastros"
|
150
149
|
true: Sim
|
@@ -159,7 +158,7 @@
|
|
159
158
|
- Sex
|
160
159
|
- Sáb
|
161
160
|
abbr_month_names:
|
162
|
-
-
|
161
|
+
-
|
163
162
|
- Jan
|
164
163
|
- Fev
|
165
164
|
- Mar
|
@@ -185,7 +184,7 @@
|
|
185
184
|
long: ! '%d de %B de %Y'
|
186
185
|
short: ! '%d de %B'
|
187
186
|
month_names:
|
188
|
-
-
|
187
|
+
-
|
189
188
|
- Janeiro
|
190
189
|
- Fevereiro
|
191
190
|
- Março
|
@@ -359,4 +358,4 @@
|
|
359
358
|
<<: *errors
|
360
359
|
activerecord:
|
361
360
|
errors:
|
362
|
-
<<: *errors
|
361
|
+
<<: *errors
|