<?= $this->extend('layout/main') ?>

<?= $this->section('content') ?>
<div class="container mt-5">
    <h2>Add New Quiz Column</h2>
    <form method="post" action="<?= base_url('/teacher/addQuizColumn') ?>">
        <?= csrf_field(); ?>
        <div class="mb-3">
            <label for="quiz_index" class="form-label">Quiz Number</label>
            <input type="text" name="quiz_index" class="form-control" id="quiz_index" placeholder="e.g. Quiz 4"
                required>
        </div>
        <button type="submit" class="btn btn-primary">Add Column</button>
        <a href="<?= base_url('/teacher/addQuiz') ?>" class="btn btn-secondary">Cancel</a>
    </form>
</div>
<?= $this->endSection() ?>