app/views/spotlight/roles/index.html.erb in blacklight-spotlight-3.6.0.beta10 vs app/views/spotlight/roles/index.html.erb in blacklight-spotlight-4.0.0
- old
+ new
@@ -16,24 +16,24 @@
<%= render partial: 'edit_fields', locals: {f: r} %>
<tr data-edit-for="new">
<td></td>
<td colspan=2>
<div class="form-actions d-flex justify-content-end">
- <%= cancel_link r.object, '#', class: 'btn-sizing', data: {behavior: 'cancel-edit' } %>
+ <%= cancel_link r.object, '#', class: 'btn btn-link', role: 'button', data: { behavior: 'cancel-edit' } %>
<%=f.submit nil, class: 'btn btn-primary'%>
</div>
</td>
</tr>
<% else %>
<tr data-show-for="<%= r.object.id %>" class="<%= 'invite-pending' if r.object.user.invite_pending? %>">
<td>
<%= r.object.user.to_s %>
- <span class='badge badge-warning pending-label'><%= t('.invite_pending') %></span>
+ <span class='badge badge-warning bg-warning pending-label'><%= t('.invite_pending') %></span>
</td>
<td><%= r.object.role.humanize %></td>
<td>
- <%= link_to "#", data: {behavior: 'edit-user', target: r.object.id } do %>
+ <%= link_to "#", data: { behavior: 'edit-user', target: r.object.id } do %>
<%= blacklight_icon('edit') %>
<% end %>
</td>
</tr>
<%= render partial: 'edit_fields', locals: {f: r} %>
@@ -41,10 +41,10 @@
<td><%= f.submit action_label(r.object, :destroy), class: 'btn btn-danger', data: { behavior: 'destroy-user', target: r.object.id} %>
<%= r.hidden_field :_destroy, data: {'destroy-for' => r.object.id} %>
</td>
<td colspan=2>
<div class="form-actions d-flex justify-content-end">
- <%= cancel_link r.object, '#', class: 'btn-sizing', data: {behavior: 'cancel-edit' } %>
+ <%= cancel_link r.object, '#', class: 'btn btn-link', role: 'button', data: { behavior: 'cancel-edit' } %>
<%=f.submit nil, class: 'btn btn-primary'%>
</div>
</td>
</tr>
<% end %>