<div id="page-wrapper">
	<div class="main-page">
		<div class="forms">
			<div class=" form-grids row form-grids-right">
				<div class="widget-shadow " data-example-id="basic-forms"> 
					<div class="form-title">
						<h4>Edit Data Personal Pegawai</h4>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12 grids-right widget-shadow">
				<br>
				<ul id="myTabs" class="nav nav-tabs" role="tablist">
					<li role="presentation" class="active">
						<a href="#personal" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="false">Personal</a>
					</li>
					<li role="presentation" class="">
						<a href="#kepegawaian" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true" style="pointer-events:none !important; color:grey;">Kepegawaian</a>
					</li>
					<li role="presentation" class="">
						<a href="#keluarga" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true" style="pointer-events:none !important; color:grey;">Keluarga</a>
					</li>
					<li role="presentation" class="">
						<a href="#pendidikan" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true" style="pointer-events:none !important; color:grey;">Pendidikan</a>
					</li>
					<li role="presentation" class="">
						<a href="#kesehatan" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true" style="pointer-events:none !important; color:grey;">Kesehatan</a>
					</li>
				</ul>
				<div id="myTabContent" class="tab-content">
					<div role="tabpanel" class="tab-pane fade active in" id="personal" aria-labelledby="home-tab">
						<br>
						<form action="<?php echo base_url();?>Admin/personalEditExec/<?php echo $pegawai->id_pegawai;?>" method="POST" enctype="multipart/form-data">
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Nama</p>
							</div>
							<div class="col-lg-4">
								<input class="form-control" value="<?php echo $pegawai->nama;?>" type="text" name="nama" required>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Gelar Depan</p>
							</div>
							<div class="col-lg-4">
								<input class="form-control" value="<?php echo $pegawai->gelar_depan;?>" type="text" name="gelar_depan">
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Gelar Belakang</p>
							</div>
							<div class="col-lg-4">
								<input class="form-control" value="<?php echo $pegawai->gelar_belakang;?>" type="text" name="gelar_belakang">
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">NIP/NPP</p>
							</div>
							<div class="col-lg-4">
								<input class="form-control" value="<?php echo ($pegawai->no_pegawai!=NULL ? $pegawai->no_pegawai : "");?>" type="text" name="no_pegawai" required>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Alamat</p>
							</div>
							<div class="col-lg-10">
							  <input class="form-control" value="<?php echo ($pegawai->alamat!=NULL ? $pegawai->alamat : "");?>" type="text" name="alamat" required>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Nomor Telepon / HP</p>
							</div>
							<div class="col-lg-4">
							  <input class="form-control" value="<?php echo ($pegawai->nohp!=NULL ? $pegawai->nohp : "");?>" type="text" name="nohp" required>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Email</p>
							</div>
							<div class="col-lg-4">
							  <input class="form-control" value="<?php echo ($pegawai->email!=NULL ? $pegawai->email : "");?>" type="email" name="email" required>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Tempat Lahir</p>
							</div>
							<div class="col-lg-4">
							  <input class="form-control" value="<?php echo ($pegawai->tempat_lahir!=NULL ? $pegawai->tempat_lahir : "");?>" type="text" name="tempat_lahir" required>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Tanggal Lahir</p>
							</div>
							<div class="col-lg-3">
							  <input class="form-control" value="<?php echo ($pegawai->tanggal_lahir!=NULL ? $pegawai->tanggal_lahir : "");?>" type="date" name="tanggal_lahir" required>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Jenis Kelamin</p>
							</div>
							<div class="col-lg-10">
								<label class="rdiobox">
									<input name="jenkel" type="radio" value="L" <?php echo ($pegawai->jenkel == "L" ? "checked" : "");?> required>
									<span>Laki-Laki</span>
								</label>
								<label class="rdiobox">
									<input name="jenkel" type="radio" value="P" <?php echo ($pegawai->jenkel == "P" ? "checked" : "");?> required>
									<span>Perempuan</span>
								</label>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Golongan Darah</p>
							</div>
							<div class="col-lg-2">
							  <select class="form-control select2-no-search" name="gol_darah" required>
								<option label="Pilih Salah Satu"></option>
								<option value="A" <?php echo ($pegawai->gol_darah == "A" ? "selected" : "");?>>A</option>
								<option value="B" <?php echo ($pegawai->gol_darah == "B" ? "selected" : "");?>>B</option>
								<option value="AB" <?php echo ($pegawai->gol_darah == "AB" ? "selected" : "");?>>AB</option>
								<option value="O" <?php echo ($pegawai->gol_darah == "O" ? "selected" : "");?>>O</option>
								<option value="Tidak Tahu" <?php echo ($pegawai->gol_darah == "Tidak Tahu" ? "selected" : "");?>>Tidak Tahu</option>
							  </select>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Foto KTP</p>
							</div>
							<div class="col-lg-6">
							  <div class="custom-file">
								<input type="file" class="form-control"  name="foto_ktp">
								<?php
									if($pegawai->foto_ktp != NULL)
									{
										?>
											<a href="<?php echo base_url();?>assets/pegawai/docs/<?php echo $pegawai->foto_ktp;?>" download>Klik di sini untuk mendownload file KTP Anda sebelumnya!</a>
										<?php
									}
								?>
							  </div>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Foto KK</p>
							</div>
							<div class="col-lg-6">
							  <div class="custom-file">
								<input type="file" class="form-control" name="foto_kk">
								<?php
									if($pegawai->foto_kk != NULL)
									{
										?>
											<a href="<?php echo base_url();?>assets/pegawai/docs/<?php echo $pegawai->foto_kk;?>" download>Klik di sini untuk mendownload file KK Anda sebelumnya!</a>
										<?php
									}
								?>
							  </div>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Foto Ijazah Terakhir</p>
							</div>
							<div class="col-lg-6">
							  <div class="custom-file">
								<input type="file" class="form-control" name="foto_ijazah_terakhir">
								<?php
									if($pegawai->foto_ijazah_terakhir != NULL)
									{
										?>
											<a href="<?php echo base_url();?>assets/pegawai/docs/<?php echo $pegawai->foto_ijazah_terakhir;?>" download>Klik di sini untuk mendownload file Ijazah Terakhir Anda sebelumnya!</a>
										<?php
									}
								?>
							  </div>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Lainnya</p>
							</div>
							<div class="col-lg-10">
							  <textarea class="form-control" name="lain" rows="5"><?php	echo $pegawai->lain;?></textarea>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <br>
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-12">
							  <button type="submit" class="btn btn-primary pull-right" >
								<i class="fa fa-save"></i> Simpan Data Personal
							  </button>
							  <a href="<?php echo base_url();?>Admin/personal/<?php echo $pegawai->id_pegawai;?>" class="btn btn-danger">
								<i class="fa fa-times"></i> Batal
							  </a>
							</div><!-- col-4 -->
						  </div><!-- row -->
						</form>
					</div>
				</div>
			</div>
			<div class="clearfix"> </div>
		</div>
	</div>
</div>