Sha256: a82f717fd8ffee768cb819ec32fa551f4c69e5fc0cb69edb2193aefe2f2eed81

Contents?: true

Size: 934 Bytes

Versions: 34

Compression:

Stored size: 934 Bytes

Contents

tr(class=letter.state.dasherize)
  td
    = link_to "Toggle", "#quick-preview-#{letter.id}", data: { behaviour: "toggler" }
    = pipe_separator
    = link_to letter.view_label, patient_letters_letter_path(letter.patient, letter)
    - if policy(letter).update?
      = pipe_separator
      = link_to "Edit", edit_patient_letters_letter_path(letter.patient, letter)
    - if policy(letter).destroy?
      = pipe_separator
      = link_to "Delete",
                patient_letters_letter_path(letter.patient, letter),
                method: :delete,
                data: { confirm: I18n.t("prompts.confirm_delete") }

  td.state
    span= letter.state_description
  td= l(letter.issued_on)
  td= letter.author
  td.recipient= letter.main_recipient.address
  td= letter.description

= content_tag(:tr, id: "quick-preview-#{letter.id}", style: "display: none")
  td
  td(colspan=7)
    .quick-preview
      = simple_format letter.body

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
renalware-core-2.0.15 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.14 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.13 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.12 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.11 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.9 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.8 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.7 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.5 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.4 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.3 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.2 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.1 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.0 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.0.pre.rc13 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.0.pre.rc11 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.0.pre.rc10 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.0.pre.rc9 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/letters/letters/_letter.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/letters/letters/_letter.html.slim