32 lines
608 B
Plaintext
32 lines
608 B
Plaintext
|
%h1 Listing cities
|
||
|
|
||
|
%table
|
||
|
%tr
|
||
|
%th Name
|
||
|
%th Majname
|
||
|
%th Postalcode
|
||
|
%th Inseecode
|
||
|
%th Regioncode
|
||
|
%th Latitude
|
||
|
%th Longitude
|
||
|
%th
|
||
|
%th
|
||
|
%th
|
||
|
|
||
|
- @cities.each do |city|
|
||
|
%tr
|
||
|
%td= city.name
|
||
|
%td= city.majname
|
||
|
%td= city.postalcode
|
||
|
%td= city.inseecode
|
||
|
%td= city.regioncode
|
||
|
%td= city.latitude
|
||
|
%td= city.longitude
|
||
|
%td= link_to 'Show', city
|
||
|
%td= link_to 'Edit', edit_city_path(city)
|
||
|
%td= link_to 'Destroy', city, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||
|
|
||
|
%br
|
||
|
|
||
|
= link_to 'New City', new_city_path
|