Skip to content
Andi Fahruddin Akas edited this page Jun 27, 2020 · 3 revisions

Modal

<a href="<?= site_url("kelompok/add_anggota/$kel")?>" data-remote="false" data-toggle="modal" data-target="#modalBox" data-title="Tambah Anggota Kelompok" title="Tambah Anggota Kelompok" class="btn btn-social btn-flat btn-success btn-sm visible-xs-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block"><i class='fa fa-plus'></i> Tambah Anggota Kelompok</a>
<script src="<?= base_url()?>assets/js/jquery.validate.min.js"></script>
<script src="<?= base_url()?>assets/js/localization/messages_id.js"></script>

<form action="<?= $form_action?>" method="post" id="validasi">
	<div class='modal-body'>
		<?php if (!@$pend): ?>
			<div class="form-group">
				<label for="id_penduduk">Nama Anggota</label>
				<select class="form-control input-sm select2 required" id="id_penduduk" name="id_penduduk" style="width:100%;">
					<option value="">-- Silakan Masukan NIK / Nama --</option>
					<?php foreach ($list_penduduk as $data): ?>
						<option value="<?= $data['id']?>">NIK :<?= $data['nik']." - ".$data['nama']?></option>
					<?php endforeach;?>
				</select>
			</div>
		<?php endif; ?>
		<div class="form-group">
			<label for="no_anggota">Nomor Anggota</label>
			<input id="no_anggota" class="form-control input-sm bilangan required" type="text" placeholder="Nomor Anggota" name="no_anggota" value="<?=$pend['no_anggota']; ?>">
		</div>
	</div>
	<div class="modal-footer">
		<button type="reset" class="btn btn-social btn-flat btn-danger btn-sm" data-dismiss="modal"><i class='fa fa-sign-out'></i> Tutup</button>
		<button type="submit" class="btn btn-social btn-flat btn-info btn-sm" id="ok"><i class='fa fa-check'></i> Simpan</button>
	</div>
</form>

Clone this wiki locally