diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_relation_image.html | 33 | 
1 files changed, 33 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_relation_image.html b/ishtar_common/templates/ishtar/blocks/sheet_relation_image.html new file mode 100644 index 000000000..971fcda06 --- /dev/null +++ b/ishtar_common/templates/ishtar/blocks/sheet_relation_image.html @@ -0,0 +1,33 @@ +{% load i18n %}{% if relation_image %} +<div id="lightgallery-{{window_id}}-relation-image{{type}} text-center"> +    {% if output != "ODT" %}<a href="{{relation_image.url}}">{% endif %} +    <img src="{{relation_image.url}}" class="img-fluid img-thumbnail"> +    {% if output != "ODT" %}</a>{% endif %} +</div> +{% endif %} + +{% if DOT_GENERATION and output != "ODT" and output != "PDF" %} +<div class='row mt-2 mb-2'> +    <div class="col"> +        <div class="btn-group btn-group-sm" role="group" aria-label="Exporter"> +            {% if relation_image %}<a class="btn btn-secondary" target="_blank" href="{{relation_image.url}}"> +                <i class="fa fa-file-image-o" aria-hidden="true"></i> SVG +            </a>{% endif %} +            {% if relation_png %}<a class="btn btn-secondary" target="_blank" href="{{relation_png.url}}"> +                <i class="fa fa-file-image-o" aria-hidden="true"></i> PNG +            </a>{% endif %} +            {% if relation_dot %}<a class="btn btn-secondary" target="_blank" href="{{relation_dot.url}}"> +                <i class="fa fa-file-o" aria-hidden="true"></i> DOT +            </a>{% endif %} +            <a class="btn btn-success" onclick="long_wait();return true;" +                href="{% url gen_url item.pk relation_type %}"> +                {% if relation_image %} +                {% trans "Re-generate image" %} +                {% else %} +                {% trans "Generate image" %} +                {% endif %} +            </a> +        </div> +    </div> +</div> +{% endif %}  | 
