diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet.html')
-rw-r--r-- | ishtar_common/templates/ishtar/sheet.html | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index e937f1474..6b9c97948 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -8,28 +8,37 @@ </head> <body> {% endblock %} - <div class="card sheet" id="{{window_id}}"> + + {% if output != "ODT" and output != "PDF" %} <div class="card-header" data-sheet-id="{{sheet_id}}" role="tab" id='head-{{window_id}}'> <div class="row"> <div class="col-9"> - {% if output != "ODT" and output != "PDF"%} <h5 class="mb-0"> <a class="card-label" data-toggle="collapse" href="#collapse-{{window_id}}" aria-expanded="true" aria-controls="collapse-{{window_id}}"> - {% else %} - <h2> - {% endif %} + {% else %} + {% if item.qrcode.name %} + <table class="window-table-head"> + <tr> + <td> <img class="qrcode" src="{{BASE_URL}}{{item.qrcode.url}}"> </td> + <td> + {% endif %} + <h2> + {% endif %} {% block head_title %}{% endblock %} - {% if output == "ODT" or output == "PDF"%} - </h2> - {% else %} + {% if output == "ODT" or output == "PDF" %} + </h2> + {% if item.qrcode.name %} + </td> + </tr> + </table> + {% endif %} + {% else %} </a> </h5> - {% endif %} </div> - {% if output != "ODT" and output != "PDF"%} <div class='col-2 text-center'> <a href='#' class='previous_page'> <span class="fa-stack"> @@ -53,8 +62,8 @@ </span> </a> </div> - {% endif %} </div> + {% endif %} {% block header_title %}{% endblock %} </div> |