Remove intervention controller, route and policy
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
= form_for(@intervention) do |f|
|
||||
= render('shared/form_errors', object: @intervention)
|
||||
.form-group
|
||||
= f.label(:name)
|
||||
= f.text_field(:name, class: 'form-control', required: true)
|
||||
.actions = render('shared/submit_button', f: f, object: @intervention)
|
@@ -1,15 +0,0 @@
|
||||
h1 = Intervention.model_name.human(count: 2)
|
||||
|
||||
.table-responsive
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
th = t('activerecord.attributes.intervention.name')
|
||||
th = t('shared.actions')
|
||||
tbody
|
||||
- @interventions.each do |intervention|
|
||||
tr
|
||||
td = link_to_if policy(intervention).show?, intervention.name
|
||||
td = link_to(t('shared.show'), intervention) if policy(intervention).show?
|
||||
|
||||
= render('shared/pagination', collection: @interventions)
|
@@ -1,4 +0,0 @@
|
||||
h1
|
||||
= @intervention.name
|
||||
|
||||
= row(label: 'intervention.name', value: @intervention.name)
|
Reference in New Issue
Block a user