Sha256: aa78fde5b609050ae099382e3c1d2a4c82ce6d733bff838623f515783dbeefa0

Contents?: true

Size: 1.68 KB

Versions: 9

Compression:

Stored size: 1.68 KB

Contents

<div class="<%= "dashboard-#{action_name}" %>">
  <div class="wrapper">
    <div class="widget widget-default">
      <table class="table table-striped">
        <thead>
          <th><%= t('.header.user') %></th>
          <th><%= t('.header.roles') %></th>
        </thead>
        <tbody>
        <% @presenter.users.each do |user| %>
          <tr>
            <td><%= user.user_key %></td>
            <% agent_presenter = @presenter.presenter_for(user) %>
            <% if agent_presenter && agent_presenter.responsibilities_present? %>
              <td>
                <ul>
                  <% agent_presenter.responsibilities do |responsibility_presenter| %>
                    <li><%= responsibility_presenter.label %>
                      <%= link_to hyrax.admin_workflow_role_path(responsibility_presenter.responsibility),
                                  method: :delete,
                                  data: { confirm: t('.delete.confirm') } do %>
                        <span class="delete">&times;</span>
                      <% end %>
                    </li>
                  <% end %>
                </ul>
              </td>
            <% else %>
              <td><%= t('.no_roles') %></td>
            <% end %>
          </tr>
        <% end %>
        </tbody>
      </table>

      <h2><%= t('.new_role') %></h2>
      <%= simple_form_for Hyrax::Forms::WorkflowResponsibilityForm.new, url: hyrax.admin_workflow_roles_path do |f| %>
        <%= f.input :user_id, as: :select, collection: f.object.user_options %>
        <%= f.input :workflow_role_id, as: :select, collection: f.object.workflow_role_options %>
        <%= f.submit %>
      <% end %>
    </div>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/admin/workflow_roles/index.html.erb
hyrax-1.1.0 app/views/hyrax/admin/workflow_roles/index.html.erb
hyrax-1.0.5 app/views/hyrax/admin/workflow_roles/index.html.erb
hyrax-1.0.4 app/views/hyrax/admin/workflow_roles/index.html.erb
hyrax-1.0.3 app/views/hyrax/admin/workflow_roles/index.html.erb
hyrax-1.0.2 app/views/hyrax/admin/workflow_roles/index.html.erb
hyrax-1.0.1 app/views/hyrax/admin/workflow_roles/index.html.erb
hyrax-1.0.0.rc2 app/views/hyrax/admin/workflow_roles/index.html.erb
hyrax-1.0.0.rc1 app/views/hyrax/admin/workflow_roles/index.html.erb