Sha256: eda7bb6460ccbe4e36db4cb171c3c23180dfb649a25b899485ff1f39242bb6e8

Contents?: true

Size: 1.14 KB

Versions: 5

Compression:

Stored size: 1.14 KB

Contents

<%- set_title 'Locations' -%>

<%- unless @errors.blank? -%>
  <%= @errors * '<br />' -%>
<%- end -%>

<%- if @locations.empty? -%>
  <p><em>No locations found. Why don't you <%= link_to 'import', import_locations_path -%> some?
</em></p>
<%- else -%>
  <table class="standard">
    <tr>
      <th><%= sort_link('locations', 'location_number', params) -%></th>
      <th><%= sort_link('locations', 'name', params) -%></th>
      <th>Address</th>
      <th>URL</th>
      <th> </th>
    </tr>

  <%- for location in @locations -%>
    <tr class="<%= cycle('odd', 'even') -%>">
      <td><%= link_to location.location_number, location -%></td>
      <td><%= link_to location.name, location -%></td>
      <td><%= location.geocoding_address -%></td>
      <td>
        <%- if location.locale -%>
          <%= link_to location.locale.to_url, location.locale.to_url -%>
        <%- end -%>
      </td>
      <td class="crud_links"><%= crud_links(location, [:show, :edit, :destroy]) -%></td>
    </tr>
  <%- end -%>
  </table>
<%- end -%>

<%= link_to 'Import', import_locations_path, :class => 'button' -%>
<%= link_to 'Export', export_locations_path, :class => 'button' -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
campfire_logic-1.2.0 app/views/locations/index.html.erb
campfire_logic-1.1.10 app/views/locations/index.html.erb
campfire_logic-1.1.9 app/views/locations/index.html.erb
campfire_logic-1.1.8 app/views/locations/index.html.erb
campfire_logic-1.1.7 app/views/locations/index.html.erb