client/app/index.html
author rougeronj
Tue, 09 Jun 2015 19:10:45 +0200
changeset 146 c6fa8ee3f562
parent 114 e4ffc4e13a8e
child 172 ffdfe491869c
permissions -rw-r--r--
refactor idArticle to id_article and idInventory to id_inventory remove "/" from resource path
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
     1
<!-- build:django -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
     2
<!-- endbuild -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
     3
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
<!doctype html>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
<html>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
<head>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
  <meta charset="utf-8">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
  <title>Ammico : Home</title>
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
     9
  
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    10
  <!-- build:css -->
88
2db951a4a04c updates dependencies and add main-bower-file to gulpfile to concatenate the vendorJs
rougeronj
parents: 86
diff changeset
    11
  <link rel="stylesheet" href="css/lib.css">
2db951a4a04c updates dependencies and add main-bower-file to gulpfile to concatenate the vendorJs
rougeronj
parents: 86
diff changeset
    12
  <link rel="stylesheet" href="css/app.css">
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    13
  <!-- endbuild -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    14
  
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
</head>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
<body ng-controller="homeCtrl" ng-app="ammico" ng-cloak>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
  <div class="navbar navbar-inverse" role="navigation">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
      <div class="container">
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 96
diff changeset
    19
        <div class="navbar-header row">
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
            <span class="sr-only">Toggle navigation</span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
          </button>
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 96
diff changeset
    26
          <a class="navbar-brand row" id="logo" href="#/">
96
3542155549e4 replace all the tab by spaces
rougeronj
parents: 93
diff changeset
    27
              <!-- build:imgLogo -->
3542155549e4 replace all the tab by spaces
rougeronj
parents: 93
diff changeset
    28
              <img src="img/ammico_logo_small.png">
3542155549e4 replace all the tab by spaces
rougeronj
parents: 93
diff changeset
    29
              <!-- endbuild -->
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    30
          </a>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
        <div class="collapse navbar-collapse">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
          <ul class="nav navbar-nav" ng-controller="routeClassCtrl">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
            <li ng-class="{active:isActive('/')}"><a href="#/">Home</a></li>
91
f7a844a9079e merge the changes of Camille
rougeronj
parents: 88
diff changeset
    35
            <li ng-class="{active:isActive('/my_visit')}"><a href="#/my_visit">Ma dernière Visite</a></li>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 88
diff changeset
    36
            <li ng-class="{active:isActive('/visites')}"><a href="#/visites">Mes Visites</a></li>
f7a844a9079e merge the changes of Camille
rougeronj
parents: 88
diff changeset
    37
            <li ng-class="{active:isActive('/books')}"><a href="#/books">Mes Books</a></li>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
          </ul>
13
08f34bbc70ee set up django rest framework
rougeronj
parents: 8
diff changeset
    39
          <ul class="nav navbar-nav navbar-right" ng-controller="routeClassCtrl">
57
388b29d38b44 add authentication and controle of authentication before routing
rougeronj
parents: 41
diff changeset
    40
            <li ng-hide="globals.userLogged" ng-class="{active:isActive('/login')}"><a href="#/auth/login">Login</a></li>
388b29d38b44 add authentication and controle of authentication before routing
rougeronj
parents: 41
diff changeset
    41
            <li ng-show="globals.userLogged"><a href="#/auth/logout">Logout</a></li>
13
08f34bbc70ee set up django rest framework
rougeronj
parents: 8
diff changeset
    42
          </ul>
1
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    43
          <form class="navbar-form navbar-right" role="search" ng-submit="searchSubmit()">
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 96
diff changeset
    44
            <div class="form-group has-feedback">
1
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    45
                <input class="form-control" type="text" ng-model="q" placeholder="Chercher" />
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 96
diff changeset
    46
                <span class="glyphicon glyphicon-search form-control-feedback" aria-hidden="true"></span>
1
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    47
            </div>
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    48
          </form>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
      </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
  </div>
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 96
diff changeset
    52
  <div class="container-fluid ammico-content">
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
      <div ng-view></div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
    <footer>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
      <div class="row">
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 96
diff changeset
    56
        <div class="footer-img col-sm-6">
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    57
            <a href="http://www.iri.centrepompidou.fr" target="_blank">
96
3542155549e4 replace all the tab by spaces
rougeronj
parents: 93
diff changeset
    58
                <!-- build:imgFooter -->
3542155549e4 replace all the tab by spaces
rougeronj
parents: 93
diff changeset
    59
                <img src="img/logo_IRI_footer.png" alt="Logo IRI" />
3542155549e4 replace all the tab by spaces
rougeronj
parents: 93
diff changeset
    60
                <!-- endbuild -->
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    61
            </a>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
        </div>
106
cb13a9009bf5 improve slideshow interface and add ngTouch to handle swipe on mobile
rougeronj
parents: 96
diff changeset
    63
        <div class="col-sm-6 text-right">
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
            ammico vBeta - ©2014
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
      </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
    </footer>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
  </div>
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    69
  
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    70
  <!-- build:js -->
88
2db951a4a04c updates dependencies and add main-bower-file to gulpfile to concatenate the vendorJs
rougeronj
parents: 86
diff changeset
    71
  <script type="text/javascript" src="js/lib.js"></script>
2db951a4a04c updates dependencies and add main-bower-file to gulpfile to concatenate the vendorJs
rougeronj
parents: 86
diff changeset
    72
  <script type="text/javascript" src="js/templates.js"></script>
2db951a4a04c updates dependencies and add main-bower-file to gulpfile to concatenate the vendorJs
rougeronj
parents: 86
diff changeset
    73
  <script type="text/javascript" src="js/app.js"></script>
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    74
  <!-- endbuild -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    75
  
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
  <script type="text/javascript">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
      angular.module("ammico")
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
          .value('context', {
114
e4ffc4e13a8e add a token field to the initialisation of the ammico app so the server can pass it and auto login with jwt
rougeronj
parents: 106
diff changeset
    79
              <!-- build:token -->
e4ffc4e13a8e add a token field to the initialisation of the ammico app so the server can pass it and auto login with jwt
rougeronj
parents: 106
diff changeset
    80
  			  <!-- endbuild -->
146
c6fa8ee3f562 refactor idArticle to id_article and idInventory to id_inventory
rougeronj
parents: 114
diff changeset
    81
  			  <!-- build:idExpo -->
c6fa8ee3f562 refactor idArticle to id_article and idInventory to id_inventory
rougeronj
parents: 114
diff changeset
    82
  			  idExpo: "1",
c6fa8ee3f562 refactor idArticle to id_article and idInventory to id_inventory
rougeronj
parents: 114
diff changeset
    83
			  <!-- endbuild -->
114
e4ffc4e13a8e add a token field to the initialisation of the ammico app so the server can pass it and auto login with jwt
rougeronj
parents: 106
diff changeset
    84
			  record: angular.fromJson('{"record": "record value"}'),
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
              urls: {
146
c6fa8ee3f562 refactor idArticle to id_article and idInventory to id_inventory
rougeronj
parents: 114
diff changeset
    86
                  <!-- build:ammicoUrl -->
c6fa8ee3f562 refactor idArticle to id_article and idInventory to id_inventory
rougeronj
parents: 114
diff changeset
    87
                  ammicoUrl: "http://127.0.0.1:8000/ammico/",
c6fa8ee3f562 refactor idArticle to id_article and idInventory to id_inventory
rougeronj
parents: 114
diff changeset
    88
                  <!-- endbuild -->
c6fa8ee3f562 refactor idArticle to id_article and idInventory to id_inventory
rougeronj
parents: 114
diff changeset
    89
                  <!-- build:searchUrl -->
1
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    90
                  searchUrl: "http://ammico.labs.exalead.com/search-api"
146
c6fa8ee3f562 refactor idArticle to id_article and idInventory to id_inventory
rougeronj
parents: 114
diff changeset
    91
                  <!-- endbuild -->
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
              }
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    93
          });
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    94
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    95
  </script>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    96
</body>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
</html>