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.1.1 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.1.0 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.167 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.166 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.165 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.164 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.163 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.162 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.161 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.160 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.159 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.158 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.157 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.156 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.155 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.153 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.152 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.151 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.149 app/views/renalware/pd/regime_bags/_form.html.slim
renalware-core-2.0.148 app/views/renalware/pd/regime_bags/_form.html.slim