Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Rizwan Haider | 8e5f477 | 2016-08-17 18:04:35 -0400 | [diff] [blame] | 19 | <div class="row" ng-show="vm.elines.length == 0"> |
| 20 | <div class="col-xs-10 col-xs-offset-1 text-center"> |
| 21 | <div class="jumbotron" style="margin-top: 100px"> |
| 22 | <div class="row"> |
| 23 | <div class="col-sm-4"> |
| 24 | <img ng-src="{{'/imgs/'+user.image+'.jpg'}}" class="img-responsive img-rounded"> |
| 25 | </div> |
| 26 | <div class="col-sm-8"> |
| 27 | <h1>Hello, {{currentUser.name}}</h1> |
| 28 | <p style="padding-top: 20px"> |
| 29 | Looks like you have not yet created any E-LINE! |
| 30 | </p> |
| 31 | <div style="margin-top: 60px"> |
| 32 | <a class="btn btn-success btn-lg" href="#/eline" role="button">Start now</a> |
| 33 | </div> |
| 34 | </div> |
| 35 | </div> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <div class="row" ng-show="vm.elines.length > 0"> |
| 40 | <div class="col-sm-6"> |
| 41 | <div class="panel panel-primary animate-vertical" ng-hide="vm.elines.length == 0"> |
| 42 | <div class="panel-heading"> |
| 43 | <h3 class="panel-title">E-LINES</h3> |
| 44 | </div> |
| 45 | <div class="panel-body"> |
| 46 | <elan-map elan="vm.elines"></elan-map> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | <div class="col-sm-6 eline-list"> |
| 51 | <div class="panel panel-primary table-container" ng-show="vm.elines.length > |
| 52 | 0"> |
| 53 | <!-- <pre>{{elans | json}}</pre> --> |
| 54 | <table class="table"> |
| 55 | <thead> |
| 56 | <tr> |
| 57 | <th>E-LINE</th> |
| 58 | <th>Unis</th> |
| 59 | </tr> |
| 60 | </thead> |
| 61 | <tbody> |
| 62 | <tr ng-repeat="eline in vm.elines | orderBy:'id'" ng-click="vm.selectEline(eline)"> |
| 63 | <td>{{eline.sid}}</td> |
| 64 | <td> |
| 65 | <span> - </span> |
| 66 | {{eline.uni1.location}} |
| 67 | {{eline.uni1.pid}} |
| 68 | </span> |
| 69 | <span> - </span> |
| 70 | {{eline.uni2.location}} |
| 71 | {{eline.uni2.pid}} |
| 72 | </span> |
| 73 | </td> |
| 74 | </tr> |
| 75 | </tbody> |
| 76 | </table> |
| 77 | </div> |
| 78 | <a class="btn btn-success btn-lg btn-block" href="#/eline" role="button">Create a new E-LINE!</a> |
| 79 | </div> |
| 80 | </div> |