Sha256: b23324bdaa0c505e0cb4da96751f0b3e2955b3dbbcd27236a1d30e77ff9fb851

Contents?: true

Size: 1.4 KB

Versions: 9

Compression:

Stored size: 1.4 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

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta12 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.0.pre.beta9 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.0.pre.beta4 app/views/renalware/pd/regime_bags/_form.html.slim