<?php defined('BASEPATH') or exit('No direct script access allowed');?>
<?php echo form_open(current_url(), 'class="form-horizontal"') . PHP_EOL;?>
  <div class="form-group">
    <label class="col-sm-2 control-label">Kode</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="kode" value="<?php echo set_value('kode', $provider->op_kode);?>" maxlength="32"/>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Nama</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="nama" value="<?php echo set_value('nama', $provider->op_nama);?>" maxlength="120"/>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Validasi</label>
    <div class="col-sm-10">
      <select class="form-control" name="validasi">
        <option value="">-- Tidak ada --</option>
        <?php echo $this->produk_model->dropdown_validator($provider->op_id);?>
      </select>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Deskripsi</label>
    <div class="col-sm-10">
      <textarea class="form-control" name="deskripsi" maxlength="200" rows="4"><?php echo set_value('deskripsi', $provider->op_description);?></textarea>
    </div>
  </div>
  <div class="form-group" style="margin-bottom:0">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i> Simpan</button>
      &nbsp;
      <a href="<?php echo site_url('admin/produk/browse/' . $provider->op_produk);?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
    </div>
  </div>
<?php echo form_close();?>
