Skip to content
Snippets Groups Projects
Unverified Commit 239b9616 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2443 from HyphaApp/enhancement/invoice-embed-pdf

Embed pdf inline on invoice detail page.
parents da6c36ef 2f08d327
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
<div class="wrapper--embed wrapper--embed--pdf">
<object class= type="application/pdf" data="{% url "apply:projects:payments:invoice" pk=object.pk %}"></object>
</div>
</div> </div>
<aside class="sidebar"> <aside class="sidebar">
<div class="js-actions-sidebar sidebar__inner sidebar__inner--light-blue sidebar__inner--actions"> <div class="js-actions-sidebar sidebar__inner sidebar__inner--light-blue sidebar__inner--actions">
......
...@@ -71,6 +71,24 @@ ...@@ -71,6 +71,24 @@
margin: 0 auto; margin: 0 auto;
} }
&--embed {
width: 100%;
height: 100%;
iframe,
object,
embed {
width: 100%;
height: 100%;
}
&--pdf {
object {
height: 300mm;
}
}
}
&--form { &--form {
padding: 20px; padding: 20px;
margin: 20px auto; margin: 20px auto;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment