Sha256: ade8e9bf7cc138854d53f79275d728b12fd7f1de75f1ee31d1f1fa0e21144d5a
Contents?: true
Size: 1.94 KB
Versions: 21
Compression:
Stored size: 1.94 KB
Contents
<%= address_admin_template do %> <%= content_for :headline do %> <%= t("activerecord.attributes.magic_addresses_city.other") %> <% end %> <table class="table table-striped"> <thead> <tr> <th><%= t("helpers.label.magic_addresses_city.name") %></th> <th>Addresses</th> <th><%= t("activerecord.attributes.magic_addresses_state.one") %></th> <th><%= t("activerecord.attributes.magic_addresses_country.one") %></th> <th><%= t("helpers.label.magic_addresses_city.default_name") %></th> <% if MagicAddresses.configuration.show_states %> <th>FSM-State</th> <% end %> <% if MagicAddresses.configuration.show_triggers %> <th>Triggers</th> <% end %> </tr> </thead> <tbody class="wizard_table_body"> <% @cities.each do |city| %> <tr data-id="<%= city.id %>" data-name="<%= city.name %>" data-default-name="<%= city.default_name %>" data-short-name="<%= city.short_name %>" data-state="<%= city.fsm_state %>"> <td><strong><%= city.name %></strong></td> <td><%= city.addresses.count %></td> <td><%= city.state.name if city.state %></td> <td> <%= country_flag( city.country.iso_code, "small" ) if city.country %> <%= city.country.iso_code if city.country %> </td> <td><%= city.default_name %></td> <% if MagicAddresses.configuration.show_states %> <td><%= city.fsm_state %></td> <% end %> <% if MagicAddresses.configuration.show_triggers %> <td> <%# %w(activate deactivate).each do |state| %> <%# if city.machine.trigger?(state.to_sym) %> <%#= link_to state.to_s.titleize, trigger_wizard_city_path(city, state), class: "btn btn-default btn-sm" %> <%# end %> <%# end %> </td> <% end %> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
21 entries across 21 versions & 1 rubygems