262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
|
# File 'app/components/marty/base_rule_view.rb', line 262
def default_form_items_guards
with_not_fields = form_items_guards.any? { |h| h.key?(:not_field) }
guards = form_items_guards.map do |h|
if with_not_fields
hbox(
vbox(h.fetch(:field), width: '78%', border: false),
vbox(width: '2%', border: false),
vbox(h.fetch(:not_field, nil), width: '20%', border: false),
width: '100%',
border: false
)
else
hbox(
vbox(h.fetch(:field), width: '100%', border: false),
width: '100%',
border: false
)
end
end
end
|