|
9 | 9 | <link rel="stylesheet" href="styles/styles.css"/> |
10 | 10 | </head> |
11 | 11 | <body ng-app="angularFromScratch" ng-controller="PrincipalCtrl as principal"> |
12 | | - <div class="container"> |
| 12 | + <div class="container container-principal"> |
13 | 13 | <div class="row"> |
14 | 14 | <div class="col-xs-12"> |
15 | | - <h1>{{principal.tituloApp}}</h1> |
16 | | - </div> |
17 | | - </div> |
18 | | - <div class="row"> |
19 | | - <div ng-controller="ContactosCtrl as contactos" class="container contactos-container"> |
20 | | - <div class="row"> |
21 | | - <div class="col-xs-12"> |
22 | | - <h2>Lista Contactos</h2> |
| 15 | + <div class="navbar navbar-default"> |
| 16 | + <div class="navbar-header"> |
| 17 | + <a class="navbar-brand" href="#">{{globales.tituloApp}}</a> |
23 | 18 | </div> |
24 | | - </div> |
25 | | - <div class="row" ng-show="!contactos.isPerfilActivo()"> |
26 | | - <div class="col-xs-12"> |
27 | | - <input type="text" ng-model="busqueda" class="form-control" placeholder="Filtrar resultados" ng-change="contactos.mostrarPerfil(-1)"> |
28 | | - </div> |
29 | | - </div> |
30 | | - <table class="table table-hover table-striped table-clickable" ng-show="!contactos.isPerfilActivo(-1)"> |
31 | | - <thead> |
32 | | - <tr class="row"> |
33 | | - <th class="col-xs-3">Icono</th> |
34 | | - <th class="col-xs-3">Nombre</th> |
35 | | - <th class="col-xs-3">Apellido</th> |
36 | | - <th class="col-xs-3">Contacto</th> |
37 | | - </tr> |
38 | | - </thead> |
39 | | - <tbody> |
40 | | - <tr ng-repeat="contacto in contactos.contactosArray | filter:busqueda" class="row" ng-click="contactos.mostrarPerfil($index)"> |
41 | | - <td class="col-xs-3" ng-bind-html="contacto.icon"></td> |
42 | | - <td class="col-xs-3">{{contacto.nombre}}</td> |
43 | | - <td class="col-xs-3">{{contacto.apellido}}</td> |
44 | | - <td class="col-xs-3"><a target="_blank" ng-href="https://twitter.com/{{contacto.contacto}}">{{contacto.contacto}}</a></td> |
45 | | - </tr> |
46 | | - </tbody> |
47 | | - </table> |
48 | | - <div class="container" ng-controller="PerfilCtrl as perfil" ng-show="contactos.isPerfilActivo()"> |
49 | | - <div class="row"> |
50 | | - <div class="col-xs-8"> |
51 | | - <h3>Perfil de {{contactos.contactosArray[contactos.perfilActivo].nombre}}</h3> |
52 | | - <span class="img-thumbnail perfil-thumb text-center" ng-bind-html="contactos.contactosArray[contactos.perfilActivo].icon"></span> |
53 | | - </div> |
54 | | - <div class="col-xs-4 text-right"> |
55 | | - <h3 ng-click="contactos.mostrarPerfil(-1)" class="btn btn-default"> |
56 | | - <span class="glyphicon glyphicon-chevron-left"></span> |
57 | | - <span>volver</span> |
58 | | - </h3> |
59 | | - </div> |
| 19 | + <div class="navbar-collapse collapse"> |
| 20 | + <ul class="nav navbar-nav"> |
| 21 | + <li ng-class="{'active':globales.seccionActual=='Contactos'}"><a href="#contactos">Contactos</a></li> |
| 22 | + <li ng-class="{'active':globales.seccionActual=='Acerca de'}"><a href="#acercade">Acerca de</a></li> |
| 23 | + </ul> |
60 | 24 | </div> |
61 | 25 | </div> |
62 | 26 | </div> |
63 | 27 | </div> |
| 28 | + <div class="row"> |
| 29 | + <div class="col-xs-12"> |
| 30 | + <h2>{{globales.seccionActual}}</h2> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + <div class="row"> |
| 34 | + <div ng-view class="container contactos-container"></div> |
| 35 | + </div> |
64 | 36 | <div class="row"> |
65 | 37 |
|
66 | 38 | </div> |
67 | 39 | </div> |
68 | 40 | <script src="bower_components/fastclick/lib/fastclick.js"></script> |
69 | 41 | <script src="bower_components/angular/angular.min.js"></script> |
| 42 | + <script src="bower_components/angular-route/angular-route.js"></script> |
70 | 43 | <script src="bower_components/angular-sanitize/angular-sanitize.js"></script> |
71 | 44 | <script src="scripts/app.js"></script> |
72 | 45 | <script src="scripts/controladores.js"></script> |
|
0 commit comments