|
|
|
|
@ -18,7 +18,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% elsif field['type'].in?(%w[multiple radio]) && area['option_uuid'] %>
|
|
|
|
|
<% option = field['options']&.find { |o| o['uuid'] == area['option_uuid'] } %>
|
|
|
|
|
<% if option && Array.wrap(value).include?(option['value']) %>
|
|
|
|
|
<% option_name = option['value'].presence || "Option #{field['options'].index(option) + 1}" %>
|
|
|
|
|
<% if option && Array.wrap(value).include?(option_name) %>
|
|
|
|
|
<div class="w-full flex items-center justify-center">
|
|
|
|
|
<%= svg_icon('check', class: "aspect-square #{area['w'] > area['h'] ? '!w-auto !h-full' : '!w-full !h-auto'}") %>
|
|
|
|
|
</div>
|
|
|
|
|
|