aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorTeddy Wing2017-06-09 15:13:44 +0200
committerTeddy Wing2017-06-09 15:26:45 +0200
commit0fb0bd13e4e09c910bc4159985b714f43f6d0fe0 (patch)
tree4abd806580de688ed7683ffe0d340b427118d650 /app/views
parentca10698f263dad9298b001e9194c4e042c1a9cff (diff)
downloadchouette-core-0fb0bd13e4e09c910bc4159985b714f43f6d0fe0.tar.bz2
TableBuilderHelper: Correct `selectable` behaviour
I had coded this the opposite of what it should have been. Instead, if `selectable` is true, we should show the selection checkboxes. Invert the conditions and add `selectable: true` to the `table_builder_2` calls that expect a checkbox column. Also remove the TODO because this argument is necessary. Refs #3479
Diffstat (limited to 'app/views')
-rw-r--r--app/views/workbenches/show.html.slim1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim
index 65fb4652b..61b9395fa 100644
--- a/app/views/workbenches/show.html.slim
+++ b/app/views/workbenches/show.html.slim
@@ -44,6 +44,7 @@
:created_at => Proc.new {|w| l(w.created_at, format: :short)},
:updated_at => Proc.new {|w| l(w.updated_at, format: :short)},
:published_at => ''},
+ selectable: true,
links: [:show, :edit, :archive, :unarchive, :delete],
cls: 'table has-filter has-search'
/ [:delete],