<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 Suplier</h3>
				</div>
				
				<div class="box-body">
					<?php echo form_open_multipart('suplier/post', array('role' => "form", 'id' => "myForm", 'data-toggle' => "validator")); ?>
                    <div class="form-group">
						<label for="nama_perusahaan" class="control-label">Nama Supplier</label>
						<div class="input-group">
							<input type="text" class="form-control" name="nama_perusahaan" id="nama_perusahaan" data-error="nama perusahaan harus diisi" placeholder="nama supplier" 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="alamat" class="control-label">Alamat</label>
						<div class="input-group">
							<input type="text" class="form-control" name="alamat" id="alamat" data-error="alamat harus diisi" placeholder="alamat" 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="no_tlp" class="control-label">No. Telp</label>
						<div class="input-group">
							<input type="number" class="form-control" name="no_tlp" id="no_tlp" data-error="no. tlp harus diisi" placeholder="no. tlp" 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="email" class="control-label">E-Mail</label>
						<div class="input-group">
							<input type="email" class="form-control" name="email" id="email" data-error="email harus diisi" placeholder="email" 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="box-footer">
						<button type="submit" name="submit" class="btn btn-primary ">Simpan</button>
						<a href="<?php echo base_url() ?>suplier" class="btn btn-default ">Cancel</a>
					</div>
					</form>
				</div><!-- /.box-body -->
			</div><!-- /.box -->
		</div>
	</div>
</section>