forked from brasfort/portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1345 lines (1332 loc) · 73.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<meta charset="utf-8" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html"
xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
<html>
<head>
<title>Apigee App Services Admin Portal </title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<link rel="stylesheet" type="text/css" href="css/usergrid.css"/>
<script src="config.js" type="text/javascript"></script>
<script src="js/app/usergrid.appSDK.js" type="text/javascript"></script>
<script src="js/app/session.js" type="text/javascript"></script>
<script src="js/app/quickLogin.js" type="text/javascript"></script>
<script src="js/app/params.js" type="text/javascript"></script>
<script src="js/app/sso.js" type="text/javascript"></script>
<script type="text/javascript">
/*
Quick Login: script loads the minimal amount of resources to be able to detect if the user is logged in
and if not, send him directly to the SSO page
*/
Usergrid.Params.parseParams();
Usergrid.SSO.setUseSSO(Usergrid.Params.queryParams.use_sso);
Usergrid.QuickLogin.init(Usergrid.Params.queryParams,Usergrid.userSession.loggedIn(),
Usergrid.SSO.usingSSO());
</script>
<script src="js/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/lib/underscore-min.js" type="text/javascript"></script>
<script src="js/lib/backbone.js" type="text/javascript"></script>
<script src="js/lib/jquery-ui-1.8.18.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.jsonp-2.3.1.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.dataset.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.tmpl.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.dform-0.1.3.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.ui.timepicker.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.ui.statusbar.min.js" type="text/javascript"></script>
<script src="js/lib/date.min.js" type="text/javascript"></script>
<script src="js/app/helpers.js" type="text/javascript"></script>
<script src="js/app/navigation.js" type="text/javascript"></script>
<script src="js/app/console.js" type="text/javascript"></script>
<script src="js/app/ui/ui.js" type="text/javascript"></script>
</head>
<body>
<div id="fullContainer">
<div data-dropdown="dropdown" class="navbar navbar-fixed-top">
<div class="header-menus">
<div id="publicMenu" class="navbar-inner">
<div class="left-header">
<h1 class="apigee"><a href="https://apigee.com" target="_blank"><img src="images/logo-white.png">apigee</a></h1>
<b class="caret"></b>
<h2 id="ActualPage1">Admin Portal</h2>
</div>
<div class="right-header">
<ul id="loginMenu" class="nav secondary-nav">
<li><a id="login-link" ><i class="icon-user"></i> Login</a></li>
<li><a id="signup-link" > Sign Up</a></li>
<li><a id="forgot-password-link" ><i class="icon-lock"></i> Forgot Password</a></li>
</ul>
</div>
</div>
<div id="privateMenu" class="navbar-inner">
<div class="left-header">
<h1 class="apigee"><a href="https://apigee.com" target="_blank"><img class="logo" src="images/logo-white.png">apigee</a></h1>
<b class="caret"></b>
<ul class="nav">
<li class="portal-name" ><a class="go-home">Admin Portal</a></li>
<li id="help-menu" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >Help <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="http://support.apigee.com/apigee" target="_blank"> Support</a></li>
<li><a href="http://apigee.com/docs/app_services" target="_blank"> Docs</a></li>
<li><a href="https://groups.google.com/forum/?fromgroups#!forum/usergrid" target="_blank"> Google Group</a></li>
<li><a href="http://apigee.com/docs/usergrid/codesamples" target="_blank">Examples & SDKs</a></li>
<li><a href="http://apigee.com/about/products/usergrid" target="_blank"> About</a></li>
</ul>
</li>
</ul>
</div>
<div class="right-header">
<ul id="profileMenu" class="nav secondary-nav">
<li id="switchTo-menu" class="dropdown">
<a id="switchTo-link" class="dropdown-toggle" data-toggle="dropdown" ><span>Switch to...
</span> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="http://mobileanalytics.apigee.com/pages/signin.seam " target="_blank"> Mobile Analytics</a></li>
<li><a href="http://apigee.com/console/others" target="_blank"> API Consoles</a></li>
</ul>
</li>
<li id="organizations-menu" class="dropdown">
<a id="console-link" class="dropdown-toggle" data-toggle="dropdown"><span>Organizations</span> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a >loading...</a></li>
</ul>
</li>
<li class="dropdown">
<a id="account-link1" class="dropdown-toggle" data-toggle="dropdown" ><span id="userEmail">test</span> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a id="account-link" ><i class="icon-user"></i> Profile</a></li>
<li><a id="logout-link" ><i class="icon-off"></i> Sign Out</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="api-activity" class="alert">Loading...</div>
</div>
</div>
<div id="pages">
<div id="banner" class="container-fluid">
<div>
<div id="banner-area" class="well thingy" style="padding: 5px; width: 90%; margin: auto;">
Welcome to Apigee App Services. Find more on how to <a style="color: #007CDC;"
href="http://apigee.com/docs/usergrid/content/quick-start">get started</a>
or <a style="color: #007CDC;" href="mailto:[email protected]">contact us</a> if you need help!
<a style="float: right; color: #007CDC;" id="hideBanner">Dismiss</a>
</div>
<div> </div>
</div>
</div>
<div id="message-page" class="container-fluid">
<div id="message-area" class="alert alert-info curl-data" style="padding: 20px;">
Whoops! We encounterd an error connecting to the API. Press refresh to try loading the Admin Portal again.
<button id="reload-button" class="btn btn-primary" style="float: right; margin: -4px 30px;" onClick="window.location.reload()">Refresh</button>
</div>
</div>
<div id="login-page" class="container-fluid">
<div class="row">
<div id="login-area" class="span6 offset1">
<div id="login-message" class="alert alert-error">
<strong>ERROR</strong>: Your details were incorrect.<br/>
</div>
<div class="console-section">
<div class="well thingy"><span class="title">Login</span></div>
<form name="login-form" id="login-form" class="form-horizontal" style="width: 100%">
<div class="control-group">
<label class="control-label" for="login-email">Email:</label>
<div class="controls">
<input type="text" name="login-email" id="login-email" class="" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="login-password">Password:</label>
<div class="controls">
<input type="password" name="login-password" id="login-password" class="" value="" size="20"/>
</div>
</div>
<div class="control-group">
<div class="controls">
<input type="checkbox" value="true" id="remember" name="remember"/>
<span>Remember me</span>
</div>
</div>
<div class="form-actions">
<div class="submit">
<input type="submit" name="button-login" id="button-login" value="Log In" class="btn btn-usergrid"/>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="post-signup-page" class="container-fluid">
<div class="row">
<div id="login-area" class="span6 offset1">
<div class="console-section well thingy">
<span class="title">We're holding a seat for you!</span>
<br /><br />
<p>Thanks for signing up for a spot on our private beta. We will send you an email as soon as we're ready for you!</p>
<p>In the mean time, you can stay up to date with App Services on our <a href="https://groups.google.com/forum/?fromgroups#!forum/usergrid">Google Group</a>.</p>
</div>
</div>
</div>
</div>
<div id="signup-page" class="container-fluid">
<div class="row">
<div id="signup-area" class="span6 offset1">
<div id="signup-message" class="alert alert-error"></div>
<div class="console-section">
<div class="well thingy"><span class="title">Register</span> </div>
<form name="signup-form" id="signup-form" onsubmit="return false;" class="form-horizontal">
<div class="control-group">
<label class="control-label" for="signup-organization-name">Organization Account</label>
<div class="controls">
<input type="text" name="signup-organization-name" id="signup-organization-name" class="" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="signup-username">Username</label>
<div class="controls">
<input type="text" name="signup-username" id="signup-username" class="" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="signup-name">Name </label>
<div class="controls">
<input type="text" name="signup-name" id="signup-name" class="" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="signup-email">Email </label>
<div class="controls">
<input type="text" name="signup-email" id="signup-email" class="" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="signup-password">Password </label>
<div class="controls">
<input type="password" name="signup-password" id="signup-password" class="" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="signup-password-confirm">Confirm </label>
<div class="controls">
<input type="password" name="signup-password-confirm" id="signup-password-confirm" class="" value="" size="20"/>
</div>
</div>
<div class="form-actions">
<div class="submit">
<input type="button" name="button-signup" id="button-signup" value="Sign up" class="btn btn-usergrid"/>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="forgot-password-page" class="container">
<iframe class="container"></iframe>
</div>
<div id="console-page" class="">
<div>
<div id="sidebar-menu">
<ul id="application-panel-buttons" class="nav nav-list" style="margin-bottom: 5px;">
<h4 class="panel-title">
ORGANIZATION
</h4>
<li><a class="go-home">
<i class="icon-home"></i>
<div id="organization-name">Home</div>
</a></li>
<br>
<h4 class="panel-title">
APPLICATION
</h4>
<li>
<div class="btn-group">
<a id="current-app-name" class="btn dropdown-toggle" data-toggle="dropdown" style="width: 109px; text-align: left;">
App Name
</a>
<ul class="dropdown-menu" id="applications-menu">
<li><a >loading apps...</a></li>
</ul>
</div>
</li>
<li id="application-panel-button-dashboard"><a href="#dashboard"><i class="icon-th"></i> Dashboard</a></li>
<li><a href="#users"><i class="icon-user"></i> Users</a></li>
<li><a href="#groups"><i class="icon-user"></i> Groups</a></li>
<li><a href="#roles" id="application-panel-button-roles"><i class="icon-user"></i> Roles</a></li>
<li><a href="#activities"><i class="icon-calendar"></i> Activities</a></li>
<li><a href="#collections" id="application-panel-button-collections"><i class="icon-book"></i> Collections</a></li>
<li><a href="#analytics"><i class="icon-signal"></i> Analytics</a></li>
<li><a href="#properties"><i class="wrench "></i>Properties</a></li>
<li><a href="#shell"><i class="icon-warning-sign"></i> Shell</a></li>
<li><a href="#console"><i class="icon-list-alt"></i> Console</a></li>
<li><a href="http://apigee.com/docs/usergrid" target="_blank"><i class="icon-question-sign"></i> Help</a></li>
</ul>
</div>
<div id="console-panels" class="container-fluid">
<div id="organization-panel" style="display: none">
<div id="console-panel-nav-bar"></div>
<div id="home-messages" class="alert" style="display: none;"></div>
<div class="console-section">
<div class="well thingy"><span class="title"> Current Organization </span></div>
<table id="organizations-table" class="hideable table">
<tbody></tbody>
</table>
</div>
<div class="console-section">
<div class="well thingy"><span class="title"> Applications </span>
<div class="bar">
<a class="" data-toggle="modal" href="#dialog-form-new-application"> New Application</a>
</div>
</div>
<table id="organization-applications-table" class="hideable table">
<tbody></tbody>
</table>
</div>
<div class="console-section">
<div class="well thingy">
<span class="title"> Activities </span>
</div>
<table id="organization-feed-table" class="hideable table">
<tbody></tbody>
</table>
</div>
<div class="console-section">
<div class="well thingy"><span class="title"> Organization's Administrators </span>
<div class="bar">
<a class="" data-toggle="modal" href="#dialog-form-new-admin"> New Administrator</a>
</div>
</div>
<table id="organization-admins-table" class="hideable table">
<tbody></tbody>
</table>
</div>
<div class="console-section">
<div class="well thingy"><span class="title"> Organization API Credentials </span>
<div class="bar">
<a onclick="Usergrid.console.newOrganizationCredentials(); return false;"> Regenerate Credentials</a>
</div>
</div>
<table class="hideable table">
<tbody>
<tr>
<td>
<span class="span2">Client ID</span>
</td>
<td>
<span id="organization-panel-key">...</span>
</td>
</tr>
<tr>
<td>
<span class="span2">Client Secret</span>
</td>
<td>
<span id="organization-panel-secret">...</span>
</td>
</tr>
</tbody>
</table>
</div>
<form id="dialog-form-force-new-application" class="modal hide fade" action="#">
<div class="modal-header">
<h4>No applications for this organization</h4>
</div>
<div class="modal-body">
<p class="validateTips">All organizations require at least one application. Please create one.</p>
<fieldset>
<div class="control-group">
<label for="new-application-name">Name</label>
<div class="controls">
<input type="text" name="name" id="" value="" class="input-xlarge new-application-name"/>
<p class="help-block">Length of name must be between 4 and 80</p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Create"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
<form id="dialog-form-new-admin" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Create new administrator</h4>
</div>
<div class="modal-body">
<fieldset>
<div class="control-group">
<label for="new-admin-email">Email</label>
<div class="controls">
<input type="text" name="email" id="new-admin-email" value="" class="input-xlarge"/>
<input type="hidden" name="password" id="new-admin-password" value=""/>
<input type="hidden" name="" id="new-admin-password-confirm" value=""/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Create"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
</div>
<div id="console-panel" class="container">
<iframe class="container" src="loading.html" scrolling="no"></iframe>
</div>
<div id="dashboard-panel" style="display: none">
<div class="console-section">
<div class="well thingy">
<span class="title"> Application Dashboard: <span class="app_title"></span> </span>
</div>
<div class="console-section-contents">
<div id="application-panel-table" class="row">
<div id="application-panel-entity-graph" class="span graph"></div>
<div id="application-panel-text" class="span">...</div>
</div>
<div class="row">
<div id="application-entities-timeline" class="span graph"></div>
<div id="application-cpu-time" class="span graph"></div>
</div>
<div class="row">
<div id="application-data-uploaded" class="span graph"></div>
<div id="application-data-downloaded" class="span graph"></div>
</div>
</div>
</div>
</div>
<div id="account-panel" class="container-fluid hide">
<div id="account-update-modal" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Account Settings</h4>
</div>
<div class="modal-body">
<p>Account settings updated.</p>
</div>
<div class="modal-footer">
<button class="btn btn-usergrid" data-dismiss="modal">OK</button>
</div>
</div>
<div class="span offset1">
<h2>Account Settings </h2>
<div id="account-panels">
<div class="panel-content">
<div class="console-section">
<div class="well thingy"><span class="title"> Personal Account </span> </div>
<div class="console-section-contents">
<form name="update-account-form" id="update-account-form" class="form-horizontal">
<fieldset>
<div class="control-group">
<label id="update-account-id-label" class="control-label" for="update-account-id">UUID</label>
<div class="controls">
<span id="update-account-id" class="monospace"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="update-account-username">Username </label>
<div class="controls">
<input type="text" name="update-account-username" id="update-account-username" class="span4" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="update-account-name">Name </label>
<div class="controls">
<input type="text" name="update-account-name" id="update-account-name" class="span4" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="update-account-email"> Email</label>
<div class="controls">
<input type="text" name="update-account-email" id="update-account-email" class="span4" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="update-account-picture-img">Picture <br />(from <a href="http://gravatar.com">gravatar.com</a>) </label>
<div class="controls">
<img id="update-account-picture-img" src="" class="" width="50" />
</div>
</div>
<span class="help-block">Leave blank any of the following to keep the current password unchanged</span>
<br />
<div class="control-group">
<label class="control-label" for="old-account-password">Old Password</label>
<div class="controls">
<input type="password" name="old-account-password" id="old-account-password" class="span4" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="update-account-password">New Password</label>
<div class="controls">
<input type="password" name="update-account-password" id="update-account-password" class="span4" value="" size="20"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="update-account-password-repeat">Confirm New Password</label>
<div class="controls">
<input type="password" name="update-account-password-repeat" id="update-account-password-repeat" class="span4" value="" size="20"/>
</div>
</div>
</fieldset>
<div class="form-actions">
<input type="button" name="button-update-account" id="button-update-account" value="Update" class="btn btn-usergrid span"/>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="panel-content">
<div class="console-section">
<div class="well thingy"><span class="title"> Organizations </span>
<div class="bar">
<a class="" data-toggle="modal" href="#dialog-form-new-organization"> Add </a>
</div>
</div>
<table class="table" id="organizations">
</table>
</div>
</div>
<form id="dialog-form-new-organization" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Create new organization</h4>
</div>
<div class="modal-body">
<p class="validateTips">All form fields are required.</p>
<fieldset>
<div class="control-group">
<label for="new-organization-name">Name</label>
<div class="controls">
<input type="text" name="organization" id="new-organization-name" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Create"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
</div>
</div>
<div id="users-panel" style="display: none">
<ul id="users-panel-tab-bar" class="nav nav-tabs">
<li class="active"><a id="button-users-list" >List</a></li>
</ul>
<div id="users-panel-list" class="panel-content">
<div id="users-messages" class="alert" style="display: none;"></div>
<div class="console-section">
<div class="well thingy"><span class="title"> Users: <span class="app_title"></span></span>
<div class="bar">
<input onkeyup="Usergrid.console.searchUsers();" type="text" name="search-user-username" id="search-user-username" class="input-small search" placeholder="Search"/>
<select id="search-user-type" onChange="Usergrid.console.searchUsers();" class="input-medium search">
<option value="username">Username</option>
<option value="name">Full Name</option>
</select>
<a id="selectAllUsers" class="" onclick="Usergrid.console.selectAllUsers();"> Select All </a>
<a id="deselectAllUsers" style="display: none;" class="" onclick="Usergrid.console.deselectAllUsers();"> Deselect All </a>
<a class="" data-toggle="modal" href="#dialog-form-new-user"> Add</a>
<a id="delete-users-link" > Delete</a>
</div>
</div>
<table id="users-table" class="table">
<tbody></tbody>
</table>
<ul id="users-pagination" class="pager">
<li id="users-previous" class="previous"><a >← Previous</a></li>
<li id="users-next" class="next"><a >Next →</a></li>
</ul>
</div>
<div id="users-curl-container" class="row-fluid curl-container ">
</div>
</div>
<form id="dialog-form-new-user" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Create new user</h4>
</div>
<div class="modal-body">
<p class="validateTips">Username is required.</p>
<fieldset>
<div class="control-group">
<label for="new-user-username">Username</label>
<div class="controls">
<input type="text" name="username" id="new-user-username" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
<div class="control-group">
<label for="new-user-fullname">Full name</label>
<div class="controls">
<input type="text" name="name" id="new-user-fullname" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
<div class="control-group">
<label for="new-user-email">Email</label>
<div class="controls">
<input type="text" name="email" id="new-user-email" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
<div class="control-group">
<label for="new-user-password">Password</label>
<div class="controls">
<input type="password" name="password" id="new-user-password" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
<div class="control-group">
<label for="new-user-validate-password">Confirm password</label>
<div class="controls">
<input type="password" name="validate-password" id="new-user-validate-password" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Create"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
</div>
<div id="user-panel" style="display: none">
<ul id="user-panel-tab-bar" class="nav nav-tabs">
<li><a id="button-user-list" >List</a></li>
<li><a id="button-user-profile" >Profile</a></li>
<li><a id="button-user-memberships" >Groups</a></li>
<li><a id="button-user-activities" >Activities</a></li>
<li><a id="button-user-graph" >Graph</a></li>
<li><a id="button-user-permissions" >Roles & Permissions</a></li>
</ul>
<div id="user-panel-profile" class="panel-content"></div>
<div id="user-panel-memberships" class="panel-content" style="display: none;"></div>
<div id="user-panel-activities" class="panel-content" style="display: none;"></div>
<div id="user-panel-graph" class="panel-content" style="display: none;"></div>
<div id="user-panel-permissions" class="panel-content" style="display: none;"></div>
<form id="dialog-form-add-user-to-role" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Add this user to a Role</h4>
</div>
<div class="modal-body">
<p class="validateTips">Search for the role you want to add to this user.</p>
<fieldset>
<div class="control-group">
<label for="search-role-name-input">Role</label>
<div class="controls">
<input type="text" name="search-role-name-input" id="search-role-name-input" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Add"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
<form id="dialog-form-add-group-to-user" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Add this user to a Group</h4>
</div>
<div class="modal-body">
<p class="validateTips">Search for the group you want to add this user to.</p>
<fieldset>
<div class="control-group">
<label for="search-group-name-input">Group</label>
<div class="controls">
<input type="text" name="search-group-name-input" id="search-group-name-input" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Create"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
<form id="dialog-form-follow-user" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Follow this User</h4>
</div>
<div class="modal-body">
<p class="validateTips">Search for the user you want to Follow.</p>
<fieldset>
<div class="control-group">
<label for="search-follow-username-input">User</label>
<div class="controls">
<input type="text" name="search-follow-username-input" id="search-follow-username-input"
class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Follow"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
</div>
<div id="groups-panel" style="display: none">
<div id="groups-panel-tab-bar" class="">
<ul class="nav nav-tabs">
<li class="active"><a id="button-groups-list" >List</a></li>
</ul>
</div>
<div id="groups-panel-list" class="panel-content">
<div id="groups-messages" class="alert" style="display: none;"></div>
<div class="console-section">
<div class="well thingy"><span class="title"> Groups: <span class="app_title"></span> </span>
<div class="bar">
<input onkeyup="Usergrid.console.searchGroups();" type="text" name="search-user-groupname" id="search-user-groupname" class="input-small search" placeholder="Search"/>
<select id="search-group-type" onChange="Usergrid.console.searchGroups();" class="input-medium search">
<option value="path">Path</option>
<option value="title">Group Name</option>
</select>
<a id="selectAllGroups" class="" onclick="Usergrid.console.selectAllGroups();"> Select All </a>
<a id="deselectAllGroups" style="display: none;" class="" onclick="Usergrid.console.deselectAllGroups();"> Deselect All </a>
<a class="" data-toggle="modal" href="#dialog-form-new-group"> Add </a>
<a id="delete-groups-link" > Delete </a>
</div>
</div>
<table id="groups-table" class="table">
<tbody></tbody>
</table>
<ul id="groups-pagination" class="pager">
<li id="groups-previous" class="previous"><a >← Previous</a></li>
<li id="groups-next" class="next"><a >Next →</a></li>
</ul>
</div>
<div id="groups-curl-container" class="row-fluid curl-container ">
</div>
</div>
<form id="dialog-form-new-group" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Create new group</h4>
</div>
<div class="modal-body">
<p class="validateTips">All form fields are required.</p>
<fieldset>
<div class="control-group">
<label for="new-group-title">Display Name</label>
<div class="controls">
<input type="text" name="title" id="new-group-title" value="" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
<div class="control-group">
<label for="new-group-path">Group Path</label>
<div class="controls">
<input type="text" name="path" id="new-group-path" value="" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Create"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
</div>
<div id="group-panel" style="display: none">
<ul id="group-panel-tab-bar" class="nav nav-tabs">
<li><a id="button-group-list" >List</a></li>
<li><a id="button-group-details" >Details</a></li>
<li><a id="button-group-memberships" >Members</a></li>
<li><a id="button-group-activities" >Activities</a></li>
<li><a id="button-group-permissions" >Roles & Permissions</a></li>
</ul>
<div id="group-panel-details" class="panel-content"></div>
<div id="group-panel-memberships" class="panel-content" style="display: none;"></div>
<div id="group-panel-activities" class="panel-content" style="display: none;"></div>
<div id="group-panel-permissions" class="panel-content" style="display: none;"></div>
<form id="dialog-form-add-user-to-group" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Add a User to this Group</h4>
</div>
<div class="modal-body">
<p class="validateTips">Search for the user you want to add to this group.</p>
<fieldset>
<div class="control-group">
<label for="search-user-name-input">User</label>
<div class="controls">
<input type="text" name="search-user-name-input" id="search-user-name-input" class="input-xlarge" autocomplete="off"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Create"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
<form id="dialog-form-add-role-to-group" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Add a Role to this Group</h4>
</div>
<div class="modal-body">
<p class="validateTips">Search for the role you want to add to this group.</p>
<fieldset>
<div class="control-group">
<label for="search-groups-role-name-input">Role</label>
<div class="controls">
<input type="text" name="search-groups-role-name-input" id="search-groups-role-name-input" class="input-xlarge" autocomplete="off"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Add"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
</div>
<div id="roles-panel" style="display: none">
<ul id="roles-panel-tab-bar" class="nav nav-tabs">
<li class="active"><a id="button-roles-list" >List</a></li>
</ul>
<div id="roles-panel-list" class="panel-content">
<div id="roles-messages" class="alert" style="display: none;"></div>
<div class="console-section">
<div class="well thingy"><span class="title"> Roles: <span class="app_title"></span></span>
<div class="bar">
<a data-toggle="modal" href="#dialog-form-new-role"> Add </a>
<a id="delete-roles-link" > Delete </a>
</div>
</div>
<table id="roles-table" class="table">
<tbody></tbody>
</table>
<ul id="roles-pagination" class="pager">
<li id="roles-previous" class="previous"><a >← Previous</a></li>
<li id="roles-next" class="next"><a >Next →</a></li>
</ul>
</div>
<div id="roles-curl-container" class="row-fluid curl-container ">
</div>
</div>
<div id="roles-panel-search" class="panel-content" style="display: none;">
<div class="console-section">
<div class="well thingy"><span class="title"> Role Settings: <span class="app_title"></span></span></div>
<div class="console-section-contents">
<div id="roles-settings">
<h2>No Permissions.</h2>
</div>
</div>
</div>
</div>
<form id="dialog-form-new-role" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Create new Role</h4>
</div>
<div class="modal-body">
<p class="validateTips">All form fields are required.</p>
<fieldset>
<div class="control-group">
<label for="new-role-title">Display Name</label>
<div class="controls">
<input type="text" name="title" id="new-role-title" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
<div class="control-group">
<label for="new-role-name">Name</label>
<div class="controls">
<input type="text" name="name" id="new-role-name" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Create"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
</div>
<div id="role-panel" style="display: none">
<ul id="role-panel-tab-bar" class="nav nav-tabs">
<li class="active"><a id="button-role-list" >List</a></li>
<li><a id="button-role-settings" >Settings</a></li>
<li><a id="button-role-users" >Users</a></li>
<li><a id="button-role-groups" >Groups</a></li>
</ul>
<div id="role-panel-settings" class="panel-content">
<div class="console-section">
<div class="well thingy"> <span id="role-section-title" class="title">Role</span> </div>
<div class="console-section-contents">
<div id="role-permissions-messages" class="alert" style="display: none"></div>
<div id="role-permissions">
<h2>...</h2>
</div>
</div>
</div>
<div id="role-permissions-curl-container" class="curl-container">
</div>
</div>
<div id="role-panel-users" class="panel-content">
<div class="console-section" id="role-users"></div>
<div id="role-users-curl-container" class="curl-container">
</div>
</div>
<div id="role-panel-groups" class="panel-content">
<div class="console-section">
<div class="well thingy">
<span class="title">Groups</span>
<div class="bar">
<a data-toggle="modal" href="#dialog-form-add-group-to-role"> Add </a>
<a id="remove-selected-role-groups" > Remove </a>
<a id="selectAllRoleGroups" class="" onclick="Usergrid.console.selectAllRoleGroups();"> Select All </a>
<a id="deselectAllRoleGroups" style="display: none;" class="" onclick="Usergrid.console.deselectAllRoleGroups();"> Deselect All </a>
</div>
</div>
<table id="role-groups" class="table">
<tbody></tbody>
</table>
</div>
<div id="role-groups-curl-container" class="curl-container">
</div>
</div>
<form id="dialog-form-add-group-to-role" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Add a Group to this Role</h4>
</div>
<div class="modal-body">
<p class="validateTips">Search for the group you want to add to this role.</p>
<fieldset>
<div class="control-group">
<label for="search-roles-group-name-input">Group</label>
<div class="controls">
<input type="text" name="search-roles-group-name-input" id="search-roles-group-name-input" class="input-xlarge" autocomplete="off"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Add"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
<form id="dialog-form-add-role-to-user" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h4>Add a user to this Role</h4>
</div>
<div class="modal-body">
<p class="validateTips">Search for the user you want to add to this role.</p>
<fieldset>
<div class="control-group">
<label for="search-roles-user-name-input">User</label>
<div class="controls">
<input type="text" name="search-roles-user-name-input" id="search-roles-user-name-input" class="input-xlarge"/>
<p class="help-block hide"></p>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-usergrid" value="Add"/>
<input type="reset" class="btn" value="Cancel" data-dismiss="modal"/>
</div>
</form>
</div>
<div id="activities-panel" style="display: none">
<div id="activities-panel-list" class="panel-content">
<div class="console-section">
<div class="well thingy"><span class="title"> Activities: <span class="app_title"></span></span>
<div class="bar">
<input onkeyup="Usergrid.console.searchActivities();" type="text" name="search-activities" id="search-activities" class="input-small search" placeholder="Search"/>
<select id="search-activities-type" onChange="Usergrid.console.searchActivities();" class="input-medium search">
<option value="content">Content</option>
<option value="actor">Actor</option>
</select>
<a class="" onclick="Usergrid.console.requestActivities(); return false;">Update Activities</a>
</div>
</div>
<table id="activities-table" class="table">
<tbody></tbody>
</table>
<ul id="activities-pagination" class="pager">
<li id="activities-previous" class="previous"><a >← Previous</a></li>
<li id="activities-next" class="next"><a >Next →</a></li>
</ul>
</div>
</div>
</div>
<div id="analytics-panel" style="display: none">
<div class="panel-content">
<div class="console-section">
<div class="well thingy"><span class="title"> Analytics: <span class="app_title"></span></span></div>
<div class="console-section-contents">
<div id="analytics-time">
<form id="resolutionSelectForm" action="" class="form-horizontal">
<div class="row">
<fieldset class="span">
<div id="analytics-start-time-span" class="control-group">
<label class="control-label" for="start-date">Start:</label>
<div class="controls">
<input type="text" id="start-date" class="fixSpan2"/>
<input type="text" id="start-time" value="12:00 AM" class="fixSpan2"/>
</div>
</div>
<div id="analytics-end-time-span" class="control-group">
<label class="control-label" for="end-date">End:</label>
<div class="controls">
<input type="text" id="end-date" class="fixSpan2"/>