aboutsummaryrefslogtreecommitdiffstats
path: root/alias-angular/app/index.html
blob: 8a23622b0f97cdd7addf5efcb67b28dfcfca577f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html ng-app="Alias">
<head>
  <meta charset="utf-8"/>
  <title>Alias</title>
  <link rel="stylesheet/less" href="css/less/bootstrap.less" />
  <link rel="stylesheet/less" href="css/app.less" />
  <script src="lib/less.js" type="text/javascript"></script>
</head>
<body>
  <div id="titlebar" class="well">
    <h1 class="pull-left">Alias</h1>
    <div class="pull-right" ng-controller="ConnectCtl" id="connect">
      <form class="form-inline" ng-submit="login()" ng-hide="status == 'Connected'">
        <input type="text" ng-model="username" class="input-medium" placeholder="Email"/>
        <input type="password" ng-model="password" class="input-medium" placeholder="Password"/>
        <button class="btn" type="submit" ng-disabled="!username || !password">Sign in</button>
      </form>
      <button class="btn" ng-show='status == "Connected"' ng-click="disconnect()">Disconnect</button>
    </div>
  </div>
  <div id="roster" ng-controller="RosterCtl">
    <form class="form-inline">
      <div class="input-prepend">
        <span class="add-on"><i class="icon-search"></i></span><!--
        --><input class="span2" type="text" placeholder="Search" ng-model="query"/>
      </div>
    </form>
    <ul>
      <li ng-repeat="(key,value) in contacts | rosterFilter:query">{{value.name}} <small>({{key}})</small></li>
    </ul>
  </div>
  <script src="lib/angular/angular.js"></script>
  <script src="lib/jquery-1.7.2.min.js"></script>
  <script src="lib/config.js"></script>
  <script src="js/alias.js"></script>
  <script src="lib/strophe.js"></script>
  <script src="js/services.js"></script>
  <script src="js/controllers.js"></script>
  <script src="js/filters.js"></script>
  <script src="js/directives.js"></script>
</body>
</html>