Skip to content

Commit

Permalink
commits override of image-header report, includes print-spec elements…
Browse files Browse the repository at this point in the history
… re #8
  • Loading branch information
whatisgalen committed Sep 7, 2023
1 parent 9a80074 commit bbf4b63
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions presutah/templates/views/report-templates/image.htm
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}" />
<!-- /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 %}

0 comments on commit bbf4b63

Please sign in to comment.