summaryrefslogtreecommitdiff
path: root/app/views/occurrences
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/occurrences')
-rw-r--r--app/views/occurrences/edit.html.erb6
-rw-r--r--app/views/occurrences/index.html.erb4
-rw-r--r--app/views/occurrences/new.html.erb6
3 files changed, 8 insertions, 8 deletions
diff --git a/app/views/occurrences/edit.html.erb b/app/views/occurrences/edit.html.erb
index 6a81188..aa4f6e0 100644
--- a/app/views/occurrences/edit.html.erb
+++ b/app/views/occurrences/edit.html.erb
@@ -1,7 +1,7 @@
1<h1>Editing occurrence</h1> 1<h1>Editing occurrence</h1>
2 2
3<% form_for(@occurrence) do |f| %> 3<%= form_for(@occurrence) do |f| %>
4 <%= f.error_messages %> 4 <%= form_error_messages(f) %>
5 5
6 <p> 6 <p>
7 <%= f.label :summary %><br /> 7 <%= f.label :summary %><br />
@@ -29,4 +29,4 @@
29<% end %> 29<% end %>
30 30
31<%= link_to 'Show', @occurrence %> | 31<%= link_to 'Show', @occurrence %> |
32<%= link_to 'Back', occurrences_path %> \ No newline at end of file 32<%= link_to 'Back', occurrences_path %>
diff --git a/app/views/occurrences/index.html.erb b/app/views/occurrences/index.html.erb
index 06dbf07..0e99857 100644
--- a/app/views/occurrences/index.html.erb
+++ b/app/views/occurrences/index.html.erb
@@ -18,11 +18,11 @@
18 <td><%=h occurrence.event_id %></td> 18 <td><%=h occurrence.event_id %></td>
19 <td><%= link_to 'Show', occurrence %></td> 19 <td><%= link_to 'Show', occurrence %></td>
20 <td><%= link_to 'Edit', edit_occurrence_path(occurrence) %></td> 20 <td><%= link_to 'Edit', edit_occurrence_path(occurrence) %></td>
21 <td><%= link_to 'Destroy', occurrence, :confirm => 'Are you sure?', :method => :delete %></td> 21 <td><%= button_to 'Destroy', occurrence, method: :delete, form: { data: { confirm: 'Are you sure?' } } %></td>
22 </tr> 22 </tr>
23<% end %> 23<% end %>
24</table> 24</table>
25 25
26<br /> 26<br />
27 27
28<%= link_to 'New occurrence', new_occurrence_path %> \ No newline at end of file 28<%= link_to 'New occurrence', new_occurrence_path %>
diff --git a/app/views/occurrences/new.html.erb b/app/views/occurrences/new.html.erb
index 0a77af1..c05ce40 100644
--- a/app/views/occurrences/new.html.erb
+++ b/app/views/occurrences/new.html.erb
@@ -1,7 +1,7 @@
1<h1>New occurrence</h1> 1<h1>New occurrence</h1>
2 2
3<% form_for(@occurrence) do |f| %> 3<%= form_for(@occurrence) do |f| %>
4 <%= f.error_messages %> 4 <%= form_error_messages(f) %>
5 5
6 <p> 6 <p>
7 <%= f.label :summary %><br /> 7 <%= f.label :summary %><br />
@@ -28,4 +28,4 @@
28 </p> 28 </p>
29<% end %> 29<% end %>
30 30
31<%= link_to 'Back', occurrences_path %> \ No newline at end of file 31<%= link_to 'Back', occurrences_path %>