Sha256: 04abbbe0e9bae41f1b1b85580c2b82b9f238cb9cf735ada6e72e4b04678af5cb

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 KB

Contents

- if results.any?

  article(data-controller="tabs" data-tabs-active-tab="opacity-100" data-tabs-index="0")
    header
      h2= title

      .flex.justify-end

        .inline-flex
          a.reset.opacity-50.bg-white.m-05.pt-px.pb-0.px-1(href="#" data-tabs-target="tab"
            data-action="click->tabs#change")
            svg.h-6.w-6.fill-current.text-black xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
              path d="M1 4h2v2H1V4zm4 0h14v2H5V4zM1 9h2v2H1V9zm4 0h14v2H5V9zm-4 5h2v2H1v-2zm4 0h14v2H5v-2z"

          a.reset.opacity-50.bg-white.m-0.pt-px.px-2(data-tabs-target="tab" href="#"
            data-action="click->tabs#change")
            svg.h-6.w-6.stroke-current.text-black viewBox="0 0 24 26"  stroke-width="3" stroke-linecap="round" stroke-linejoin="round"
              path d="M12 20V10M18 20V4M6 20v-4"

        = link_to t("btn.show_all"), renalware.patient_pd_pet_results_path(patient), remote: true, class: "float-none button flex-initial secondary"
        = link_to t("btn.add"), renalware.new_patient_pd_pet_result_path(patient), class: "float-none button flex-initial"

    div#pet-results-table data-tabs-target="panel"

      = render "renalware/pd/pet_results/table",
               patient: patient,
               results: results,
               pagination: pagination,
               current_user: current_user

    .chart.hidden.mt-5 data-tabs-target="panel"
      div(style="display:block; position:relative; height: 400px; width: 100%; text-align: center; margin-bottom: 20px")
        #containerx(data-controller="pd-pet-chart"
                    data-pd-pet-chart-url=renalware.patient_pd_pet_results_path(patient, format: :json)
                    style="position: absolute; left: 0; top: 30px; max-width: 700px")

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/components/renalware/pd/pet_results_component.html.slim
renalware-core-2.1.0 app/components/renalware/pd/pet_results_component.html.slim