Sha256: 9032253579c833f6d5168f3a4dee71ef413c9fbe6dc744e3733b5e2687a12b60

Contents?: true

Size: 1.41 KB

Versions: 168

Compression:

Stored size: 1.41 KB

Contents

= rb.hidden_field :regime_id

.row
  .large-5.columns.inline
    = rb.association :bag_type,
                      collection: bag_types,
                      include_blank: t("collection.blank_option"),
                      input_html: { class: "bag-types" }

  .large-3.columns.inline
    = rb.input :volume,
                collection: regime.class::BAG_VOLUMES,
                include_blank: t("collection.blank_option"),
                wrapper_class: "small-12 medium-12"

  .large-2.columns
    .right
      = link_to "Duplicate", "#", class: "duplicate-bag"
      | | 
      = rb.submit "Remove", name: "actions[remove][#{rb.index}]", class: "right remove-bag"
      = rb.link_to_remove "Remove", class: "remove-bag hide"

-if regime.apd?
  .row
    .small-12.columns
      = rb.input :role,
                 as: :inline_radio_buttons,
                 boolean_style: :inline

-if regime.capd?
  .row
    .small-12.columns
      = rb.input :capd_overnight_bag,
                 as: :inline_radio_buttons

.row.bag-days
  .large-12.columns class="#{highlight_days_invalid(rb.object)}"
    .title
      label Days to be administered:
      a.deselect-bag-days(href="#") Deselect all
    div
      - Date::DAYNAME_SYMBOLS.each do |day|
        = rb.input day,
                   as: :boolean,
                   boolean_style: :inline,
                   wrapper: false,
                   label_html: { class: "nested" }

Version data entries

168 entries across 168 versions & 1 rubygems

Version Path
renalware-core-2.0.147 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.146 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.145 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.144 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.143 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.142 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.141 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.140 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.139 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.138 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.137 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.136 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.135 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.134 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.133 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.132 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.131 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.130 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.129 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.128 app/views/renalware/pd/regime_bags/_form.html.slim