<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title>Admin &gt; Jabber API</title>
    <?php include_once(VIEWPATH.'includes/head.php'); ?>
  </head>
  <body>
    <?php include_once(VIEWPATH. 'admin/_navbar.php'); ?>
    <div class="container">
      <ul class="breadcrumb">
        <li><a href="<?php echo site_url();?>"><i class="fa fa-home"></i></a></li>
        <li><a href="<?php echo site_url('admin');?>">Admin Panel</a></li>
        <li class="active"><span>Jabber API</span></li>
      </ul>
      <div class="row">
        <div class="col-sm-4 col-md-3">
          <?php include(dirname(__file__).'/_sidebar.php');?>
        </div>
        <div class="col-sm-8 col-md-9">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3><i class="fa fa-cog"></i> Pengaturan</h3>
            </div>
            <div class="panel-body">
              <?php echo form_open(current_url(),'autocomplete="off"');?>
              <div class="form-group">
                <label>Server URL</label>
                <input type="url" class="form-control" name="server_url" value="<?php echo set_value('server_url', $jabber_api['server_url']);?>" placeholder="http://" maxlength="255" />
              </div>
              <div class="form-group">
                <label>Username</label>
                <input type="text" class="form-control" name="username" value="<?php echo set_value('username', $jabber_api['username']);?>" placeholder="user@example.com" maxlength="255" autocomplete="new-username"/>
              </div>
              <div class="form-group">
                <label>Password</label>
                <input type="password" class="form-control" name="password" maxlength="32" autocomplete="new-password" />
              </div>
              <div class="form-group">
                <label>Callback Key</label>
                <input type="text" class="form-control" name="callback_key" value="<?php echo set_value('callback_key', $jabber_api['callback_key']);?>" maxlength="255" />
              </div>
              <div>
                <button type="submit" name="submit" value="save" class="btn btn-primary"><i class="fa fa-check"></i> Simpan</button>
              </div>
              <?php echo form_close();?>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>
</html>