fix(attestation): footer must be in before flexible content in order to be repeated on each page
This commit is contained in:
parent
b33f542cf4
commit
1dbd198092
2 changed files with 11 additions and 4 deletions
|
@ -47,6 +47,7 @@
|
|||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); // Optional: for better visualization
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -166,10 +167,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
footer {
|
||||
position: running(footer);
|
||||
font-size: 7pt;
|
||||
font-weight: 100;
|
||||
white-space: nowrap;
|
||||
|
||||
@media screen {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,12 +30,13 @@
|
|||
- if @attestation_template.label_direction.present?
|
||||
= simple_format @attestation_template.label_direction, class: "direction"
|
||||
|
||||
- if @attestation_template.footer.present?
|
||||
%footer
|
||||
= simple_format @attestation_template.footer
|
||||
|
||||
.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