feat(attestation): render signature
This commit is contained in:
parent
3b70b36d2d
commit
9c9daf162d
2 changed files with 15 additions and 0 deletions
|
@ -141,6 +141,17 @@
|
|||
margin: 0.25rem 0;
|
||||
}
|
||||
|
||||
.signature {
|
||||
text-align: right;
|
||||
margin-top: 14mm;
|
||||
margin-right: 25mm;
|
||||
|
||||
img {
|
||||
max-height: 60mm;
|
||||
max-width: 60mm;
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: running(footer);
|
||||
font-size: 7pt;
|
||||
|
|
|
@ -15,5 +15,9 @@
|
|||
.main
|
||||
= sanitize(@body, attributes: %w[class style], tags: Rails.configuration.action_view.sanitized_allowed_tags + %w[header])
|
||||
|
||||
- if @attestation_template.signature.present?
|
||||
.signature
|
||||
= image_tag(@attestation_template.signature_url)
|
||||
|
||||
- if @attestation_template.footer.present?
|
||||
= simple_format @attestation_template.footer, class: "footer"
|
||||
|
|
Loading…
Reference in a new issue