<!-- Main content -->
<div class="content" id="content">
  <div class='row'>
    <div class='col-lg-12'>
      <div class='panel <?= $web_box_color ?>'>
        <div class='panel-heading'=>
          <h3 class='panel-title bold'>Form Sampel</h3>
        </div>
        <form action="<?= $action; ?>" method="post" enctype="multipart/form-data">
        <div class='panel-body'>
          <div class='row'>
	        
            <div class='col-md-4'>
              <div class='form-group'>
                <label for='sampel_text'>Sampel Text : </label> 
                <input type="text" class="form-control" name="sampel_text" id="sampel_text" placeholder="Sampel Text" value="<?= $sampel_text; ?>" />
                <?= form_error('sampel_text') ?>
              </div>
            </div>
	        
            <div class='col-md-4'>
              <div class='form-group'>
                <label for='sampel_tanggal'>Sampel Tanggal : </label>
                <div class='input-group date'>
                  <div class='input-group-prepend'>
                    <span class="input-group-text"><i class="fa fa-calendar"></i></span>
                  </div>
                  <input type="date" class="form-control" name="sampel_tanggal" id="sampel_tanggal" placeholder="Sampel Tanggal" value="<?= $sampel_tanggal; ?>" />
                </div>
                <?= form_error('sampel_tanggal') ?>
              </div>
            </div>
	        
            <div class='col-md-4'>
              <div class='form-group'>
                <label for='sampel_time'>Sampel Time : </label>
                <div class='input-group time'>
                  <div class='input-group-prepend'>
                    <span class="input-group-text"><i class="fa fa-clock"></i></span>
                  </div>
                  <input type="time" class="form-control" name="sampel_time" id="sampel_time" placeholder="Sampel Time" value="<?= $sampel_time; ?>" />
                </div>
                <?= form_error('sampel_time') ?>
              </div>
            </div>
	        
            <div class='col-md-4'>
              <div class='form-group'>
                <label for='sampel_enum'>Sampel Enum : </label>
                <?= cmb_enum('sampel_enum', 'sampel', 'sampel_enum', $sampel_enum); ?>
                <?= form_error('sampel_enum') ?>
              </div>
            </div>
	        
            <div class='col-md-4'>
              <div class='form-group'>
                <label for='sampel_file'>Sampel File : </label>
                <div class="input-group mb-3">
                  <div class="input-group-prepend">
                      <span class="input-group-text" id="inputGroupFileAddon01"><i class="fa fa-file-alt"></i></span>
                  </div>
                  <div class="custom-file">
                      <input type="file" name="sampel_file" class="custom-file-input" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01" onchange="previewImage();">
                      <label class="custom-file-label" for="inputGroupFile01" id="teks-gambar">Choose file</label>
                  </div>
                </div>

                <!-- <input type="file" class="form-control" name="sampel_file" id="sampel_file" placeholder="Sampel File" value="<?= $sampel_file; ?>" /> -->
                <?= form_error('sampel_file') ?>
              </div>
            </div>
	          <input type="hidden" name="filelama" value="<?= $sampel_file; ?>" /> 
	        
            <div class='col-md-4'>
              <div class='form-group'>
                <label for='sampel_number'>Sampel Number : </label>
                <input type="number" class="form-control" name="sampel_number" id="sampel_number" placeholder="Sampel Number" value="<?= $sampel_number; ?>" />
                <?= form_error('sampel_number') ?>
              </div>
            </div>
	          <input type="hidden" name="id_sampel" value="<?= $id_sampel; ?>" /> 
	    
          </div>
        </div>
        <div class='panel-footer'>
	        <button type="submit" class="btn btn-primary  pull-right"><?= $button ?></button> 
	        <a href="javascript:window.history.go(-1);" class="btn btn-default">Batal</a>
	      </div>
        </form>
      </div>
    </div>
  </div>
</div>