mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-13 00:26:55 -05:00
Add base for invite creation/viewing page
This commit is contained in:
parent
57e2ee6854
commit
1d2987bf22
@ -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;
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user