<?php echo form_open();?>
  <div class="form-group">
    <label>Template</label>
    <textarea class="form-control" name="template" rows="8"><?php echo set_value('template', $template[0]);?></textarea>
  </div>
  <div class="well well-sm">
  Variabel yang tersedia pada template ini: <?php echo $template[1] ? implode(', ', $template[1]) : '';?>
  <br />
  Global variabel: {US_ID}, {US_USERNAME}, {US_NAME}, {US_BALANCE}, {SITE_NAME}, {SITE_URL}, {SITE_DOMAIN}
  </div>
  <div>
    <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i> Simpan</button>
    &nbsp;
    <a href="<?php echo site_url('admin/modules/smstrx/template');?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
  </div>
<?php echo form_close();?>