summaryrefslogtreecommitdiff
path: root/app/views/events
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/events')
-rw-r--r--app/views/events/edit.html.erb6
-rw-r--r--app/views/events/index.html.erb8
-rw-r--r--app/views/events/show.html.erb8
-rw-r--r--app/views/events/without_node.html.erb4
4 files changed, 19 insertions, 7 deletions
diff --git a/app/views/events/edit.html.erb b/app/views/events/edit.html.erb
index 45b084f0..b6564a4e 100644
--- a/app/views/events/edit.html.erb
+++ b/app/views/events/edit.html.erb
@@ -2,8 +2,10 @@
2 2
3<div class="node_action_bar standalone_action_bar"> 3<div class="node_action_bar standalone_action_bar">
4 <%= link_to 'Back', safe_return_to(params[:return_to] || events_path) %> 4 <%= link_to 'Back', safe_return_to(params[:return_to] || events_path) %>
5 <%= button_to 'Destroy', event_path(@event), method: :delete, 5 <%= button_to event_path(@event), method: :delete,
6 form: { data: { confirm: 'Delete this event?' }, class: 'button_to destructive' } %> 6 form: { data: { confirm: 'Delete this event?' }, class: 'button_to destructive' } do %>
7 <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy
8 <% end %>
7</div> 9</div>
8 10
9<%= form_for(@event) do |f| %> 11<%= form_for(@event) do |f| %>
diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb
index 3d953d5f..dde897ee 100644
--- a/app/views/events/index.html.erb
+++ b/app/views/events/index.html.erb
@@ -1,7 +1,11 @@
1<h1>Events</h1> 1<h1>Events</h1>
2 2
3<%= link_to 'New event', new_event_path, class: 'action_button' %> 3<div class="button_row">
4<%= link_to 'View events without a page →', without_node_events_path %> 4 <%= link_to new_event_path, class: 'action_button' do %>
5 <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create event
6 <% end %>
7 <%= link_to 'View events without a page →', without_node_events_path %>
8</div>
5 9
6<%= will_paginate @events %> 10<%= will_paginate @events %>
7 11
diff --git a/app/views/events/show.html.erb b/app/views/events/show.html.erb
index 58122280..ac084c92 100644
--- a/app/views/events/show.html.erb
+++ b/app/views/events/show.html.erb
@@ -11,10 +11,14 @@
11 </div> 11 </div>
12 <% end %> 12 <% end %>
13 <div class="node_info_item"> 13 <div class="node_info_item">
14 <%= link_to 'Edit', edit_event_path(@event, return_to: request.path), class: 'action_button' %> 14 <%= link_to edit_event_path(@event, return_to: request.path), class: 'action_button' do %>
15 <%= icon("edit", library: "tabler", "aria-hidden": true) %> Edit
16 <% end %>
15 </div> 17 </div>
16 <div class="node_info_item"> 18 <div class="node_info_item">
17 <%= button_to 'Destroy', event_path(@event), method: :delete, form: { data: { confirm: 'Delete this event?' }, class: 'button_to destructive' } %> 19 <%= button_to event_path(@event), method: :delete, form: { data: { confirm: 'Delete this event?' }, class: 'button_to destructive' } do %>
20 <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy
21 <% end %>
18 </div> 22 </div>
19 </div> 23 </div>
20 </div> 24 </div>
diff --git a/app/views/events/without_node.html.erb b/app/views/events/without_node.html.erb
index 52514ab9..bb27173b 100644
--- a/app/views/events/without_node.html.erb
+++ b/app/views/events/without_node.html.erb
@@ -1,7 +1,9 @@
1<h1>Events without a node</h1> 1<h1>Events without a node</h1>
2 2
3<%= link_to '← All events', events_path %> 3<%= link_to '← All events', events_path %>
4<%= link_to 'New event', new_event_path, class: 'action_button' %> 4<%= link_to new_event_path, class: 'action_button' do %>
5 <%= icon("plus", library: "tabler", "aria-hidden": true) %> Create event
6<% end %>
5 7
6<%= will_paginate @events %> 8<%= will_paginate @events %>
7 9