Sha256: 51da2145f1b88dd2fb4479db6155b55191ffb9df3ebc513738ce6ff96cf37147

Contents?: true

Size: 1.89 KB

Versions: 22

Compression:

Stored size: 1.89 KB

Contents

<%= address_admin_template do %>

  <%= content_for :headline do %>
    <%= t("activerecord.attributes.magic_addresses_state.other") %>
  <% end %>
  
  <table class="table table-striped">
    <thead>
      <tr>
        <th><%= t("helpers.label.magic_addresses_state.name") %></th>
        <th><%= t("activerecord.attributes.magic_addresses_address.other") %></th>
  
        <th><%= t("activerecord.attributes.magic_addresses_country.one") %></th>
  
        <th><%= t("helpers.label.magic_addresses_state.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">
    <% @states.each do |state| %>
      <tr data-id="<%= state.id %>" data-name="<%= state.name %>" data-default-name="<%= state.default_name %>" data-short-name="<%= state.short_name %>" data-state="<%= state.fsm_state %>">
  
        <td><strong><%= state.name %></strong></td>
        <td><%= state.addresses.count %></td>
  
        <td>
          <%= country_flag( state.country.iso_code, "small" ) if state.country %>
          <%= state.country.iso_code if state.country %>
        </td>
  
        <td><%= state.default_name %></td>
        <% if MagicAddresses.configuration.show_states %>
          <td><%= state.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

22 entries across 22 versions & 1 rubygems

Version Path
magic_addresses-0.0.44 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.43 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.42 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.41 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.40 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39.rc8 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39.rc7 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39.rc6 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39.rc5 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39.rc4 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39.rc3 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39.rc2 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.39.rc1 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.38 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.38.beta2 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.38.beta1 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.37 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.36 app/views/magic_addresses/states/index.html.erb
magic_addresses-0.0.35 app/views/magic_addresses/states/index.html.erb