<div class="az-content az-content-dashboard">
  <div class="container">
	<div class="az-content-body">
	  <div class="az-content-label mg-b-5">Ubah Prestasi</div>
		<form action="<?php echo base_url();?>Pendaftaran/editPrestasiExec" method="POST" enctype="multipart/form-data">
		  <input type="hidden" name="id_prestasi" value="<?php echo $prestasi->id_prestasi;?>">
		  <div class="row row-sm mg-b-20">
			<div class="col-lg-2">
			  <p class="mg-b-10">Tingkat</p>
			</div>
			<div class="col-lg-3">
			  <input class="form-control" type="text" name="tingkat" value="<?php echo $prestasi->tingkat;?>" required>
			</div><!-- col-4 -->
		  </div><!-- row -->
		  <div class="row row-sm mg-b-20">
			<div class="col-lg-2">
			  <p class="mg-b-10">Juara</p>
			</div>
			<div class="col-lg-3">
			  <input class="form-control" type="text" name="juara" value="<?php echo $prestasi->juara;?>" required>
			</div><!-- col-4 -->
		  </div><!-- row -->
		  <div class="row row-sm mg-b-20">
			<div class="col-lg-2">
			  <p class="mg-b-10">Nama Kejuaraan</p>
			</div>
			<div class="col-lg-4">
			  <input class="form-control" type="text" name="nama_kejuaraan" value="<?php echo $prestasi->nama_kejuaraan;?>" required>
			</div><!-- col-4 -->
		  </div><!-- row -->
		  <div class="row row-sm mg-b-20">
			<div class="col-lg-2">
			  <p class="mg-b-10">Tahun</p>
			</div>
			<div class="col-lg-1">
			  <input class="form-control" type="number" name="tahun" value="<?php echo $prestasi->tahun;?>" required>
			</div><!-- col-4 -->
		  </div><!-- row -->
		  <div class="row row-sm mg-b-20">
			<div class="col-lg-2">
			  <p class="mg-b-10">Sertifikat</p>
			</div>
			<div class="col-lg-6">
			  <img src="<?php echo base_url();?>files/calon_siswa/prestasi/<?php echo $prestasi->sertifikat;?>" height="200px">
              <input type="file" class="form-control" name="sertifikat" accept="image/png, image/gif, image/jpeg, image/jpg">
			  <label style="color:#ff0000;"><i>*Sertifikat harus berupa file gambar berformat JPG, PNG, atau JPEG.</i></label>
			</div>
		  </div><!-- row -->
		  <br>
		  <br>
		  <div class="row row-sm mg-b-20">
			<div class="col-lg-12">
			  <a href="<?php echo base_url();?>Pendaftaran/step4" class="btn btn-danger"><i class="fa fa-times"></i> Batal</a>
			  <button type="submit" class="btn btn-az-primary float-sm-right">
				Simpan
			  </button>
			</div><!-- col-4 -->
		  </div><!-- row -->
		</form>
	</div>
  </div>
</div><!-- az-content -->