<?php
//form edit open
echo form_open(base_url('peserta/editjur/'.$peserta->no_pendaftaran));
?>

<!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <!-- Default box -->
        <div class="card">
          <div class="card-header">
            <h3 class="card-title"><b>A. IDENTITAS SISWA</b></h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                <i class="fas fa-minus"></i>
              </button>
            </div>
          </div>

          <div class="card-body">
            <div class="form-group row">
              <label for="no_pendaftaran" class="col-sm-2 col-form-label">No. Pendaftaran</label>:
              <div class="col-sm-9">
                <input type="text" name="no_pendaftaran" class="form-control" placeholder="No. Pendaftaran" value="<?php echo $peserta->no_pendaftaran?>" onkeypress="return event.charCode >= 48 && event.charCode <=57" disabled>
              </div>
            </div>

            <div class="form-group row">
              <label for="nama_lengkap" class="col-sm-2 col-form-label">Nama Lengkap</label>:
              <div class="col-sm-9">
                <input type="text" name="nama_lengkap" class="form-control" placeholder="Nama Lengkap" value="<?php echo $peserta->nama_lengkap?>" onkeyup="this.value = this.value.toUpperCase()" disabled >
              </div>
            </div>

            <div class="form-group row">
              <label for="sekolah_asal" class="col-sm-2 col-form-label">Sekolah Asal</label>:
              <div class="col-sm-9">
                <input type="text" name="sekolah_asal" class="form-control" placeholder="Sekolah Asal" value="<?php echo $peserta->sekolah_asal?>" disabled >
              </div>
            </div>
           
            <div class="form-group row">
              <label for="kd_kompetensi" class="col-sm-2 col-form-label">Program Keahlian</label>:
              <div class="col-sm-9">
                <select name="kd_kompetensi" class="form-control">       
                  <option value="MPLB" <?php if($peserta->kd_kompetensi=="MPLB") { echo "selected"; } ?>>
                  Manajemen Perkantoran dan Layanan Bisnis</option>
                  <option value="TJKT" <?php if($peserta->kd_kompetensi=="TJKT") { echo "selected"; } ?>>
                  Teknik Jaringan Komputer & Telekomunikasi</option>
                  <option value="ANIMASI" <?php if($peserta->kd_kompetensi=="ANIMASI") { echo "selected"; } ?>>
                  Animasi</option>
                  <option value="KULINER" <?php if($peserta->kd_kompetensi=="KULINER") { echo "selected"; } ?>>
                  Kuliner</option>
                </select>
              </div>
            </div>
            
        <div class="form-group row">
        <label for="ok" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-9">
         <button type="submit" class="btn btn-primary">
          <i class="fa fa-save"></i> Update Data
        </button>
        <button type="reset" class="btn btn-info">
          <i class="fa fa-times"></i> Reset
        </button>
        <a href="<?php echo base_url('peserta/detail/'.$peserta->no_pendaftaran) ?>" class="btn btn-default">
          <i class="fa fa-backward"></i> Kembali        
        </a>
      </div>

    </div><!-- /.card -->
  </div>
</div>
</div>
</div>
</section><!-- /.content -->

<?php
//form close
echo form_close();
?>