tramway-event 1.6.1 → 1.6.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbbe77857b2e956cbb82a8387bab4b6e495432f7cac6c3be31a682810cd7393a
|
4
|
+
data.tar.gz: 1dd244530d84808010c85c11af5267d9778f493e08ebd9edf9f6e9f6c97fdbde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8af8ceba49a7dd8c72a5529f85ded447c0101dc408ce0a83d8b0f11b8d0871fa391f893d4aaa378fc44c82a131a48f9cd73768bc7254de281599e98b02814573
|
7
|
+
data.tar.gz: b2932800814e3086c4d0c22b55ee260c8a1288141372a7774481fb1b6f503be706d32807c71113b82a87b730ed775a5dacee11e2ee71aaf9cc3e696de4c09d23
|
@@ -23,13 +23,14 @@ class Tramway::Event::ParticipantDecorator < ::Tramway::Core::ApplicationDecorat
|
|
23
23
|
def list_fields
|
24
24
|
content_tag :table, class: :table do
|
25
25
|
object.event.participant_form_fields.map do |field|
|
26
|
-
|
26
|
+
hash = field.options.is_a?(Hash) ? field.options : JSON.parse(field.options.present? ? field.options : '{}')
|
27
|
+
if hash.dig('list_field') == 'true'
|
27
28
|
concat(content_tag(:tr) do
|
28
29
|
concat(content_tag(:td) do
|
29
30
|
field.title
|
30
31
|
end)
|
31
32
|
concat(content_tag(:td) do
|
32
|
-
object.values
|
33
|
+
object.values&.dig( field.title )
|
33
34
|
end)
|
34
35
|
end)
|
35
36
|
end
|