Sha256: 8acbd4113ca115453615dd32e7b470d1947311d50cd58476e73b6c07264befe9

Contents?: true

Size: 2 KB

Versions: 2

Compression:

Stored size: 2 KB

Contents

ol.breadcrumb.alert-warning
  li
    = link_to "Configuration", process_templates_path
  li
    = link_to "Template: #{parent.title}", process_template_path(parent)
  li.active
    = "Add #{resource.type_title}"

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

.row
  .col-md-10
    .panel
      .panel-heading
        h1.panel-title
          = "Add #{resource.type_title}"
      .panel-body

        = form_for [parent, resource], html: {class: "form-horizontal clearfix"} do |f|
          = render partial: resource.form, locals: {f: f}
          .form-group
            = f.label :dependencies, class: "control-label col-sm-2"
            .col-sm-10
              - if resource.other_operations.blank?
                .checkbox
                  label
                    | There is no other operations in this process template.

              - resource.other_operations.each_with_index do |depends_on, index|
                - matched_dependency = resource.dependencies.detect { |d| d['id'] == depends_on.id }
                .panel.panel-warning
                  .panel-heading
                    .checkbox
                      label
                        = check_box_tag "operation_template[dependencies][#{index}][id]", depends_on.id, matched_dependency.present?
                        strong
                          = depends_on.title
                  .panel-body

                    - depends_on.get_status_values.each do |status|
                      - status_matched = matched_dependency && matched_dependency['statuses'].include?(status[0])
                      .checkbox-inline
                        label
                          = check_box "operation_template[dependencies][#{index}]", "statuses", {multiple: true, checked: status_matched}, status[0].to_s, nil
                          = status[1]
          .btn-toolbar.pull-right
            = link_to 'Back', process_template_operation_templates_path(parent), class: "btn btn-default"
            = f.submit value: 'Save', class: "btn btn-success"


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_workflow-0.2.1 app/views/rails_workflow/operation_templates/new.html.slim
rails_workflow-0.2.0 app/views/workflow/operation_templates/new.html.slim