<?php

namespace ProjectManagement\prjProjectManagement;

// Table
$projecttemplate = Container("projecttemplate");
$projecttemplate->TableClass = "table table-bordered table-hover table-sm ew-table ew-master-table";
?>
<?php if ($projecttemplate->Visible) { ?>
<div class="ew-master-div">
<table id="tbl_projecttemplatemaster" class="table ew-view-table ew-master-table ew-vertical">
    <tbody>
<?php if ($projecttemplate->template_name->Visible) { // template_name ?>
        <tr id="r_template_name"<?= $projecttemplate->template_name->rowAttributes() ?>>
            <td class="<?= $projecttemplate->TableLeftColumnClass ?>"><?= $projecttemplate->template_name->caption() ?></td>
            <td<?= $projecttemplate->template_name->cellAttributes() ?>>
<span id="el_projecttemplate_template_name">
<span<?= $projecttemplate->template_name->viewAttributes() ?>>
<?= $projecttemplate->template_name->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($projecttemplate->Active->Visible) { // Active ?>
        <tr id="r_Active"<?= $projecttemplate->Active->rowAttributes() ?>>
            <td class="<?= $projecttemplate->TableLeftColumnClass ?>"><?= $projecttemplate->Active->caption() ?></td>
            <td<?= $projecttemplate->Active->cellAttributes() ?>>
<span id="el_projecttemplate_Active">
<span<?= $projecttemplate->Active->viewAttributes() ?>>
<i class="fa-regular fa-square<?php if (ConvertToBool($projecttemplate->Active->CurrentValue)) { ?>-check<?php } ?> ew-icon ew-boolean"></i>
</span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($projecttemplate->Created_Date->Visible) { // Created_Date ?>
        <tr id="r_Created_Date"<?= $projecttemplate->Created_Date->rowAttributes() ?>>
            <td class="<?= $projecttemplate->TableLeftColumnClass ?>"><?= $projecttemplate->Created_Date->caption() ?></td>
            <td<?= $projecttemplate->Created_Date->cellAttributes() ?>>
<span id="el_projecttemplate_Created_Date">
<span<?= $projecttemplate->Created_Date->viewAttributes() ?>>
<?= $projecttemplate->Created_Date->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($projecttemplate->Created_By->Visible) { // Created_By ?>
        <tr id="r_Created_By"<?= $projecttemplate->Created_By->rowAttributes() ?>>
            <td class="<?= $projecttemplate->TableLeftColumnClass ?>"><?= $projecttemplate->Created_By->caption() ?></td>
            <td<?= $projecttemplate->Created_By->cellAttributes() ?>>
<span id="el_projecttemplate_Created_By">
<span<?= $projecttemplate->Created_By->viewAttributes() ?>>
<?= $projecttemplate->Created_By->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($projecttemplate->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
        <tr id="r_Last_Updated_Date"<?= $projecttemplate->Last_Updated_Date->rowAttributes() ?>>
            <td class="<?= $projecttemplate->TableLeftColumnClass ?>"><?= $projecttemplate->Last_Updated_Date->caption() ?></td>
            <td<?= $projecttemplate->Last_Updated_Date->cellAttributes() ?>>
<span id="el_projecttemplate_Last_Updated_Date">
<span<?= $projecttemplate->Last_Updated_Date->viewAttributes() ?>>
<?= $projecttemplate->Last_Updated_Date->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($projecttemplate->Last_Updated_By->Visible) { // Last_Updated_By ?>
        <tr id="r_Last_Updated_By"<?= $projecttemplate->Last_Updated_By->rowAttributes() ?>>
            <td class="<?= $projecttemplate->TableLeftColumnClass ?>"><?= $projecttemplate->Last_Updated_By->caption() ?></td>
            <td<?= $projecttemplate->Last_Updated_By->cellAttributes() ?>>
<span id="el_projecttemplate_Last_Updated_By">
<span<?= $projecttemplate->Last_Updated_By->viewAttributes() ?>>
<?= $projecttemplate->Last_Updated_By->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
    </tbody>
</table>
</div>
<?php } ?>
