Sha256: 0cae9897dbbab62b77bca2ec01e1ef531222d607bbae1bfc6ef6693c625a4b79

Contents?: true

Size: 1.42 KB

Versions: 8

Compression:

Stored size: 1.42 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>
        <th>FSM-State</th>
        <th>Triggers</th>
      </tr>
    </thead>
    <tbody>
    <% @cities.each do |city| %>
      <tr>
  
        <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.name if city.country %>
        </td>
  
        <td><%= city.default_name %></td>
        <td><%= city.fsm_state %></td>
        <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>
      </tr>
    <% end %>
    </tbody>
  </table>


<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
magic_addresses-0.0.32 app/views/magic_addresses/cities/index.html.erb
magic_addresses-0.0.31 app/views/magic_addresses/cities/index.html.erb
magic_addresses-0.0.30 app/views/magic_addresses/cities/index.html.erb
magic_addresses-0.0.29 app/views/magic_addresses/cities/index.html.erb
magic_addresses-0.0.28 app/views/magic_addresses/cities/index.html.erb
magic_addresses-0.0.27 app/views/magic_addresses/cities/index.html.erb
magic_addresses-0.0.26 app/views/magic_addresses/cities/index.html.erb
magic_addresses-0.0.25 app/views/magic_addresses/cities/index.html.erb