1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-30 14:31:42 -05:00

Add base for invite creation/viewing page

This commit is contained in:
Jack Foltz 2018-01-14 10:27:37 -05:00
parent 57e2ee6854
commit 1d2987bf22
Signed by: foltik
GPG Key ID: 303F88F996E95541
2 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,6 @@
var angular = require('angular');
var uirouter = require('angular-ui-router');
var app = angular.module('shimapan-panel', ['ui.router', 'AuthSvc', 'ApiSvc', 'ApiCtrl', 'NavCtrl', 'PanelRoutes']);
var app = angular.module('shimapan-panel', ['ui.router', 'AuthSvc', 'ApiSvc', 'InviteSvc', 'ApiCtrl', 'InviteCtrl', 'NavCtrl', 'PanelRoutes']);
app.run(['$rootScope', '$state', '$stateParams', function($rootScope, $state, $stateParams) {
$rootScope.$state = $state;

View File

@ -0,0 +1,14 @@
<div class="inner" ng-controller="InviteController" ng-init="getInvites()">
<table class="invites">
<tr>
<th>Code</th>
<th>Scope</th>
<th>Expiry</th>
</tr>
<tr ng-repeat="invite in invites">
<td>{{invite.code}}</td>
<td>{{invite.scope}}</td>
<td>{{invite.expiry}}</td>
</tr>
</table>
</div>