<main role="main" class="container">
    <div class="d-flex align-items-center p-3 my-3 text-white-50 bg-purple rounded box-shadow">
        <div class="lh-100">
            <h6 class="mb-0 text-white lh-100">Edit Subject</h6>
        </div>
    </div>

    <div class="my-3 p-3 bg-white rounded box-shadow">
        <?= form_open('updatesubject') ?>
        
        <div class="row">
            <div class="col-md-2">
                Subject Code:
            </div>
            <div class="col-md-10">
                <input type="text" name="subjectcode" placeholder="Enter subject code" required class='form-control' value="<?=$subjectcode?>">
            </div>
        </div>

        <div class="row mt-3">
            <div class="col-md-2">
                Subject Description:
            </div>
            <div class="col-md-10">
                <input type="text" name="subjectdesc" placeholder="Enter subject description" required class='form-control' value="<?=$subjectdesc ?>">
            </div>
        </div>

        <div class="row mt-3">
            <div class="col-md-2">
                Subject Unit:
            </div>
            <div class="col-md-10">
                <input type="number" name="subjectunit" placeholder="Enter subject unit" required class='form-control' value="<?=$subjectunit?>">
            </div>
        </div>

        <div class="mt-3">
            <input type="hidden" name="subjectid" value="<?=$subjectid?>">
            <input type="submit" value="Update" class="btn btn-info">
            <a href="<?= base_url() ?>subject" class="btn btn-secondary">Back</a>
        </div>
    </div>
</main>	