Sha256: d71b19d8fb0166fe89fb77883b426facbf650350093197e2e8d3434312393b16

Contents?: true

Size: 1.61 KB

Versions: 5

Compression:

Stored size: 1.61 KB

Contents

<div id="workflow_controls" class="card panel-workflow">
  <button data-toggle="collapse" data-target="#workflow_controls_collapse" class="btn">
    <div class="card-header">
        <h2 class="card-title"><%= t('.title') %> <span class="fa fa-chevron-right float-right"></span></h2>
    </div>
  </button>
  <%= form_tag main_app.hyrax_workflow_action_path(presenter), method: :put do %>
    <div id="workflow_controls_collapse" class="card-body collapse">
      <div class="row">
        <div class="col-sm-3 workflow-actions">
          <h3><%= t('.actions') %></h3>

          <% presenter.workflow.actions.each do |key, label| %>
            <div class="form-check">
              <label class="form-check-label">
                <%= radio_button_tag 'workflow_action[name]', key, key == 'comment_only', class: 'form-check-input' %>
                <%= label %>
              </label>
            </div>
          <% end %>
        </div>
        <div class="col-sm-9 workflow-comments">
          <div class="form-group">
            <label for="workflow_action_comment"><%= t('.review_comment') %>:</label>
            <textarea class="form-control" name="workflow_action[comment]" id="workflow_action_comment"></textarea>
          </div>

          <input class="btn btn-primary" type="submit" value="Submit" />

          <h4><%= t('.previous_comments') %></h4>
          <dl>
            <% presenter.workflow.comments.each do |comment| %>
              <dt><%= comment.name_of_commentor %></dt>
              <dd><%= comment.comment %></dd>
            <% end %>
          </dl>
        </div>
      </div>
    </div>
  <% end %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-5.0.2 app/views/hyrax/base/_workflow_actions.html.erb
hyrax-5.0.1 app/views/hyrax/base/_workflow_actions.html.erb
hyrax-5.0.0 app/views/hyrax/base/_workflow_actions.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/base/_workflow_actions.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/base/_workflow_actions.html.erb