Newer
Older
<!DOCTYPE html>
<html>
<head>
{% for src in js %}
<script type="text/javascript" src="{{ src }}"></script>
{% endfor %}
{% for src in css %}
<link type="text/css" rel="stylesheet" href="{{ src }}">
{% endfor %}
<script type="text/javascript" src="{{ url_for( 'send_app_files', path = 'functions.js' ) }}"></script>
<link type="text/css" rel="stylesheet" href="{{ url_for( 'send_app_files', path = 'app.css' ) }}">
<script type="text/javascript">
baseurl = "{{ baseurl }}";
var password_local = decrypt( sessionStorage.getItem( "session_key" ), "{{ session_security_key }}" );
var nickname = decrypt( "{{ nickname }}", password_local );

Marco De Donno
committed
var filename = decrypt( "{{ file[ 'filename' ] }}", password_local );
var note = decrypt( "{{ file[ 'note' ] }}", password_local );
var update_note_db = function()
{
var note = $( '#file_note' ).val() || null;
note = encrypt( note, password_local );
$.ajax( {

Marco De Donno
committed
url: "{{ url_for( 'submission_file_set_note', id = submission_id, file = file[ 'uuid' ], t = 'latent' ) }}",
dataType: 'json',
method: 'POST',
data: {
note: note
}
} );
}
</script>
<style type="text/css">
.icnml_img {
width: 100%;
}
.icnml_img > img {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%;
max-height: 100%;
}
</style>
</head>
<body class="icnml_main_layout">
{% include "header.html" %}
{% include "navigations/submitter.html" %}
<div class="icnml_content">
<div class="icnml_lp_oneperpage">

Marco De Donno
committed
<form id="icnml_file_update_{{ file[ 'uuid' ] }}">
<div class="ui-widget-header ui-corner-top icnml_box_top">File '<span id="header_filename">-</span>'</div>
<div class="ui-widget-content ui-corner-bottom icnml_box_content">
<div class="icnml_lp_cardbox">
<div id="img_preview" class="icnml_img">
<img src="{{ url_for( 'image_file_serve', id = file[ 'uuid' ] ) }}">
</div>
<div>
<div class="icnml_box_fields">
<div>Name</div>
<div id="box_filename"></div>

Marco De Donno
committed
<div>{{ file[ 'format' ] }}</div>

Marco De Donno
committed
<div>{{ file[ 'resolution' ] }} dpi</div>

Marco De Donno
committed
<div>{{ file[ 'width' ] }} px</div>

Marco De Donno
committed
<div>{{ file[ 'height' ] }} px</div>

Marco De Donno
committed
<div>{{ file[ 'size' ] }} Mo</div>

Marco De Donno
committed
<div id="file_{{ file[ 'uuid' ] }}_uploadtime">{{ file[ 'creation_time' ] }}</div>
<div><textarea rows="6" id="file_note"></textarea></div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
$( '#header_filename' ).text( filename );
$( '#box_filename' ).text( filename );
$( '#file_note' ).text( note );
$( "#file_note" ).on( 'change', update_note_db );
$( '#icnml_navigation_updatedonor' )
.addClass( 'activated' );
$( '<a />' )
.attr( 'href', "{{ url_for( 'submission_list' ) }}" )
.text( "Submissions" )
)
.append(
$( '<span />' ).text( ">" )
)
.append(
$( '<a />' )
.attr( 'href', "{{ url_for( 'submission_update', id = submission_id ) }}" )
)
.append(
$( '<span />' ).text( ">" )
)
.append(
$( '<a />' )
.attr( 'href', "{{ url_for( 'submission_latent_list', id = submission_id ) }}" )
.text( "Latents" )
)
.append(
$( '<span />' ).text( ">" )
)
.append(
$( '<span />' ).text( filename )
</script>
</html>