<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>assets/app/css/style.css">
<?php if ($this->session->flashdata('message')) { ?>
<div class="col-lg-12 alerts">
	<div class="alert alert-dismissible alert-danger">
		<button type="button" class="close" data-dismiss="alert">&times;</button>
		<h4> <i class="icon fa fa-ban"></i> Error</h4>
		<p><?php echo $this->session->flashdata('message'); ?></p>
	</div>
</div>
<?php } else { } ?>
<section class="content">
	<div class="row">
		<div class='col-xs-12'>
			<div class='box box-primary'>
				<div class='box-header  with-border'>
					<h3 class='box-title'>Tambah Data Siswa</h3>
				</div>
				
				<div class="box-body">
					<?php echo form_open_multipart('siswa/post', array('role' => "form", 'id' => "myForm", 'data-toggle' => "validator")); ?>
                    <div class="form-group">
						<label for="nis" class="control-label">NIS Siswa</label>
						<div class="input-group">
							<input type="text" class="form-control" name="nis" id="nis" data-error="nis harus diisi" placeholder="nis siswa" value="" required />
							<span class="input-group-addon">
								<span class="fa fa-cube"></span>
							</span>
						</div>
						<div class="help-block with-errors"></div>
					</div>
					<div class="form-group">
						<label for="nama_siswa" class="control-label">Nama Siswa</label>
						<div class="input-group">
							<input type="text" class="form-control" name="nama_siswa" id="nama_siswa" data-error="Nama  harus diisi" placeholder="nama siswa" value="" required />
							<span class="input-group-addon">
								<span class="fa fa-cube"></span>
							</span>
						</div>
						<div class="help-block with-errors"></div>
					</div>
                    <div class="form-group">
						<label for="KELAS" class="control-label">Kelas Siswa</label>
						<div class="input-group">
							<input type="text" class="form-control" name="kelas" id="kelas" data-error="kelas harus diisi" placeholder="Kelas" value="" required />
							<span class="input-group-addon">
								<span class="fa fa-cube"></span>
							</span>
						</div>
						<div class="help-block with-errors"></div>
					</div>
					<div class="form-group">
						<label for="status" class="control-label">Status</label>
						<div class="input-group">
							<select class="form-control" name="status">
								<option value="">Pilih</option>
								<option value="Karyawan">Karyawan</option>
								<option value="Yayasan">Yayasan</option>
								<option value="Yatim">Yatim</option>
								<option value="-">-</option>
							</select>
							<span class="input-group-addon">
								<span class="fa fa-list"></span>
							</span>
						</div>
						<div class="help-block with-errors"></div>
					</div>
					
					<div class="box-footer">
						<button type="submit" name="submit" class="btn btn-primary ">Simpan</button>
						<a href="<?php echo base_url() ?>siswa" class="btn btn-default ">Cancel</a>
					</div>
					</form>
				</div><!-- /.box-body -->
			</div><!-- /.box -->
		</div>
	</div>
</section>