Skip to content
folder_list.html 3.47 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( 'files.send_app_files', subpath = 'functions.js' ) }}"></script>
        <link type="text/css" rel="stylesheet" href="{{ url_for( 'files.send_app_files', subpath = 'app.css' ) }}">
        
        <style type="text/css">
            .icnml_submission_form {
                width: fit-content;
                width: -moz-fit-content;
                margin-top: 30px;
                margin-left: auto;
                margin-right: auto;
            }
            .icnml_buttons_list {
                display: grid;
                grid-template-columns: repeat( 5, 1fr );
                grid-gap: 10px;
                margin: 20px;
            }
            .icnml_button {
                height: 120px;
                width: 120px;
                padding: 0px;
            }
            .icnml_button > span {
                height: 120px;
                width: 120px;
                line-height: 120px;
                vertical-align: center;
                text-align: center;
            }
        </style>
        
        <script type="text/javascript">
            baseurl = "{{ baseurl }}";
        </script>
    </head>
    <body class="icnml_main_layout">
        {% include "header.html" %}
        {% include navigation %}
        
        <div class="icnml_content">
            <div class="icnml_list_of_boxes">
                {% for n in [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 22, 24, 25, 27 ] %}
                    <div style="margin-bottom: 20px" id="segment_outer_div">
                        <div class="ui-widget-header ui-corner-top icnml_box_top">{{ segments_position_code.get( n ) }} (F{{ n }})</div>
                        <div class="ui-widget-content ui-corner-bottom icnml_box_content">
                            <div id="segment_{{ n }}" class="icnml_pointer">
                                segment not available
                            </div>
                        </div>
                    </div>
                {% endfor %}
            </div>
        </div>
        
        <script type="text/javascript">
            {% for s in segments_list %}
                $( "#segment_{{ s[ 'pc' ] }}" )
                    .css( "background-image", "url( {{ url_for( 'image.image_segment_serve', tenprint_id = s[ 'tenprint' ], pc = s[ 'pc' ] ) }}  )" )
                
                $( "#segment_{{ s[ 'pc' ] }}" )
                    .parent()
                    .parent()
                    .on( "click", function( event ){
                        window.location = "{{ url_for( 'afis.admin_show_target', uuid = s[ 'uuid' ], pc = s[ 'pc' ] ) }}";
                    } )
            {% endfor %}
                        
            $( "#icnml_navigation_submissions" )
                .addClass( "activated" );
            
            $( "#navloc" ).append(
                $( "<a />" )
                    .attr( "href", "{{ url_for( 'submission.admin_submission_list' ) }}" )
                    .text( "Submissions" )
            )
            .append(
                $( "<span />" ).text( ">" )
            )
            .append(
                $( "<span />" ).text( "" )
            );
        </script>
    </body>
</html>