Verified Commit e1407c8a authored by Emily Wangler's avatar Emily Wangler Committed by Markus Koller
Browse files

change helper to check for update/create

parent f5bee8ec
Pipeline #17332 passed with stage
in 35 minutes and 29 seconds
module ActionNameHelper
def action_new?
action_name == 'new'
action_name == 'new' || action_name == 'create'
end
def action_index?
......@@ -12,6 +12,6 @@ module ActionNameHelper
end
def action_edit?
action_name == 'edit'
action_name == 'edit' || action_name == 'update'
end
end
h1= t_title(:edit)
= render 'buttons', create: false
= render 'buttons'
= render 'form'
= render 'buttons', create: false
= render 'buttons'
h1= t_title(:new)
= render 'buttons', create: true
= render 'buttons'
= render 'form'
= render 'buttons', create: true
= render 'buttons'
h1 Veranstaltung
h2= @event.title if @event.title
= render 'buttons', create: false
= render 'buttons'
.table-responsive
table.table.table-no-border-top
......@@ -39,4 +39,4 @@ h3 Teilnehmende
- if @event.event_volunteers.any?
= render 'event_volunteers/show'
= render 'buttons', create: false
= render 'buttons'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment