aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-06-14 19:08:58 +0200
committerTeddy Wing2017-06-14 19:08:58 +0200
commit37ad0d2f30f8e16207b6123d9084b8f2cec3b592 (patch)
tree2d27c43e8eac642e65431fb011f4d0b834b4d18b
parentfc74a500d9c672d855d199eee715efd398058527 (diff)
downloadchouette-core-37ad0d2f30f8e16207b6123d9084b8f2cec3b592.tar.bz2
TableBuilderHelper: Add a couple TODOs
Refs #3479
-rw-r--r--app/helpers/table_builder_helper.rb2
-rw-r--r--spec/helpers/table_builder_helper_spec.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb
index 73c994100..34f610975 100644
--- a/app/helpers/table_builder_helper.rb
+++ b/app/helpers/table_builder_helper.rb
@@ -109,6 +109,8 @@ module TableBuilderHelper
CustomLinks.new(item, pundit_user, links).links +
item.action_links
).map do |link|
+ # TODO: ensure the Delete link is formatted correctly with the spacer,
+ # icon, and label
content_tag :li, link_to(
link.name,
link.href,
diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb
index 756fac861..7e2d617a3 100644
--- a/spec/helpers/table_builder_helper_spec.rb
+++ b/spec/helpers/table_builder_helper_spec.rb
@@ -87,6 +87,7 @@ describe TableBuilderHelper, type: :helper do
</tbody>
</table>
HTML
+# TODO: Create a module for the selection box
# <div class="select_toolbox noselect">
# <ul>
# <li class="st_action"><a data-path="/workbenches/1/referentials" data-confirm="Etes-vous sûr(e) de vouloir effectuer cette action ?" title="Supprimer" rel="nofollow" data-method="delete" href="#"><span class="fa fa-trash"></span></a></li>