Sha256: 6f6a6111149211c050f566e9cd431110f7b5cf03fef04e4cc9280a5477ef51ae

Contents?: true

Size: 1.33 KB

Versions: 52

Compression:

Stored size: 1.33 KB

Contents

/ line 1 of the address and the postcode are provided by a feed, so when editing a patient address
/ the caller will pass in a controlled_by_feed_options hash - probably containing a data attribute
/ which will cause the input to be disabled.
/ When editing other kinds of addresses, or adding a new patient address, controlled_by_feed_options
/ is not passed in.
- controlled_by_feed_options = (defined?(:controlled_by_feed_options) && controlled_by_feed_options).presence || {}

= a.input :street_1, wrapper: :horizontal_large, input_html: controlled_by_feed_options
= a.input :street_2, wrapper: :horizontal_large, input_html: controlled_by_feed_options
= a.input :street_3, wrapper: :horizontal_large, input_html: controlled_by_feed_options
= a.input :town, wrapper: :horizontal_medium, input_html: controlled_by_feed_options
= a.input :county, wrapper: :horizontal_small, input_html: controlled_by_feed_options
= a.input :postcode, wrapper: :horizontal_small, input_html: controlled_by_feed_options
= a.input :country_id,
          collection: Renalware::System::Country.pluck(:name, :id),
          wrapper: :horizontal_small,
          input_html: controlled_by_feed_options
= a.input :telephone, wrapper: :horizontal_medium, input_html: controlled_by_feed_options
= a.input :email, wrapper: :horizontal_medium, input_html: controlled_by_feed_options

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/views/renalware/addresses/_form.html.slim
renalware-core-2.1.0 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.167 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.166 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.165 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.164 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.163 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.162 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.161 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.160 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.159 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.158 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.157 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.156 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.155 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.153 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.152 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.151 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.149 app/views/renalware/addresses/_form.html.slim
renalware-core-2.0.148 app/views/renalware/addresses/_form.html.slim