Sha256: 62a83bdc71ac3d85c0e20f36bb1686258394e40d3bee2fc6cfbbfddead3315f6

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

div(data-controller="tabs" data-tabs-active-tab="active")
  .tabs-container
    ul.list-reset.sub-nav
      - groups.each do |group|
        li(data-target="tabs.tab" data-action="click->tabs#change")
          a(class="" href="#" data-trigger-masonry-refresh="true")= group.title

  - groups.each do |group|
    .hidden(data-target="tabs.panel")
      table.prescriptions-list
        thead
          tr
            th.at-least.col-width-mediumish= t(".drug_name")
            - if group.show_drug_types
              th.col-width-small= t(".drug_type")
            th.col-width-small= t(".dose")
            th.col-width-tiny= t(".frequency")
            th.col-width-tiny= t(".route")
            - if group.show_administer_on_hd
              th.col-width-small= t(".administer_on_hd")
            th.col-width-tiny=t(".provider")
            th.col-width-date= t(".started_on")
            - if group.show_terminated_on
              th.col-width-date= t(".terminated_on")
        tbody
          - group.prescriptions.each do |prescription|
            tr class="drug-#{drug_types_colour_tag(prescription.drug_types)}"
              td= prescription.drug.name
              - if group.show_drug_types
                td= prescription.drug_type_names
              td= prescription.dose
              td= prescription.frequency
              td= prescription.route_code
              - if group.show_administer_on_hd
                td= prescription.administer_on_hd?
              td
                /- byebug
                = prescription.provider
              td= I18n.l prescription.prescribed_on
              - if group.show_terminated_on
                td= l(prescription.terminated_on)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
renalware-core-2.0.160 app/components/renalware/medications/tabbed_prescriptions_list_component.html.slim
renalware-core-2.0.159 app/components/renalware/medications/tabbed_prescriptions_list_component.html.slim
renalware-core-2.0.158 app/components/renalware/medications/tabbed_prescriptions_list_component.html.slim
renalware-core-2.0.157 app/components/renalware/medications/tabbed_prescriptions_list_component.html.slim
renalware-core-2.0.156 app/components/renalware/medications/tabbed_prescriptions_list_component.html.slim
renalware-core-2.0.155 app/components/renalware/medications/tabbed_prescriptions_list_component.html.slim