Sha256: 48d862ad175f3cb8395983f84e2c811b2ec106a2769a47a18ac3210aaa8553ca

Contents?: true

Size: 1.89 KB

Versions: 18

Compression:

Stored size: 1.89 KB

Contents

ruby:
  new_template_path = -> (type) do
    new_process_template_operation_template_path(@process_template.id, operation_template: {kind: type} )
  end

ol.breadcrumb.alert-warning
  li
    = link_to "Configuration", process_templates_path
  li.active
    = "Template: #{@process_template.title}"

= render partial: "application/flash", locals: { notice: notice }

.row
  .col-sm-10
    .panel
      .panel-heading
        h1.panel-title Templates Configuration

      .panel-body

        table.table.table-striped.table-hover
          tbody
            tr
              td
                strong Process manager
              td = @process_template.manager_class

            tr
              td
                strong Process class
              td = @process_template.process_class

            tr
              td
                strong Process Template class
              td = @process_template.type

  .col-sm-2
    .row
      .btn-group
        = button_to "Create Process", {controller: "processes", action: "create", process: {template_id: @process_template.id}}, method: :post, class: "btn btn-lg btn-success"
      br
      br
      .btn-group
        button.btn.btn-primary.dropdown-toggle type="button" data-toggle="dropdown" aria-expanded="false"
          | Add Operation
          span.caret<>
        ul.dropdown-menu role="menu"
          - RailsWorkflow::OperationTemplate.types.each do |type, value|
            li
              = link_to value[:title], new_template_path.call(type)

      br
      br
      .btn-group
        = link_to 'Edit', edit_process_template_path(@process_template), class: "btn btn-primary"
      br
      br
      .btn-group
        = link_to 'Export', export_process_template_path(@process_template), class: "btn btn-primary"
      br
      br
      .btn-group
        = link_to 'Operations', process_template_operation_templates_path(@process_template), class: "btn btn-primary"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rails_workflow-0.7.3 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.7.2 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.7.1 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.7.0 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.4.4 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.4.3 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.4.2 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.4.1 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.4.0 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.9 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.7 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.6 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.5 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.4 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.3 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.2 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.1 app/views/rails_workflow/process_templates/show.html.slim
rails_workflow-0.3.0 app/views/rails_workflow/process_templates/show.html.slim