<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Daftar Seni</title>
    <link rel="stylesheet" href="<?= base_url('assets/css/style.css') ?>">
</head>
<body>
    <div class="login-box">
        <h2>Form Pendaftaran Seni</h2>
        <form method="post">
            <label>Jenis Pendaftar</label><br>
            <select name="jenis_pendaftar" required>
                <option value="perorangan">Perorangan</option>
                <option value="kelompok">Kelompok / Sanggar</option>
            </select><br><br>

            <label>Nama Sanggar (jika kelompok)</label><br>
            <input type="text" name="nama_sanggar" placeholder="Isi jika kelompok"><br><br>

            <label>Pilih Seni</label><br>
            <select name="id_seni" required>
                <?php foreach($jenis_seni as $s): ?>
                    <option value="<?= $s->id_seni ?>"><?= $s->nama_seni ?></option>
                <?php endforeach; ?>
            </select><br><br>

            <label>Deskripsi</label><br>
            <textarea name="deskripsi" required></textarea><br><br>

            <button type="submit">Daftar</button>
        </form>
        <a href="<?= base_url('pendaftaran') ?>">Kembali</a>
    </div>
</body>
</html>
