<div id="setting" class="app-form">
  <form role="form">
   <!-- <div class="form-group">
      <label for="dir">Direktori Kerja</label>
      <p class="form-control-static">{{ workspace }}</p>
      <br />
      <a class="btn btn-default" ng-click="changeWorkspace()">Ubah</a>
    </div>

    <div class="form-group">
      <br />
    </div>
	-->
    <div class="form-group">
      <label for="proxy">Status Proxy</label>
      <p class="form-control-static">{{ currentProxy }}</p>
      <br />
      <a class="btn btn-default" ng-show="!manualSettings && activeProxy == 'manual' && !checking"  ng-click="setManualProxy()">Ubah</a>
    </div>

    <div class="panel panel-default" ng-show="manualSettings">
        <div class="container">
        <div class="form-group">
            &nbsp;
        </div>
        <div class="form-group">
            <label for="proxy">Setelan proxy manual</label>
        </div>

        <div class="form-group">
          <label for="proxy">Host</label>
          <input style="width: 200px;" class="form-control" ng-model="conf.host" placeholder="host"></input>
        </div>

        <div class="form-group">
          <label for="proxy">Port</label>
          <input style="width: 100px;" class="form-control" ng-model="conf.port" placeholder="port"></input>
        </div>

        <div class="form-group">
          <label for="proxy">Username</label>
          <input style="width: 200px;" class="form-control" ng-model="conf.user" placeholder="username"></input>
        </div>

        <div class="form-group">
          <label for="proxy">Password</label>
          <input style="width: 200px;" class="form-control" type="password" ng-model="conf.password" placeholder="password"></input>
        </div>

        <div class="form-group">
            <a class="btn btn-default" ng-click="setManualProxyExec()" ng-disabled="!conf.host || !conf.port">Set proxy manual</a>
        </div>
        </div>
    </div>

    <div class="btn-group proxy">
        <a id="noproxy" class="btn btn-default" ng-disabled="checking" ng-click="setNoProxy()">Tanpa proxy</a>
        <a id="auto" class="btn btn-default" ng-disabled="checking" ng-click="setAutoProxy()">Sistem</a>
        <a id="manual" class="btn btn-default" ng-disabled="checking" ng-click="setManualProxy()">Manual</a>
    </div>
  </form>
</div>
