Sha256: 7c60fb5e588055ebef5d26e0d4c8bc31f2f82d3f9608b804d8cc4a1076ff267b

Contents?: true

Size: 807 Bytes

Versions: 3

Compression:

Stored size: 807 Bytes

Contents

= simple_form_for [@task, (@task_comment || @task.comments.new)] do |f|
  table
    thead
      tr
        th = Flyboy::TaskComment.human_attribute_name(:progress)
        th = Flyboy::TaskComment.human_attribute_name(:description)
        th
    tbody
      tr
        td.task_progress
          = f.input :progress, label: false

        td.description
          = f.input :description, label: false

        td.actions
          input.btn.btn-success type="submit" value=t("actions.create")

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

          td.description
            p: small
              span.date = l(comment.date)

            p = text2html comment.description

          td.actions

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flyboy-1.1.0 app/views/flyboy/task_comments/_list.html.slim
flyboy-1.0.7 app/views/flyboy/task_comments/_list.html.slim
flyboy-1.0.6 app/views/flyboy/task_comments/_list.html.slim