Sha256: 6f9eed810f83d8420469e2a0c1fa6293b05695bf682618959a5e190841e9187c

Contents?: true

Size: 1.76 KB

Versions: 10

Compression:

Stored size: 1.76 KB

Contents

ol.breadcrumb.alert-warning
  li.active Operations

.row
  .col-sm-12
    .panel
      .panel-heading
        h1.panel-title Operations

      .panel-body
        table.table.table-striped.table-hover#operations
          thead
            tr
              th Title
              th Status
              th Assignment
              th Created At
              th

          tbody
            - @operations.each do |operation|
              tr
                td = link_to operation.title, process_operation_path(operation.process, operation)
                td
                  span.label<> class=(operation.status[:class])
                    = operation.status[:text]
                td = operation.assigned_to
                td = operation.created_at
                td
                  - if operation.can_be_started_by?(current_user)
                    = button_to 'Start', pickup_operation_path(operation), class: "btn btn-primary btn-sm", method: :put
                  - if current_operation == operation
                    = button_to 'Navigate to', navigate_to_operations_path, class: "btn btn-primary btn-sm", method: :get
                    = button_to 'Complete', complete_operations_path, class: "btn btn-primary btn-sm", method: :get
                    = button_to 'Postpone', postpone_operations_path, class: "btn btn-primary btn-sm", method: :get
                    = button_to 'Skip', skip_operations_path, class: "btn btn-primary btn-sm", method: :get
                    = button_to 'Cancel', cancel_operations_path, class: "btn btn-primary btn-sm", method: :get
                  - if operation.can_be_continued_by?(current_user, current_operation)
                    = button_to 'Continue', continue_operation_path(operation), class: "btn btn-primary btn-sm", method: :get

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_workflow-0.7.3 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.7.2 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.7.1 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.7.0 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.4.4 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.4.3 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.4.2 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.4.1 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.4.0 app/views/rails_workflow/operations/index.html.slim
rails_workflow-0.3.9 app/views/rails_workflow/operations/index.html.slim