Sha256: ad4afc89be82c6df9d46d69c1d202f15ddcd397473c8b5c09703cb45c91b7168
Contents?: true
Size: 1.68 KB
Versions: 6
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 admin_workflow_role_path(responsibility_presenter.responsibility), method: :delete, data: { confirm: t('.delete.confirm') } do %> <span class="delete">×</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 CurationConcerns::Forms::WorkflowResponsibilityForm.new, url: 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
6 entries across 6 versions & 1 rubygems