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

<?= $this->section('content') ?>

<div class="admin-page-header">
    <h1>Tambah Riwayat Pendidikan Baru</h1>
</div>

<div class="admin-card">
<form action="" method="post">
    <div class="admin-form-group">
        <label for="jenjang">Jenjang *</label>
        <select name="jenjang" class="admin-form-control" required>
            <option value="">Pilih Jenjang</option>
            <option value="SD">SD</option>
            <option value="SMP">SMP</option>
            <option value="SMA">SMA</option>
            <option value="S1">S1</option>
            <option value="S2">S2</option>
            <option value="S3">S3</option>
        </select>
    </div>
    <div class="admin-form-group">
        <label for="nama_sekolah">Nama Sekolah/Universitas *</label>
        <input type="text" name="nama_sekolah" class="admin-form-control" placeholder="Nama sekolah atau universitas" required>
    </div>
    <div class="admin-form-group">
        <label for="jurusan">Jurusan</label>
        <input type="text" name="jurusan" class="admin-form-control" placeholder="Jurusan (untuk SMA/S1/S2/S3)">
    </div>
    <div class="row">
        <div class="col-md-6">
            <div class="admin-form-group">
                <label for="tahun_mulai">Tahun Mulai</label>
                <input type="number" name="tahun_mulai" class="admin-form-control" placeholder="Contoh: 2010" min="1900" max="2100">
            </div>
        </div>
        <div class="col-md-6">
            <div class="admin-form-group">
                <label for="tahun_selesai">Tahun Selesai</label>
                <input type="number" name="tahun_selesai" class="admin-form-control" placeholder="Contoh: 2016" min="1900" max="2100">
            </div>
        </div>
    </div>
    <div class="admin-form-group">
        <label for="ipk">IPK</label>
        <input type="number" name="ipk" class="admin-form-control" placeholder="Contoh: 3.50" step="0.01" min="0" max="4">
        <small class="text-muted d-block mt-1">Hanya untuk jenjang S1, S2, S3</small>
    </div>
    <div class="admin-form-group">
        <label for="keterangan">Keterangan</label>
        <textarea name="keterangan" class="admin-form-control" rows="3" placeholder="Keterangan tambahan"></textarea>
    </div>
    <div class="admin-form-group d-flex gap-2">
        <button type="submit" class="admin-btn admin-btn-primary">Simpan</button>
        <a href="<?= base_url('admin/education') ?>" class="admin-btn admin-btn-secondary">Batal</a>
    </div>
</form>
</div>

<?= $this->endSection() ?>







