forked from enviPath/enviPy
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
{% load static %}
|
|
<!-- Download Pathway -->
|
|
<div id="download_pathway_image_modal" class="modal" tabindex="-1">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h3 class="modal-title">Download Pathway as Image</h3>
|
|
<button
|
|
type="button"
|
|
class="close"
|
|
data-dismiss="modal"
|
|
aria-label="Close"
|
|
>
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
By clicking on Download the Pathway will be saved as SVG.
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">
|
|
Close
|
|
</button>
|
|
<button
|
|
type="button"
|
|
class="btn btn-primary"
|
|
id="download-pathway-image-modal-submit"
|
|
>
|
|
Download
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
$("#download-pathway-image-modal-submit").click(function (e) {
|
|
e.preventDefault();
|
|
downloadSVG($("#pwsvg")[0], '{{ pathway.name.split|join:"_" }}.svg');
|
|
$("#download_pathway_image_modal").modal("hide");
|
|
});
|
|
});
|
|
</script>
|