<%= address_admin_template do %> <%= content_for :headline do %> <%= t("activerecord.attributes.magic_addresses_subdistrict.other") %> <% end %> <% if MagicAddresses.configuration.show_states %> <% end %> <% if MagicAddresses.configuration.show_triggers %> <% end %> <% @subdistricts.each do |scity| %> <% if MagicAddresses.configuration.show_states %> <% end %> <% if MagicAddresses.configuration.show_triggers %> <% end %> <% end %>
<%= t("helpers.label.magic_addresses_subdistrict.name") %> <%= t("activerecord.attributes.magic_addresses_address.other") %> <%= t("activerecord.attributes.magic_addresses_district.one") %> <%= t("activerecord.attributes.magic_addresses_city.one") %> <%= t("helpers.label.magic_addresses_subdistrict.default_name") %>FSM-StateTriggers
<%= scity.name %> <%= scity.addresses.count %> <%= scity.district.name if scity.district %> <%= scity.city.name if scity.city %> <%= scity.default_name %><%= scity.fsm_state %> <%# %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 %>
<% end %>