<?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 <span class="text-danger">*</span></label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="kode" value="<?php echo set_value('kode');?>" placeholder="<?php echo $produk == 'pulsa' || $produk == 'paket_internet' ? 'Contoh; S' : ($produk == 'token_pln' ? 'Contoh; PLN' : ($produk == 'voucher_game' ? 'Contoh; ML' : ''));?>" maxlength="32"/>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Nama <span class="text-danger">*</span></label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="nama" value="<?php echo set_value('nama');?>" placeholder="<?php echo $produk == 'pulsa' || $produk == 'paket_internet' ? 'Contoh; Telkomsel' : ($produk == 'token_pln' ? 'Contoh; PLN Prabayar' : ($produk == 'voucher_game' ? 'Contoh; Mobile Legend' : ''));?>" 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();?>
      </select>
    </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/' . $produk);?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
    </div>
  </div>
<?php echo form_close();?>
