-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from legiongis/8_inspect_report_print
8 inspect report print
- Loading branch information
Showing
10 changed files
with
667 additions
and
613 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.carousel-container { | ||
display: none; | ||
visibility: hidden; | ||
} | ||
|
||
.img-report-print-only { | ||
display: block; | ||
visibility: visible; | ||
height: 100%; | ||
width: auto; | ||
flex: 1; | ||
object-fit: cover; | ||
} | ||
|
||
.img-report-print-only-container { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
/* max-height: 350px; */ | ||
} | ||
|
||
.scroll-y { | ||
/* height: auto; */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% extends "views/report-templates/default.htm" %} | ||
{% load i18n %} | ||
|
||
{% block header %} | ||
<div class="carousel-container" data-bind="carousel: { content: { name: 'carouselItemTemplate', data: imgs } }"></div> | ||
|
||
<template id="carouselItemTemplate"> | ||
</template> | ||
|
||
<!-- ko if: ko.unwrap(imgs) --> | ||
<div class="img-report-print-only-container"> | ||
<!-- ko foreach: {data: imgs, as: 'img'} --> | ||
<img class="img-report-print-only" data-bind="attr: {src: img.src, style: ('max-width: calc(100% /' + Math.round(ko.unwrap($parent.imgs).length/2) + ')')}" /> | ||
<!-- /ko --> | ||
</div> | ||
<!-- /ko --> | ||
{% endblock header %} | ||
|
||
{% block header_form %} | ||
<div class="control-label"> | ||
{% trans "Included Image Nodes" %} | ||
</div> | ||
<div class="col-xs-12 pad-no crud-widget-container"> | ||
<select class="design" data-placeholder="{% trans "Select image nodes to include..." %}" multiple data-bind="selectedOptions: nodes, options: nodeOptions, optionsText: 'name', optionsValue: 'nodeid', chosen: {disable_search_threshold: 10, width: '100%'}"></select> | ||
</div> | ||
{% endblock header_form %} |