Sha256: b6cf917a79c947d153699af06b28a5a0feec3b1c3b96718bf6b0da213004c451
Contents?: true
Size: 772 Bytes
Versions: 3
Compression:
Stored size: 772 Bytes
Contents
- value = defined?(value).present? ? value : '' - case field.field_type - when 'text', 'string', 'numeric', 'date_picker', 'file' = render 'tramway/shared/input_extended_types/simple', value: value, field: field, class_name: class_name, f: f - when 'select' = render 'tramway/shared/input_extended_types/select', value: value, field: field, class_name: class_name, f: f - when 'yes_no' = render 'tramway/shared/input_extended_types/yes_no', value: value, field: field, class_name: class_name, f: f - when 'checkbox' = render 'tramway/shared/input_extended_types/checkbox', value: value, field: field, class_name: class_name, f: f - if params[:errors].present? && params[:errors][field.title]&.first .alert.alert-danger = params[:errors][field.title]&.first
Version data entries
3 entries across 3 versions & 1 rubygems