aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/compliance_control_sets
diff options
context:
space:
mode:
authorRobert2017-10-27 12:49:47 +0200
committerRobert2017-10-31 19:08:52 +0100
commite0d52eef6b0c48e646cfc7e03322647b1a15181f (patch)
tree6dceb4dba9cbe89e420b7bdd4dfbfbf3db853431 /app/views/compliance_control_sets
parent63f3a7838140b2cac5dfca7cc80cb78f2c369c69 (diff)
downloadchouette-core-e0d52eef6b0c48e646cfc7e03322647b1a15181f.tar.bz2
Refs: #4774;
DB Setup for specs
Diffstat (limited to 'app/views/compliance_control_sets')
-rw-r--r--app/views/compliance_control_sets/grouping.html.slim39
1 files changed, 39 insertions, 0 deletions
diff --git a/app/views/compliance_control_sets/grouping.html.slim b/app/views/compliance_control_sets/grouping.html.slim
new file mode 100644
index 000000000..d527601b2
--- /dev/null
+++ b/app/views/compliance_control_sets/grouping.html.slim
@@ -0,0 +1,39 @@
+/ PageContent
+.page_content
+ .container-fluid
+ .row
+ .col-lg-6.col-md-6.col-sm-12.col-xs-12
+ = definition_list t('metadatas'),
+ ComplianceControlSet.human_attribute_name(:name) => @compliance_control_set.name
+ .row
+ .col-lg-12
+ h2
+ = transport_mode("", "")
+ .row
+ .col-lg-12
+ .select_table
+ = table_builder_2 @coontrols, \
+ [ \
+ TableBuilderHelper::Column.new( \
+ key: :code, \
+ attribute: 'code' \
+ ), \
+ TableBuilderHelper::Column.new( \
+ key: :name, \
+ attribute: 'name', \
+ link_to: lambda do |compliance_control| \
+ compliance_control_set_compliance_control_path(@compliance_control_set, compliance_control) \
+ end \
+ ), \
+ TableBuilderHelper::Column.new( \
+ key: :criticity, \
+ attribute: 'criticity' \
+ ), \
+ TableBuilderHelper::Column.new( \
+ key: :comment, \
+ attribute: 'comment' \
+ ), \
+ ],
+ sortable: true,
+ cls: 'table has-filter has-search'
+