<?php

namespace PHPMaker2021\rdigital21;

// Table
$penilaian_p5 = Container("penilaian_p5");
?>
<?php if ($penilaian_p5->Visible) { ?>
<div class="ew-master-div">
<table id="tbl_penilaian_p5master" class="table ew-view-table ew-master-table ew-vertical d-none">
    <tbody>
<?php if ($penilaian_p5->kelas->Visible) { // kelas ?>
        <tr id="r_kelas">
            <td class="<?= $penilaian_p5->TableLeftColumnClass ?>"><template id="tpc_penilaian_p5_kelas"><?= $penilaian_p5->kelas->caption() ?></template></td>
            <td <?= $penilaian_p5->kelas->cellAttributes() ?>>
<template id="tpx_penilaian_p5_kelas"><span id="el_penilaian_p5_kelas">
<span<?= $penilaian_p5->kelas->viewAttributes() ?>>
<?= $penilaian_p5->kelas->getViewValue() ?></span>
</span></template>
</td>
        </tr>
<?php } ?>
<?php if ($penilaian_p5->nis->Visible) { // nis ?>
        <tr id="r_nis">
            <td class="<?= $penilaian_p5->TableLeftColumnClass ?>"><template id="tpc_penilaian_p5_nis"><?= $penilaian_p5->nis->caption() ?></template></td>
            <td <?= $penilaian_p5->nis->cellAttributes() ?>>
<template id="tpx_penilaian_p5_nis"><span id="el_penilaian_p5_nis">
<span<?= $penilaian_p5->nis->viewAttributes() ?>>
<?= $penilaian_p5->nis->getViewValue() ?></span>
</span></template>
</td>
        </tr>
<?php } ?>
<?php if ($penilaian_p5->nama->Visible) { // nama ?>
        <tr id="r_nama">
            <td class="<?= $penilaian_p5->TableLeftColumnClass ?>"><template id="tpc_penilaian_p5_nama"><?= $penilaian_p5->nama->caption() ?></template></td>
            <td <?= $penilaian_p5->nama->cellAttributes() ?>>
<template id="tpx_penilaian_p5_nama"><span id="el_penilaian_p5_nama">
<span<?= $penilaian_p5->nama->viewAttributes() ?>>
<?= $penilaian_p5->nama->getViewValue() ?></span>
</span></template>
</td>
        </tr>
<?php } ?>
<?php if ($penilaian_p5->proyek->Visible) { // proyek ?>
        <tr id="r_proyek">
            <td class="<?= $penilaian_p5->TableLeftColumnClass ?>"><template id="tpc_penilaian_p5_proyek"><?= $penilaian_p5->proyek->caption() ?></template></td>
            <td <?= $penilaian_p5->proyek->cellAttributes() ?>>
<template id="tpx_penilaian_p5_proyek"><span id="el_penilaian_p5_proyek">
<span<?= $penilaian_p5->proyek->viewAttributes() ?>>
<?= $penilaian_p5->proyek->getViewValue() ?></span>
</span></template>
</td>
        </tr>
<?php } ?>
<?php if ($penilaian_p5->tapel_id->Visible) { // tapel_id ?>
        <tr id="r_tapel_id">
            <td class="<?= $penilaian_p5->TableLeftColumnClass ?>"><template id="tpc_penilaian_p5_tapel_id"><?= $penilaian_p5->tapel_id->caption() ?></template></td>
            <td <?= $penilaian_p5->tapel_id->cellAttributes() ?>>
<template id="tpx_penilaian_p5_tapel_id"><span id="el_penilaian_p5_tapel_id">
<span<?= $penilaian_p5->tapel_id->viewAttributes() ?>>
<?= $penilaian_p5->tapel_id->getViewValue() ?></span>
</span></template>
</td>
        </tr>
<?php } ?>
    </tbody>
</table>
</div>
<div id="tpd_penilaian_p5master" class="ew-custom-template"></div>
<template id="tpm_penilaian_p5master">
<div id="ct_PenilaianP5Master"><div class="card card-outline card-primary card-body">
	<center>
	<h4><slot class="ew-slot" name="tpx_penilaian_p5_nama"></slot></h4>
	<h5><slot class="ew-slot" name="tpx_penilaian_p5_kelas"></slot> - <slot class="ew-slot" name="tpx_penilaian_p5_proyek"></slot> - <slot class="ew-slot" name="tpx_penilaian_p5_tapel_id"></slot></h5> 
	</center>
</div> 
</div>
</template>
<script class="ew-apply-template">
loadjs.ready(["jsrender", "makerjs"], function() {
    ew.templateData = { rows: <?= JsonEncode($penilaian_p5->Rows) ?> };
    ew.applyTemplate("tpd_penilaian_p5master", "tpm_penilaian_p5master", "penilaian_p5master", "<?= $penilaian_p5->CustomExport ?>", ew.templateData.rows[0]);
    loadjs.done("customtemplate");
});
</script>
<?php } ?>
