Sha256: 4c8f8b48b31d3c8c0338d4071acc04d3211d2e492cf59715946fc26fe2a209c4

Contents?: true

Size: 1.94 KB

Versions: 1

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_city %>">
  
        <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

1 entries across 1 versions & 1 rubygems

Version Path
magic_addresses-0.0.33 app/views/magic_addresses/cities/index.html.erb