wip: wcag structure
This commit is contained in:
parent
4c31dbbed0
commit
4dd445be57
48 changed files with 461 additions and 137 deletions
18
app/models/guideline.rb
Normal file
18
app/models/guideline.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class Guideline < ApplicationRecord
|
||||
belongs_to :principle
|
||||
|
||||
has_many :checks
|
||||
|
||||
has_rich_text :description_de
|
||||
has_rich_text :description_en
|
||||
|
||||
translates_attributes :name, :description
|
||||
|
||||
def to_s
|
||||
"#{full_number} #{t_name}"
|
||||
end
|
||||
|
||||
def full_number
|
||||
[ principle.id, number ].join(".")
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue