A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
68
app/views/checks/_check.html.slim
Normal file
68
app/views/checks/_check.html.slim
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
div id=dom_id(check)
|
||||
table.table
|
||||
tbody
|
||||
tr
|
||||
th = Check.human_attribute_name(:id)
|
||||
td = check.id
|
||||
tr
|
||||
th = Principle.model_name.human
|
||||
td = check.principle&.t_name
|
||||
tr
|
||||
th = Check.human_attribute_name(:number)
|
||||
td = check.number
|
||||
tr
|
||||
th = Check.human_attribute_name(:name)
|
||||
td = check.t_name
|
||||
tr
|
||||
th = Standard.model_name.human(count: check.standard_ids.size)
|
||||
td = check.standards.map(&:t_name).join(", ")
|
||||
tr
|
||||
th = Check.human_attribute_name(:target_disabilities)
|
||||
td = check.display_target_disabilities
|
||||
tr
|
||||
th = Check.human_attribute_name(:applicabilities)
|
||||
td = check.display_applicabilities
|
||||
tr
|
||||
th = Check.human_attribute_name(:external_number)
|
||||
td = check.external_number
|
||||
tr
|
||||
th = Check.human_attribute_name(:conformity_level)
|
||||
td = check.conformity_level
|
||||
tr
|
||||
th = Check.human_attribute_name(:conformity_notice_de)
|
||||
td = check.conformity_notice_de
|
||||
tr
|
||||
th = Check.human_attribute_name(:conformity_notice_en)
|
||||
td = check.conformity_notice_en
|
||||
tr
|
||||
th = Check.human_attribute_name(:priority)
|
||||
td = check.priority
|
||||
tr
|
||||
th = Check.human_attribute_name(:quick_criterion_de)
|
||||
td = check.quick_criterion_de
|
||||
tr
|
||||
th = Check.human_attribute_name(:quick_criterion_en)
|
||||
td = check.quick_criterion_en
|
||||
tr
|
||||
th = Check.human_attribute_name(:quick_fail_de)
|
||||
td = check.quick_fail_de
|
||||
tr
|
||||
th = Check.human_attribute_name(:quick_fail_en)
|
||||
td = check.quick_fail_en
|
||||
tr
|
||||
th = Check.human_attribute_name(:quick_fix_de)
|
||||
td = check.quick_fix_de
|
||||
tr
|
||||
th = Check.human_attribute_name(:quick_fix_en)
|
||||
td = check.quick_fix_en
|
||||
tr
|
||||
th = Link.model_name.human(count: check.links.size)
|
||||
td
|
||||
.row
|
||||
.col
|
||||
- check.links.map(&:link_category).uniq.each do |category|
|
||||
span = category.name
|
||||
ul
|
||||
- check.links.select{ _1.link_category == category }.map { |link| link_to link.text, link.url, target: :_blank }.each do |link|
|
||||
li = link
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue