Sha256: b65b9be02815f131c71b08488e5dc59a8206371f113b95a1d4fb833c6450d55e
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
<div id="new_state" data-hook></div> <div class="table-responsive border rounded bg-white"> <table class="table" id='listing_states' data-hook> <thead class="text-muted"> <tr data-hook="states_header"> <th><%= Spree.t(:name) %></th> <th class="text-center"><%= Spree.t(:abbreviation) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @states.each do |state| %> <tr id="<%= spree_dom_id state %>" data-hook="states_row"> <td><%= state.name %></td> <td class="text-center"><%= state.abbr %></td> <td class="actions"> <span class="d-flex justify-content-end"> <%= link_to_edit(state, no_text: true) if can? :edit, state %> <%= link_to_delete(state, no_text: true) if can? :delete, state %> </span> </td> </tr> <% end %> <% if @states.empty? %> <tr><td colspan="3"><%= Spree.t(:none) %></td></tr> <% end %> </tbody> </table> </div>
Version data entries
12 entries across 12 versions & 1 rubygems