Sha256: 7b01403fb41bda28cc6dc796680e841277f9db2e04e5a84d007e40fe614bc7e0
Contents?: true
Size: 834 Bytes
Versions: 4
Compression:
Stored size: 834 Bytes
Contents
= f.simple_fields_for attribute, f.object.public_send(attribute) do |fd| .blood-pressure class=('with-errors' if fd.object.errors.any?) .row .small-5.medium-4.large-3.columns = fd.label :age, f.object.class.human_attribute_name(attribute), class: "right inline" .small-2.medium-1.columns = fd.input :systolic, as: :integer, placeholder: "syst", error: false, label: false, wrapper: "vertical_form" .small-2.medium-1.columns.end = fd.input :diastolic, as: :integer, placeholder: "dias", error: false, label: false, wrapper: "vertical_form" - if fd.object.errors.any? .row .error.small-offset-5.medium-offset-4.large-offset-3.small-3.columns =fd.error(:systolic) || fd.error(:diastolic)
Version data entries
4 entries across 4 versions & 1 rubygems