{# Template For CCM revaluation Memo    #}
<style>
    .slant{
		white-space: nowrap;
		margin: 60px -27px;
		width: 77px;
		padding: 5px;
		-webkit-transform: rotate(270deg);
		-moz-transform: rotate(270deg);
		-ms-transform: rotate(270deg);
		-o-transform: rotate(270deg);
		transform: rotate(270deg) translateX(-30%);
		display: inline-block;
	}
	table { 
        border-collapse: collapse;border-right-style: hidden;
        border-left-style: hidden; 
    }
    .markdisplay{
        border-right:1px solid #000 !important;
        border-left:1px solid #000 !important;
        border-top:1px solid #000 !important;
        border-bottom:1px solid #000 !important;
    }
    .student-name{
        width:100%; 
        height:50px; 
        font-size:12px; 
        text-align:left;
    }
    .no-border-table tr td{
        border-right:1px solid #fff !important;
        border-left:1px solid #fff !important;
        border-top:1px solid #fff !important;
        border-bottom:1px solid #fff !important;
    }
	.heading { font-weight: bold; }
	.footer-class { font-size: 12px; text-align: center; margin-top:100px !important;}
	.top { transform:rotate(270deg) translateX(10%); }
	
    .pages {
        font-family: 'Times New Roman', serif;
        width: 100%;
        padding-right: .5cm;
        padding-left: .5cm;
        padding-top: .5cm;
        padding-bottom: .5cm;
        background: no-repeat;
        -webkit-background-size: contain;
        -moz-background-size: contain;
        -o-background-size: contain;
        background-size: contain;
        page-break-after: always;
    }
    
    .college-header{
        height:35mm;
        width:80%;
        margin:0 2%;
    }
    
</style>
{% for student in data.studentData %}
    <div class="pages" style="">
        {% set trcolSpan =  2 %}
        <table id='markTable' style=" margin:0 auto; text-align:center;width: 100%; font-size:12px;border:1px solid #000;" cellpadding="0" cellspacing="0" border="0">
            <tr style=''>
               <td style="height:auto; vertical-align:top; text-align:left; padding-top:50px; border-right:1px solid #000;" >
                     <div style="text-align:center;">
                        <div style="text-align:left;  margin-bottom: -90px; margin-left: 0"> 
                            <img style='height:25mm !important; width:25mm;' src="{{data.collegeAndOtherData.collageLogo}}" class="college-header">
                        </div>
                        <div style="font-size:19pt"><b>SCMS COCHIN SCHOOL OF BUSINESS</b></div>
                        <div style="font-size:13pt"><b>Prathap Nagar, Muttom, Aluva - 683 106</b></div>
                    </div>

                   
                    <div style='width:100%;padding-top: 25px;text-align:center;'>
                        <span style="font-size:12pt;">
                            <b>POST GRADUATE DIPLOMA IN MANAGEMENT <br> TwoYear Full Time (Equivalent to M.B.A.)</b>
                        </span>
                    </div>
                    {# <hr /> #}
                </td>
            </tr>
            <tr >
                <td colspan="{{trcolSpan}}" style="padding:30px 0 0 0; height:auto; vertical-align:top;border-bottom:1px solid #fff !important; text-align:center;" >
                    <div style='font-size:20px; margin-top:10px;'>REVALUATION RESULT MEMO</div>
                </td>
            </tr>
            <tr >
                <td colspan="{{trcolSpan}}" style="padding:50px 25px 0 25px; text-align:left;border-bottom:1px solid #fff !important; " >
                   <div style='font-size:18px; margin-top:10px;line-height: 1.6;text-align: justify;text-justify: inter-word;'>
                        With reference to the application for Revaluation dated 
                        {{ student.memoDate}}, &nbsp;{{ student.name }} with Register No. {{ student.registerNo }}  is hereby informed that the following is the result of the 
                        Revaluation of answer paper(s) of {{data.examRegistrationData.parentExamRegistrationName}}. 
                   
                   </div>
                </td>
            </tr>

            <tr>
                <td colspan="{{trcolSpan}}" style="border-bottom:1px solid #fff !important;padding:50px 25px 25px 25px;">
                    <table class="markdisplay" cellpadding="0" cellspacing="0" border="1" align="left" style="font-size:14px;width:100%;">
                        <tr style="height:60px;" class='heading'>
                            <th width='5%' style="text-align:center;padding: 3px;">Sl. No.</th>
                            <th width='20%' style="text-align:center;padding: 10px;">Course Code</th>
                            <th width='55%' style="text-align:center;">Course Name</th>
                            <th width='10%' style="text-align:center;padding: 3px;">Obtained Regular Mark</th>
                            <th width='10%' style="text-align:center;padding: 3px;">Obtained Revaluation Mark</th>
                        </tr>
                        {% set slno = 0 %}
                        {% for subject in student.subjects %}
                            <tr style="height:35px;" class='inner-tr'>
                            {% set slno = slno + 1 %}
                                <td class="align-middle" style=" text-align:center; vertical-align: middle;"> &nbsp; {{slno |raw}}</td>
                                <td class="align-middle" style=" text-align:center; vertical-align: middle;"> &nbsp; {{subject.code |raw}}</td>
                                <td class="align-middle" style=" text-align:left; vertical-align: middle;"> &nbsp; {{subject.name |raw}}</td>
                                <td class="align-middle" style=" text-align:center; vertical-align: middle;"> &nbsp; {{subject.externalMarkObtainedInExamUpdated |number_format(2, '.', ',')}}</td>
                                <td class="align-middle" style=" text-align:center; vertical-align: middle;"> &nbsp; {% if subject.revaluationMarkUpdated is not null %}{{subject.revaluationMarkUpdated |number_format(2, '.', ',')}}{% endif %}</td>
                            </tr>
                        {% endfor %}
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="{{trcolSpan}}" style="padding:10px 25px 40px 25px;">
                   <ul>
                        <li>
                            <div style="text-align:left;font-size:16px; "> The above marks are before effecting moderation/ grace marks, if any.</div>
                        </li>
                   </ul>
                </td>
            </tr>
             <tr class="no-border-tr">
                    <td style='border-right:1px solid #070707;'>
                        <table class='footer-class no-border-table' border="0" style='width:100%;font-size: 16px; padding-bottom:5px; '>
                            <tr>
                                <td style='width:33%; text-align:left'>
                                    <span style='padding-left:5%;padding-right: 1px;'>Date: {{ data.collegeAndOtherData.publishingStartDate }}</span><br>
                                    <span style='padding-left:5%;padding-right: 1px;'>Checked:</span>
                                </td>
                                <td style='width:33%; text-align:left' >
                                        <br>
                                        Entered:
                                </td>
                                <td style='width:33%; text-align:right;padding-right:10mm;' >
                                    <b>Registrar</b>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
        </table>
    </div>
{% endfor %}
