aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume2017-11-29 14:03:35 +0100
committerGuillaume2017-11-29 14:03:35 +0100
commit7e381cb823641e8e147b2d5ecc3be94aa5e63c44 (patch)
tree3e7f61cc8dcf59ab6bdc5c3a3af00bafdf94d25c
parentcf8c8352bd4b5493c3e1cdfb8ea27c78ac9abab0 (diff)
downloadchouette-core-4987-compliance_check-sets_show.tar.bz2
Refs #4987 update compliance_control_check_set#show view4987-compliance_check-sets_show
-rw-r--r--app/views/compliance_check_sets/show.html.slim16
-rw-r--r--config/locales/compliance_check_sets.en.yml4
-rw-r--r--config/locales/compliance_check_sets.fr.yml1
3 files changed, 9 insertions, 12 deletions
diff --git a/app/views/compliance_check_sets/show.html.slim b/app/views/compliance_check_sets/show.html.slim
index 659413b28..c9d0583a5 100644
--- a/app/views/compliance_check_sets/show.html.slim
+++ b/app/views/compliance_check_sets/show.html.slim
@@ -31,25 +31,17 @@
[ \
TableBuilderHelper::Column.new( \
key: :name, \
- attribute: 'name', \
- sortable: false, \
- #link_to: lambda do |compliance_check_set| \
- # compliance_check_set_path(compliance_check_set.referential) if compliance_check_set.referential.present? \
- #end \
+ attribute: 'name' \
), \
TableBuilderHelper::Column.new( \
key: :status, \
- attribute: Proc.new { |n| compliance_check_set_status(n.status) }, \
- sortable: false, \
- #link_to: lambda do |compliance_check_set| \
- # workbench_compliance_check_set_path(compliance_check_set.compliance_control_set_id, compliance_check_set) \
- #end \
+ attribute: Proc.new { |n| compliance_check_set_status(n.status) } \
), \
TableBuilderHelper::Column.new( \
key: :metrics, \
- attribute: 'metrics', \
- sortable: false, \
+ attribute: Proc.new { |n| I18n.t('compliance_check_sets.show.metrics', n.metrics.deep_symbolize_keys) } \
) \
],
+ sortable: false, \
links: [],
cls: 'table'
diff --git a/config/locales/compliance_check_sets.en.yml b/config/locales/compliance_check_sets.en.yml
index 126950693..e6bec2b55 100644
--- a/config/locales/compliance_check_sets.en.yml
+++ b/config/locales/compliance_check_sets.en.yml
@@ -17,6 +17,10 @@ en:
search_no_results: No control reports match your search
executed:
title: Executed control report %{name}
+ show:
+ table_state: "%{lines_status} lines imported on %{lines_in_compliance_check_set} in the archive"
+ table_explanation: "These controls apply to all imported data and condition the construction of your organization's offer."
+ metrics: "%{ok_count} ok, %{error_count} errors, %{warning_count} warnings, %{uncheck_count} n/a"
activerecord:
attributes:
compliance_check_set:
diff --git a/config/locales/compliance_check_sets.fr.yml b/config/locales/compliance_check_sets.fr.yml
index 90092288a..b526261a9 100644
--- a/config/locales/compliance_check_sets.fr.yml
+++ b/config/locales/compliance_check_sets.fr.yml
@@ -16,6 +16,7 @@ fr:
show:
table_state: "%{lines_status} lignes importées sur %{lines_in_compliance_check_set} présentes dans l'archive"
table_explanation: Ces contrôles s’appliquent pour toutes les données importées et conditionnent la construction de l’offre de votre organisation
+ metrics: "%{ok_count} ok, %{error_count} errors, %{warning_count} warnings, %{uncheck_count} n/a"
activerecord:
attributes:
compliance_check_set: