app/views/hyrax/base/_form_share.html.erb in hyrax-3.0.0.pre.rc3 vs app/views/hyrax/base/_form_share.html.erb in hyrax-3.0.0.pre.rc4

- old
+ new

@@ -47,41 +47,13 @@ </button> <br /> <span id="directory_user_result"></span> </div> </fieldset> -<h2><%= t('.currently_sharing') %></h2> +<%= render 'currently_shared', f: f %> -<table class="table"> - <tr id="file_permissions"> - <td width="20%"> - <%= configured_owner_permission_levels.keys.first %> - </td> - <td width="60%"> - <%= label_tag :owner_access, class: "control-label" do %> - <%= t('.depositor') %>(<span id="file_owner" data-depositor="<%= depositor %>"><%= link_to_profile depositor %></span>) - <% end %> - </td> - </tr> - <%= f.fields_for :permissions do |permission_fields| %> - <%# skip the public, registered, and depositor perms as they are displayed first at the top %> - <% next if ['public', 'registered', depositor].include? permission_fields.object.agent_name.downcase %> - <tr> - <td> - <%= permission_fields.select :access, configured_permission_levels, {}, class: 'form-control select_perm' %> - </td> - <td> - <%= permission_fields.label :agent_name, class: "control-label" do %> - <%= user_display_name_and_key(permission_fields.object.agent_name) %> - <% end %> - <button class="btn close remove_perm" data-index="<%= permission_fields.index %>">&times;</button> - </td> - </tr> - <% end %> -</table> - <script type="text/x-tmpl" id="tmpl-work-grant"> -<tr> - <td>{%= o.accessLabel %}</td> - <td><label class="control-label">{%= o.name %}</label> <button class="btn close">&times;</button></td> -</tr> + <tr> + <td><label class="control-label">{%= o.name %}</label></td> + <td><div class="col-sm-10">{%= o.accessLabel %}<button class="btn close">&times;</button></div></td> + </tr> </script>