<?php

namespace PHPMaker2021\rkm21;

// Page object
$ExtraAbsensiAdd = &$Page;
?>
<script>
var currentForm, currentPageID;
var fextra_absensiadd;
loadjs.ready("head", function () {
    var $ = jQuery;
    // Form object
    currentPageID = ew.PAGE_ID = "add";
    fextra_absensiadd = currentForm = new ew.Form("fextra_absensiadd", "add");

    // Add fields
    var currentTable = <?= JsonEncode(GetClientVar("tables", "extra_absensi")) ?>,
        fields = currentTable.fields;
    if (!ew.vars.tables.extra_absensi)
        ew.vars.tables.extra_absensi = currentTable;
    fextra_absensiadd.addFields([
        ["kode_tapel", [fields.kode_tapel.visible && fields.kode_tapel.required ? ew.Validators.required(fields.kode_tapel.caption) : null], fields.kode_tapel.isInvalid],
        ["kelas", [fields.kelas.visible && fields.kelas.required ? ew.Validators.required(fields.kelas.caption) : null], fields.kelas.isInvalid],
        ["nisn", [fields.nisn.visible && fields.nisn.required ? ew.Validators.required(fields.nisn.caption) : null], fields.nisn.isInvalid],
        ["nis", [fields.nis.visible && fields.nis.required ? ew.Validators.required(fields.nis.caption) : null], fields.nis.isInvalid],
        ["nama", [fields.nama.visible && fields.nama.required ? ew.Validators.required(fields.nama.caption) : null], fields.nama.isInvalid],
        ["jk", [fields.jk.visible && fields.jk.required ? ew.Validators.required(fields.jk.caption) : null], fields.jk.isInvalid],
        ["s", [fields.s.visible && fields.s.required ? ew.Validators.required(fields.s.caption) : null], fields.s.isInvalid],
        ["_i", [fields._i.visible && fields._i.required ? ew.Validators.required(fields._i.caption) : null], fields._i.isInvalid],
        ["a", [fields.a.visible && fields.a.required ? ew.Validators.required(fields.a.caption) : null], fields.a.isInvalid],
        ["ekstra1", [fields.ekstra1.visible && fields.ekstra1.required ? ew.Validators.required(fields.ekstra1.caption) : null], fields.ekstra1.isInvalid],
        ["deskripsi1", [fields.deskripsi1.visible && fields.deskripsi1.required ? ew.Validators.required(fields.deskripsi1.caption) : null], fields.deskripsi1.isInvalid],
        ["ekstra2", [fields.ekstra2.visible && fields.ekstra2.required ? ew.Validators.required(fields.ekstra2.caption) : null], fields.ekstra2.isInvalid],
        ["deskripsi2", [fields.deskripsi2.visible && fields.deskripsi2.required ? ew.Validators.required(fields.deskripsi2.caption) : null], fields.deskripsi2.isInvalid],
        ["ekstra3", [fields.ekstra3.visible && fields.ekstra3.required ? ew.Validators.required(fields.ekstra3.caption) : null], fields.ekstra3.isInvalid],
        ["deskripsi3", [fields.deskripsi3.visible && fields.deskripsi3.required ? ew.Validators.required(fields.deskripsi3.caption) : null], fields.deskripsi3.isInvalid],
        ["ekstra4", [fields.ekstra4.visible && fields.ekstra4.required ? ew.Validators.required(fields.ekstra4.caption) : null], fields.ekstra4.isInvalid],
        ["deskripsi4", [fields.deskripsi4.visible && fields.deskripsi4.required ? ew.Validators.required(fields.deskripsi4.caption) : null], fields.deskripsi4.isInvalid]
    ]);

    // Set invalid fields
    $(function() {
        var f = fextra_absensiadd,
            fobj = f.getForm(),
            $fobj = $(fobj),
            $k = $fobj.find("#" + f.formKeyCountName), // Get key_count
            rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1,
            startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
        for (var i = startcnt; i <= rowcnt; i++) {
            var rowIndex = ($k[0]) ? String(i) : "";
            f.setInvalid(rowIndex);
        }
    });

    // Validate form
    fextra_absensiadd.validate = function () {
        if (!this.validateRequired)
            return true; // Ignore validation
        var fobj = this.getForm(),
            $fobj = $(fobj);
        if ($fobj.find("#confirm").val() == "confirm")
            return true;
        var addcnt = 0,
            $k = $fobj.find("#" + this.formKeyCountName), // Get key_count
            rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1,
            startcnt = (rowcnt == 0) ? 0 : 1, // Check rowcnt == 0 => Inline-Add
            gridinsert = ["insert", "gridinsert"].includes($fobj.find("#action").val()) && $k[0];
        for (var i = startcnt; i <= rowcnt; i++) {
            var rowIndex = ($k[0]) ? String(i) : "";
            $fobj.data("rowindex", rowIndex);

            // Validate fields
            if (!this.validateFields(rowIndex))
                return false;

            // Call Form_CustomValidate event
            if (!this.customValidate(fobj)) {
                this.focus();
                return false;
            }
        }

        // Process detail forms
        var dfs = $fobj.find("input[name='detailpage']").get();
        for (var i = 0; i < dfs.length; i++) {
            var df = dfs[i],
                val = df.value,
                frm = ew.forms.get(val);
            if (val && frm && !frm.validate())
                return false;
        }
        return true;
    }

    // Form_CustomValidate
    fextra_absensiadd.customValidate = function(fobj) { // DO NOT CHANGE THIS LINE!
        // Your custom validation code here, return false if invalid.
        return true;
    }

    // Use JavaScript validation or not
    fextra_absensiadd.validateRequired = <?= Config("CLIENT_VALIDATE") ? "true" : "false" ?>;

    // Dynamic selection lists
    fextra_absensiadd.lists.kelas = <?= $Page->kelas->toClientList($Page) ?>;
    loadjs.done("fextra_absensiadd");
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<form name="fextra_absensiadd" id="fextra_absensiadd" class="<?= $Page->FormClassName ?>" action="<?= CurrentPageUrl(false) ?>" method="post">
<?php if (Config("CHECK_TOKEN")) { ?>
<input type="hidden" name="<?= $TokenNameKey ?>" value="<?= $TokenName ?>"><!-- CSRF token name -->
<input type="hidden" name="<?= $TokenValueKey ?>" value="<?= $TokenValue ?>"><!-- CSRF token value -->
<?php } ?>
<input type="hidden" name="t" value="extra_absensi">
<input type="hidden" name="action" id="action" value="insert">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<input type="hidden" name="<?= $Page->OldKeyName ?>" value="<?= $Page->OldKey ?>">
<div class="ew-add-div"><!-- page* -->
<?php if ($Page->kelas->Visible) { // kelas ?>
    <div id="r_kelas" class="form-group row">
        <label id="elh_extra_absensi_kelas" for="x_kelas" class="<?= $Page->LeftColumnClass ?>"><?= $Page->kelas->caption() ?><?= $Page->kelas->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->kelas->cellAttributes() ?>>
<?php if (!$Security->isAdmin() && $Security->isLoggedIn() && !$Page->userIDAllow("add")) { // Non system admin ?>
<span id="el_extra_absensi_kelas">
<span<?= $Page->kelas->viewAttributes() ?>>
<input type="text" readonly class="form-control-plaintext" value="<?= HtmlEncode(RemoveHtml($Page->kelas->getDisplayValue($Page->kelas->EditValue))) ?>"></span>
</span>
<input type="hidden" data-table="extra_absensi" data-field="x_kelas" data-hidden="1" name="x_kelas" id="x_kelas" value="<?= HtmlEncode($Page->kelas->CurrentValue) ?>">
<?php } else { ?>
<span id="el_extra_absensi_kelas">
    <select
        id="x_kelas"
        name="x_kelas"
        class="form-control ew-select<?= $Page->kelas->isInvalidClass() ?>"
        data-select2-id="extra_absensi_x_kelas"
        data-table="extra_absensi"
        data-field="x_kelas"
        data-value-separator="<?= $Page->kelas->displayValueSeparatorAttribute() ?>"
        <?= $Page->kelas->editAttributes() ?>>
        <?= $Page->kelas->selectOptionListHtml("x_kelas") ?>
    </select>
    <?= $Page->kelas->getCustomMessage() ?>
    <div class="invalid-feedback"><?= $Page->kelas->getErrorMessage() ?></div>
<?= $Page->kelas->Lookup->getParamTag($Page, "p_x_kelas") ?>
<script>
loadjs.ready("head", function() {
    var el = document.querySelector("select[data-select2-id='extra_absensi_x_kelas']"),
        options = { name: "x_kelas", selectId: "extra_absensi_x_kelas", language: ew.LANGUAGE_ID, dir: ew.IS_RTL ? "rtl" : "ltr" };
    options.dropdownParent = $(el).closest("#ew-modal-dialog, #ew-add-opt-dialog")[0];
    Object.assign(options, ew.vars.tables.extra_absensi.fields.kelas.selectOptions);
    ew.createSelect(options);
});
</script>
</span>
<?php } ?>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->nisn->Visible) { // nisn ?>
    <div id="r_nisn" class="form-group row">
        <label id="elh_extra_absensi_nisn" for="x_nisn" class="<?= $Page->LeftColumnClass ?>"><?= $Page->nisn->caption() ?><?= $Page->nisn->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->nisn->cellAttributes() ?>>
<span id="el_extra_absensi_nisn">
<input type="<?= $Page->nisn->getInputTextType() ?>" data-table="extra_absensi" data-field="x_nisn" name="x_nisn" id="x_nisn" size="30" maxlength="255" value="<?= $Page->nisn->EditValue ?>"<?= $Page->nisn->editAttributes() ?> aria-describedby="x_nisn_help">
<?= $Page->nisn->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->nisn->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->nis->Visible) { // nis ?>
    <div id="r_nis" class="form-group row">
        <label id="elh_extra_absensi_nis" for="x_nis" class="<?= $Page->LeftColumnClass ?>"><?= $Page->nis->caption() ?><?= $Page->nis->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->nis->cellAttributes() ?>>
<span id="el_extra_absensi_nis">
<input type="<?= $Page->nis->getInputTextType() ?>" data-table="extra_absensi" data-field="x_nis" name="x_nis" id="x_nis" size="30" maxlength="255" value="<?= $Page->nis->EditValue ?>"<?= $Page->nis->editAttributes() ?> aria-describedby="x_nis_help">
<?= $Page->nis->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->nis->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->nama->Visible) { // nama ?>
    <div id="r_nama" class="form-group row">
        <label id="elh_extra_absensi_nama" for="x_nama" class="<?= $Page->LeftColumnClass ?>"><?= $Page->nama->caption() ?><?= $Page->nama->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->nama->cellAttributes() ?>>
<span id="el_extra_absensi_nama">
<input type="<?= $Page->nama->getInputTextType() ?>" data-table="extra_absensi" data-field="x_nama" name="x_nama" id="x_nama" size="30" maxlength="255" value="<?= $Page->nama->EditValue ?>"<?= $Page->nama->editAttributes() ?> aria-describedby="x_nama_help">
<?= $Page->nama->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->nama->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->jk->Visible) { // jk ?>
    <div id="r_jk" class="form-group row">
        <label id="elh_extra_absensi_jk" for="x_jk" class="<?= $Page->LeftColumnClass ?>"><?= $Page->jk->caption() ?><?= $Page->jk->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->jk->cellAttributes() ?>>
<span id="el_extra_absensi_jk">
<input type="<?= $Page->jk->getInputTextType() ?>" data-table="extra_absensi" data-field="x_jk" name="x_jk" id="x_jk" size="30" maxlength="255" value="<?= $Page->jk->EditValue ?>"<?= $Page->jk->editAttributes() ?> aria-describedby="x_jk_help">
<?= $Page->jk->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->jk->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->s->Visible) { // s ?>
    <div id="r_s" class="form-group row">
        <label id="elh_extra_absensi_s" for="x_s" class="<?= $Page->LeftColumnClass ?>"><?= $Page->s->caption() ?><?= $Page->s->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->s->cellAttributes() ?>>
<span id="el_extra_absensi_s">
<input type="<?= $Page->s->getInputTextType() ?>" data-table="extra_absensi" data-field="x_s" name="x_s" id="x_s" size="30" maxlength="255" value="<?= $Page->s->EditValue ?>"<?= $Page->s->editAttributes() ?> aria-describedby="x_s_help">
<?= $Page->s->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->s->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->_i->Visible) { // i ?>
    <div id="r__i" class="form-group row">
        <label id="elh_extra_absensi__i" for="x__i" class="<?= $Page->LeftColumnClass ?>"><?= $Page->_i->caption() ?><?= $Page->_i->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->_i->cellAttributes() ?>>
<span id="el_extra_absensi__i">
<input type="<?= $Page->_i->getInputTextType() ?>" data-table="extra_absensi" data-field="x__i" name="x__i" id="x__i" size="30" maxlength="255" value="<?= $Page->_i->EditValue ?>"<?= $Page->_i->editAttributes() ?> aria-describedby="x__i_help">
<?= $Page->_i->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->_i->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->a->Visible) { // a ?>
    <div id="r_a" class="form-group row">
        <label id="elh_extra_absensi_a" for="x_a" class="<?= $Page->LeftColumnClass ?>"><?= $Page->a->caption() ?><?= $Page->a->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->a->cellAttributes() ?>>
<span id="el_extra_absensi_a">
<input type="<?= $Page->a->getInputTextType() ?>" data-table="extra_absensi" data-field="x_a" name="x_a" id="x_a" size="30" maxlength="255" value="<?= $Page->a->EditValue ?>"<?= $Page->a->editAttributes() ?> aria-describedby="x_a_help">
<?= $Page->a->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->a->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->ekstra1->Visible) { // ekstra1 ?>
    <div id="r_ekstra1" class="form-group row">
        <label id="elh_extra_absensi_ekstra1" for="x_ekstra1" class="<?= $Page->LeftColumnClass ?>"><?= $Page->ekstra1->caption() ?><?= $Page->ekstra1->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->ekstra1->cellAttributes() ?>>
<span id="el_extra_absensi_ekstra1">
<input type="<?= $Page->ekstra1->getInputTextType() ?>" data-table="extra_absensi" data-field="x_ekstra1" name="x_ekstra1" id="x_ekstra1" size="30" maxlength="255" value="<?= $Page->ekstra1->EditValue ?>"<?= $Page->ekstra1->editAttributes() ?> aria-describedby="x_ekstra1_help">
<?= $Page->ekstra1->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->ekstra1->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->deskripsi1->Visible) { // deskripsi1 ?>
    <div id="r_deskripsi1" class="form-group row">
        <label id="elh_extra_absensi_deskripsi1" for="x_deskripsi1" class="<?= $Page->LeftColumnClass ?>"><?= $Page->deskripsi1->caption() ?><?= $Page->deskripsi1->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->deskripsi1->cellAttributes() ?>>
<span id="el_extra_absensi_deskripsi1">
<input type="<?= $Page->deskripsi1->getInputTextType() ?>" data-table="extra_absensi" data-field="x_deskripsi1" name="x_deskripsi1" id="x_deskripsi1" size="30" maxlength="255" value="<?= $Page->deskripsi1->EditValue ?>"<?= $Page->deskripsi1->editAttributes() ?> aria-describedby="x_deskripsi1_help">
<?= $Page->deskripsi1->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->deskripsi1->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->ekstra2->Visible) { // ekstra2 ?>
    <div id="r_ekstra2" class="form-group row">
        <label id="elh_extra_absensi_ekstra2" for="x_ekstra2" class="<?= $Page->LeftColumnClass ?>"><?= $Page->ekstra2->caption() ?><?= $Page->ekstra2->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->ekstra2->cellAttributes() ?>>
<span id="el_extra_absensi_ekstra2">
<input type="<?= $Page->ekstra2->getInputTextType() ?>" data-table="extra_absensi" data-field="x_ekstra2" name="x_ekstra2" id="x_ekstra2" size="30" maxlength="255" value="<?= $Page->ekstra2->EditValue ?>"<?= $Page->ekstra2->editAttributes() ?> aria-describedby="x_ekstra2_help">
<?= $Page->ekstra2->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->ekstra2->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->deskripsi2->Visible) { // deskripsi2 ?>
    <div id="r_deskripsi2" class="form-group row">
        <label id="elh_extra_absensi_deskripsi2" for="x_deskripsi2" class="<?= $Page->LeftColumnClass ?>"><?= $Page->deskripsi2->caption() ?><?= $Page->deskripsi2->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->deskripsi2->cellAttributes() ?>>
<span id="el_extra_absensi_deskripsi2">
<input type="<?= $Page->deskripsi2->getInputTextType() ?>" data-table="extra_absensi" data-field="x_deskripsi2" name="x_deskripsi2" id="x_deskripsi2" size="30" maxlength="255" value="<?= $Page->deskripsi2->EditValue ?>"<?= $Page->deskripsi2->editAttributes() ?> aria-describedby="x_deskripsi2_help">
<?= $Page->deskripsi2->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->deskripsi2->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->ekstra3->Visible) { // ekstra3 ?>
    <div id="r_ekstra3" class="form-group row">
        <label id="elh_extra_absensi_ekstra3" for="x_ekstra3" class="<?= $Page->LeftColumnClass ?>"><?= $Page->ekstra3->caption() ?><?= $Page->ekstra3->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->ekstra3->cellAttributes() ?>>
<span id="el_extra_absensi_ekstra3">
<input type="<?= $Page->ekstra3->getInputTextType() ?>" data-table="extra_absensi" data-field="x_ekstra3" name="x_ekstra3" id="x_ekstra3" size="30" maxlength="255" value="<?= $Page->ekstra3->EditValue ?>"<?= $Page->ekstra3->editAttributes() ?> aria-describedby="x_ekstra3_help">
<?= $Page->ekstra3->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->ekstra3->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->deskripsi3->Visible) { // deskripsi3 ?>
    <div id="r_deskripsi3" class="form-group row">
        <label id="elh_extra_absensi_deskripsi3" for="x_deskripsi3" class="<?= $Page->LeftColumnClass ?>"><?= $Page->deskripsi3->caption() ?><?= $Page->deskripsi3->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->deskripsi3->cellAttributes() ?>>
<span id="el_extra_absensi_deskripsi3">
<input type="<?= $Page->deskripsi3->getInputTextType() ?>" data-table="extra_absensi" data-field="x_deskripsi3" name="x_deskripsi3" id="x_deskripsi3" size="30" maxlength="255" value="<?= $Page->deskripsi3->EditValue ?>"<?= $Page->deskripsi3->editAttributes() ?> aria-describedby="x_deskripsi3_help">
<?= $Page->deskripsi3->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->deskripsi3->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->ekstra4->Visible) { // ekstra4 ?>
    <div id="r_ekstra4" class="form-group row">
        <label id="elh_extra_absensi_ekstra4" for="x_ekstra4" class="<?= $Page->LeftColumnClass ?>"><?= $Page->ekstra4->caption() ?><?= $Page->ekstra4->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->ekstra4->cellAttributes() ?>>
<span id="el_extra_absensi_ekstra4">
<input type="<?= $Page->ekstra4->getInputTextType() ?>" data-table="extra_absensi" data-field="x_ekstra4" name="x_ekstra4" id="x_ekstra4" size="30" maxlength="255" value="<?= $Page->ekstra4->EditValue ?>"<?= $Page->ekstra4->editAttributes() ?> aria-describedby="x_ekstra4_help">
<?= $Page->ekstra4->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->ekstra4->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
<?php if ($Page->deskripsi4->Visible) { // deskripsi4 ?>
    <div id="r_deskripsi4" class="form-group row">
        <label id="elh_extra_absensi_deskripsi4" for="x_deskripsi4" class="<?= $Page->LeftColumnClass ?>"><?= $Page->deskripsi4->caption() ?><?= $Page->deskripsi4->Required ? $Language->phrase("FieldRequiredIndicator") : "" ?></label>
        <div class="<?= $Page->RightColumnClass ?>"><div <?= $Page->deskripsi4->cellAttributes() ?>>
<span id="el_extra_absensi_deskripsi4">
<input type="<?= $Page->deskripsi4->getInputTextType() ?>" data-table="extra_absensi" data-field="x_deskripsi4" name="x_deskripsi4" id="x_deskripsi4" size="30" maxlength="255" value="<?= $Page->deskripsi4->EditValue ?>"<?= $Page->deskripsi4->editAttributes() ?> aria-describedby="x_deskripsi4_help">
<?= $Page->deskripsi4->getCustomMessage() ?>
<div class="invalid-feedback"><?= $Page->deskripsi4->getErrorMessage() ?></div>
</span>
</div></div>
    </div>
<?php } ?>
</div><!-- /page* -->
<?php if (!$Page->IsModal) { ?>
<div class="form-group row"><!-- buttons .form-group -->
    <div class="<?= $Page->OffsetColumnClass ?>"><!-- buttons offset -->
<button class="btn btn-primary ew-btn" name="btn-action" id="btn-action" type="submit"><?= $Language->phrase("AddBtn") ?></button>
<button class="btn btn-default ew-btn" name="btn-cancel" id="btn-cancel" type="button" data-href="<?= HtmlEncode(GetUrl($Page->getReturnUrl())) ?>"><?= $Language->phrase("CancelBtn") ?></button>
    </div><!-- /buttons offset -->
</div><!-- /buttons .form-group -->
<?php } ?>
</form>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<script>
// Field event handlers
loadjs.ready("head", function() {
    ew.addEventHandlers("extra_absensi");
});
</script>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
