Sha256: 9dff4ea5b1165c8be9d217a46ea4e8e384b65c941eef662ae6a2107281140ae5

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

= simple_form_for (@task_comment || @task.comments.new), as: :task_comment do |f|
  .panel.panel-default: table
    thead
      tr
        th.task_comment-progress
          = Dorsale::Flyboy::TaskComment.t(:progress)

        th.task_comment-description
          = Dorsale::Flyboy::TaskComment.t(:description)

    tbody
      - if policy(@task).comment?
        tr#new_task_comment_tr
          td.task_comment-progress
            = f.input :progress, label: false

          td.task_comment-content
            = f.hidden_field :task_id

            .textarea-input-group
              = f.text_area :description, rows: 3, class: "form-control"
              input type="submit" value=t("actions.save")


      - @task.reload.comments.map do |comment|
        tr.task_comment
          td.task_comment-progress
            = progress_bar percentage: comment.progress, label: true

          td.task_comment-content
            p: small
              span.task_comment-date = date(comment.date)
              = " "
              = comment.t(:written_by)
              = " "
              span.task_comment-author = comment.author

            p.task_comment-description = text2html comment.description

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dorsale-3.7.1 app/views/dorsale/flyboy/task_comments/_list.html.slim
dorsale-3.7.0 app/views/dorsale/flyboy/task_comments/_list.html.slim