<?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">Nama Produk</label>
    <div class="col-sm-10">
      <input type="text" pattern="[a-zA-Z0-9 \[\]\=\-\_]+" class="form-control" name="nama" value="<?php echo set_value('nama');?>" maxlength="64"/>
      <p class="help-block">Jangan gunakan simbol dan jangan diawali dengan angka!</p>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Template</label>
    <div class="col-sm-10">
      <select class="form-control" name="template">
        <option value="pulsa" <?php echo set_select('template', 'pulsa');?>>Pulsa / Paket Internet / Voucher Game</option>
        <option value="token_pln" <?php echo set_select('template', 'token_pln');?>>Token PLN</option>
      </select>
      <p class="help-block">Jika menggunakan template Token PLN maka di form order akan terdapat kolom ID Pelanggan.</p>
    </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');?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
    </div>
  </div>
<?php echo form_close();?>
