diff options
author | Nicolas Braud-Santoni <nicoo@ffgraz.net> | 2016-08-07 16:39:42 +0200 |
---|---|---|
committer | Nicolas Braud-Santoni <nicoo@ffgraz.net> | 2016-08-07 16:39:42 +0200 |
commit | b6ca062670b342344df08b53fb216db619ef42bc (patch) | |
tree | 7680ac6b407239f6b7272c937e42f688b8de542c /app/views/location/_plist.rhtml |
Import legacy manman source
Copied from www.ffgraz.net
Diffstat (limited to 'app/views/location/_plist.rhtml')
-rw-r--r-- | app/views/location/_plist.rhtml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/location/_plist.rhtml b/app/views/location/_plist.rhtml new file mode 100644 index 0000000..be4d644 --- /dev/null +++ b/app/views/location/_plist.rhtml @@ -0,0 +1,19 @@ +<table> + <th>Name</th> + <th>Strasse</th> + <th>Hausnr.</th> + <th>Kommentar</th> + +<% @locations.each do |location| %> + <tr> + <td><%= location.name %></td> + <td><%= location.street %></td> + <td><%= location.streetnr %></td> + <td><%= location.comment %></td> + <td><%= link_to 'Show', :action => 'show', :controller => 'location', :id => location %></td> + <td><%= link_to 'Edit', :action => 'edit', :controller => 'location', :id => location %></td> + <td><%= link_to 'Destroy', { :action => 'destroy', :controller => 'location', :id => location }, :confirm => 'Are you sure?', :post => true %></td> + </tr> +<% end %> +</table> + |