css stuff

This commit is contained in:
Jonas Winkler 2018-07-16 14:39:09 +02:00
parent b138f4b52b
commit f21debe95d
2 changed files with 18 additions and 4 deletions

13
src/documents/static/paperless.css Normal file → Executable file
View File

@ -20,4 +20,17 @@ td a.tag {
#result_list td textarea {
width: 90%;
height: 5em;
}
#change_form_twocolumn_parent {
display: flex;
}
#change_form_form_parent {
flex:50%;
margin-right: 10px;
}
#change_form_viewer_parent {
flex:50%;
margin-left: 10px;
text-align: center;
}

View File

@ -5,9 +5,9 @@
{{ block.super }}
{% if file_type in "pdf jpg png" %}
<div id="twocolumn_parent" style="display: flex;">
<div id="form_parent" style="flex:50%; margin-right: 10px;"></div>
<div id="viewer_parent" style="flex:50%; margin-left: 10px; text-align: center;">
<div id="change_form_twocolumn_parent">
<div id="change_form_form_parent"></div>
<div id="change_form_viewer_parent">
{% if file_type == "pdf" %}
{% include "admin/documents/document/viewers/viewer_pdf.html" %}
{% endif %}
@ -18,7 +18,8 @@
</div>
<script>
django.jQuery("#form_parent").append(django.jQuery("#document_form"));
django.jQuery("#change_form_form_parent").append(django.jQuery("#document_form"));
django.jQuery("#content-main").append(django.jQuery("#change_form_twocolumn_parent"));
</script>
{% endif %}