Sha256: 25ef8d164268d8f950af5fdc3b84a6e360361ef65bb9b80e0cdf164dc988da24

Contents?: true

Size: 1.26 KB

Versions: 8

Compression:

Stored size: 1.26 KB

Contents

<%= address_admin_template do %>

  <%= content_for :headline do %>
    <%= t("activerecord.attributes.magic_addresses_district.other") %>
  <% end %>

  <table class="table table-striped">
    <thead>
      <tr>
        <th><%= t("helpers.label.magic_addresses_district.name") %></th>
        <th><%= t("activerecord.attributes.magic_addresses_address.other") %></th>
  
        <th><%= t("activerecord.attributes.magic_addresses_city.one") %></th>
  
        <th><%= t("helpers.label.magic_addresses_district.default_name") %></th>
  
        <th>FSM-State</th>
        <th>Triggers</th>
      </tr>
    </thead>
    <tbody>
    <% @districts.each do |scity| %>
      <tr>
  
        <td><strong><%= scity.name %></strong></td>
        <td><%= scity.addresses.count %></td>
  
        <td><%= scity.city.name if scity.city %></td>
  
        <td><%= scity.default_name %></td>
        <td><%= scity.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/districts/index.html.erb
magic_addresses-0.0.31 app/views/magic_addresses/districts/index.html.erb
magic_addresses-0.0.30 app/views/magic_addresses/districts/index.html.erb
magic_addresses-0.0.29 app/views/magic_addresses/districts/index.html.erb
magic_addresses-0.0.28 app/views/magic_addresses/districts/index.html.erb
magic_addresses-0.0.27 app/views/magic_addresses/districts/index.html.erb
magic_addresses-0.0.26 app/views/magic_addresses/districts/index.html.erb
magic_addresses-0.0.25 app/views/magic_addresses/districts/index.html.erb