Skip to content
Snippets Groups Projects
Commit 9a1aa02a authored by Marco De Donno's avatar Marco De Donno
Browse files

Add the "download full resolution" button for the tenprint on admin view

parent 3a26d4b2
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,13 @@
$( "#tp_polygones > g > rect" ).on( "mousewheel", mouse_wheel );
}
{% if admin %}
var download_tenprint = function()
{
window.open( "{{ url_for( 'image.admin_download_file_full_resolution', file_id = file[ 'uuid' ] ) }}", "_blank" );
}
{% endif %}
var delete_tenprint = function()
{
$( "<div />" )
......@@ -993,6 +1000,13 @@
<span class="ui-button-text" id="go_to_segmentation_button_span_text">Go to segments list</span>
</a>
</div>
{% if admin %}
<div id="download_button_div">
<a class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" id="download_button" role="button" aria-disabled="false">
<span class="ui-button-text" id="download_button_span_text">Download image</span>
</a>
</div>
{% endif %}
<div id="delete_button_div" style="margin-top: 30px;">
<a class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" id="delete_button">
<span class="ui-button-text" id="delete_button_span_text">Delete tenprint card</span>
......@@ -1024,6 +1038,10 @@
$( "#file_note" ).on( "change", update_note_db );
{% if admin %}
$( "#download_button" ).on( "click", download_tenprint );
{% endif %}
$( "#delete_button" ).on( "click", delete_tenprint );
$( "#delete_segments_information_button" ).on( "click", delete_zone_db );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment