Skip to content
latent.html 3.83 KiB
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 }}";
        </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">
                <form id="icnml_file_update_{{ latent[ 'uuid' ] }}">
                    <div class="ui-widget-header ui-corner-top icnml_box_top">File '{{ latent[ 'filename' ] }}'</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( 'img_preview', id = latent[ 'uuid' ] ) }}">
                            </div>
                            <div>
                                <div class="icnml_box_fields">
                                    <div>Name</div>
                                    <div>{{ latent[ 'filename' ] }}</div>
                                    
                                    <div>Format</div>
                                    <div>{{ latent[ 'format' ] }}</div>
                                    
                                    <div>Resolution</div>
                                    <div>{{ latent[ 'resolution' ] }} dpi</div>
                                    
                                    <div>Width</div>
                                    <div>{{ latent[ 'width' ] }} px</div>
                                    
                                    <div>Height</div>
                                    <div>{{ latent[ 'height' ] }} px</div>
                                    
                                    <div>Size</div>
                                    <div>{{ latent[ 'size' ] }} Mo</div>
                                    
                                    <div>Upload time</div>
                                    <div id="file_{{ latent[ 'uuid' ] }}_uploadtime">{{ latent[ 'creation_time' ] }}</div>
                                    
                                    <div>Notes</div>
                                    <div><textarea rows="6"></textarea></div>
                                </div>
        </div>
    </body>
    <script type="text/javascript">
Marco De Donno's avatar
Marco De Donno committed
        $( '#icnml_navigation_updatedonor' )
        
        $( '#navloc' ).append(
    		$( '<span />' ).text( "Submissions" )
		)
		.append(
    		$( '<span />' ).text( ">" )
		)
		.append(
    		$( '<span />' ).text( "{{ nickname }}" )
		)
		.append(
    		$( '<span />' ).text( ">" )
		)
		.append(
    		$( '<span />' ).text( "Latents" )
		)
		.append(
    		$( '<span />' ).text( ">" )
		)
		.append(
    		$( '<span />' ).text( "{{ latent[ 'filename' ] }}" )
		);