Remove intervention controller, route and policy

This commit is contained in:
Sebastian Serth
2018-12-19 01:29:42 +01:00
parent c0608b6f50
commit 0e8c663039
6 changed files with 0 additions and 117 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -1,4 +0,0 @@
h1
= @intervention.name
= row(label: 'intervention.name', value: @intervention.name)