<!--
TemplateName:Admin
-->
<!DOCTYPE html>
<html>
<head>
	<title>~[text:psx.htmlc.idmFOTM.scan_attendance_title]</title>
<!-- required scripts -->
	~[wc:commonscripts] 
<!-- Required style sheets: screen.css, and print.css --> 
	<link href="/images/css/screen.css" rel="stylesheet" media="screen">
	<link href="/images/css/print.css" rel="stylesheet" media="print">
    <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <style>
        #studentIdentifier:focus {
            background-color: #ccffcc;
        }

        input[type=text]:blur {
            background-color: white;
        }

        .idMErrorResolution td:first-child {
            text-align: center;
        }

        #idMErrorDialog > * {
            margin-bottom: 5px;
        }

        #idMErrorDialog .idm_errorMessage p:first-child {
            margin-bottom: 5px;
        }

        #idMErrorDialog .idm_errorMessage p:last-child {
            margin-bottom: 0px;
        }

        .idm_activeEnrollmentAlert {
            width: 5px;
        }

        #idMErrorDialog .idm_errorDetails {
            margin-left: 40px;
        }
    </style>
</head> 
<body> 
	~[wc:admin_header_css] 
    <!-- breadcrumb start --><a href="/admin/home.html" target="_top">~[text:psx.html.admin_attendance_functions.attendancestatus.start_page]</a> > <a href="/admin/attendance/functions/attendancestatus.html" target="_top">~[text:psx.html.admin_attendance_functions.attendancestatus.attendance1]</a> > ~[text:psx.htmlc.idmFOTM.scan_attendance_title]<!-- breadcrumb end --> 
<!-- start of main menu and content --> 
	~[wc:admin_navigation_css] 
<!-- Start of Page -->
    <p style="float:right; margin:25px 20px;"><a href="https://www.identimetrics.net" target="_blank"><img src="/images/img/identimetrics-wordmark.svg" style="height:2em;"></a></p>	<h1>~[text:psx.htmlc.idmFOTM.scan_attendance_title]</h1> 
<!-- start of content area --> 
<div data-require-path="components/identimetricsFOTM/index" data-module-name="identimetricsFOTM" data-ng-controller="fotm" data-ng-cloak>
    <p data-ng-if="!auth" class="feedback-error">This school is not authorized to use this plugin.</p>
    <div data-ng-if="auth" id="idM_AT">
        <div class="button-row">
            <a class="button" id="printPage" name="PrintPage" title="Go to Attendance Activity Page" href="/admin/attendance/functions/idm_scanPrinting.html">Attendance Activity</a>
        </div>
        <div class="box-round"> 
            <div data-ng-include="'/scripts/components/identimetricsFOTM/views/idM_FOTM_scan.html'"></div>
            <table class="linkDescList" data-ng-show="ctrlData.args.numlimit != '' && ctrlData.args.numlimit > 0">
                <thead>
                    <tr>
                        <th>~[text:psx.htmlc.idmFOTM.student]</th>
                        <th>~[text:psx.htmlc.idmFOTM.student_number]</th>
                        <th>~[text:psx.htmlc.idmFOTM.grade]</th>
                        <th data-ng-if="ctrlData.attType == 'Meeting'">~[text:psx.htmlc.idmFOTM.course]: Expression</th>
                        <th>Term</th>
                        <th>~[text:psx.htmlc.idmFOTM.scan_date]</th>
                        <th>~[text:psx.htmlc.idmFOTM.att_comment]</th>
                        <th>~[text:psx.htmlc.idmFOTM.code]</th>
                        <th data-ng-if="ctrlData.attType == 'Meeting'" class="hide">Expression</th>
                        <th>Code Type</th>
                        <th>Type Count</th>
                        <th>Overall Count</th>
                        <th class="noPrint">
                            <button type="button" data-ng-click="load()">Refresh Data</button>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr data-ng-repeat="entry in ctrlData.scanEntries track by $index" data-ng-if="($index+1) <= ctrlData.args.numlimit">
                        <td>
                            <a data-ng-show="ctrlData.attType == 'Meeting'" href="/admin/attendance/record/week/meeting.html?frn=001{{entry.studentsdcid}}&ATT_RecordMode=ATT_ModeMeeting&autoThisWeek=1&setUserScreen=1" target="_blank">{{entry.lastfirst}}</a>
                            <a data-ng-show="ctrlData.attType == 'Daily'" href="/admin/attendance/view/daily.html?frn=001{{entry.studentsdcid}}" target="_blank">{{entry.lastfirst}}</a>
                        </td>
                        <td>{{entry.student_number}}</td>
                        <td>{{entry.grade_level}}</td>
                        <td data-ng-if="ctrlData.attType == 'Meeting'">{{entry.course_name}}<span data-ng-show="entry.expression">: {{entry.expression}}</span></td>
                        <td>{{entry.term}}</td>
                        <td>{{entry.scanDateJS|date}}</td>
                        <td style="white-space:pre-wrap;">{{entry.att_comment|date}}</td>
                        <td title="{{entry.description}}">{{entry.attCode}}</td>
                        <td>{{ctrlData.map.codeTypesInverted[entry.codeType]}}</td>
                        <td>
                            <span data-ng-if="entry.typeCount">{{entry.typeCount}}</span>
                            <span data-ng-if="entry.codeType=='Tardy'">TDY</span>
                            <span data-ng-if="entry.codeType=='Excused Tardy'">EXC</span>
                            <span data-ng-if="entry.codeType=='Unexcused Tardy'">UNX</span>
                        </td>
                        <td><span data-ng-if="entry.overallCount">{{entry.overallCount}}</td>
                        <td class="noPrint">
                            <button type="button" data-ng-if="entry.tardySlip == '1'" data-ng-click="attService.viewSlip(entry, 1)">~[text:psx.htmlc.idmFOTM.view_slip]</button>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div data-ng-include="'/scripts/components/identimetricsFOTM/views/idM_FOTM_tardySlip.html'"></div>
            <div data-ng-include="'/scripts/components/identimetricsFOTM/views/idM_FOTM_errorDialog.html'"></div>
        </div>
	</div> 
    ~[wc:idM_FOTM_args]
    <script>
        idmFOTMArgs.scanType = "scanPage"
        idmFOTMArgs.dateStart = idmFOTMArgs.isoDate
        idmFOTMArgs.dateEnd = idmFOTMArgs.isoDate
    </script>
<!-- end of content area --> 
	~[wc:admin_footer_css] 
    ~[wc:idM_AutoTardy_auth]
</body> 
</html>