<div class="content-header">
<div>
  <h4 class="content-title"><?php echo $title; ?></h4>
</div>
</div><!-- content-header -->
<div class="content-body">
	<?php if($this->session->flashdata('error')): ?>
	<div class="alert alert-danger"><?php echo $this->session->flashdata('error'); ?></div>
	<?php endif; ?>
	<form action="" method="post" enctype="multipart/form-data">
		<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">
		<div class="row">
			<div class="form-group col-md-6">
				<label>Kategori</label>
				<input type="text" class="form-control" name="nama" value="<?php echo set_value('nama'); ?>" autofocus>
				<small class="text-danger"><?php echo form_error('nama'); ?></small>
			</div>
			<div class="form-group col-md-6">
				<label>Icon</label>
				<input type="file" class="form-control" name="gambar" required>
			</div>
		</div>
		<div class="form-group">
			<button type="button" onclick="goBack();" class="btn btn-warning">Batal</button>
			<button type="submit" class="btn btn-success">Simpan</button>
		</div>
	</form>
</div><!-- content-body -->