Sha256: eb6bea2e4db87a670a1868d401cb95f8e2c992cbc45749dcc0f640c557a91977

Contents?: true

Size: 1.26 KB

Versions: 119

Compression:

Stored size: 1.26 KB

Contents

article.letter-form-problems-and-prescriptions
  header
    h2 Problems and Prescriptions
    .supplemental
      = link_to "Toggle",
                "#problems_prescriptions",
                class: "button secondary",
                data: { behaviour: "css-toggler" }
  #problems_prescriptions.expandable
    .row
      .columns.small-12.large-6
        / Note we wrap the Part instance in an array here. This is because the Part
        / delegates to its underling problems array, so it is itself 'array-like'.
        / The render(object) call below ignores any #to_partial_path method on object if
        / object is an array and instead only calls to_partial_path (if found) on array elements.
        / So, in order for the to_partial_path to get called on the array-like Parts::Problems,
        / we need to wrap it an array. We also use the 'render Part' approach when rendering
        / a formatted letters, but the LetterPresenter has an array of parts anyway (with parts
        / for problems, prescriptions, contacts) etc - so this problem is already handled there.
        = render [Renalware::Letters::Part::Problems.new(letter.patient, letter)]
      .columns.small-12.large-6
        = render [Renalware::Letters::Part::Prescriptions.new(letter.patient, letter)]

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
renalware-core-2.0.167 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.166 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.165 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.164 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.163 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.162 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.161 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.160 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.159 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.158 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.157 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.156 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.155 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.153 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.152 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.151 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.149 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.148 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.147 app/views/renalware/letters/letters/_problems_prescriptions.html.slim
renalware-core-2.0.146 app/views/renalware/letters/letters/_problems_prescriptions.html.slim