Sha256: 7211c79a37b236fb5201192afb3b2abcd80f17c2599ab1ee2192db83dfb77591

Contents?: true

Size: 1.04 KB

Versions: 41

Compression:

Stored size: 1.04 KB

Contents

- if notes.blank?
  #new-note-area
    spam No notes

- else
  table.auto-layout
    thead
      - unless problem.archived?
        th.col-width-tiny
      th Description
      th.col-width-medium Recorded By
      th.col-width-date-time Recorded On

    tbody
      - notes.each do |note|
        tr
          - unless problem.archived?
            td
              - if policy(note).edit?
                = link_to "Edit",
                          edit_patient_problem_note_path(problem.patient, problem, note),
                          remote: true
              - if policy(note).destroy?
                = pipe_separator
                = link_to "Delete",
                          patient_problem_note_path(problem.patient, problem, note),
                          method: :delete,
                          remote: true,
                          data: { confirm: "Are you sure you want to delete this note?" }
          td(class="problem-note-#{note.id}")= note.description
          td= note.updated_by
          td= l(note.updated_at)

  #new-note-area

Version data entries

41 entries across 41 versions & 1 rubygems

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