-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
126 lines (109 loc) · 5.77 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
<div samba-access>
<!-- <button style="margin-top:20px;" class="btn btn-primary pull-right" ng:click="showWebappQR()">-->
<!-- <i class="fas fa-qrcode"></i>-->
<!-- <span translate>Webapp QR code</span>-->
<!-- </button>-->
<h2 translate>Welcome to Linuxmuster.net version 7! </h2>
<br>
<progress-spinner ng:show="user == null"></progress-spinner>
<div ng:show="user != null">
<div style="margin-left: 10px;">
<h4 translate>Hello {{user.givenName}} {{user.sn}},</h4>
<div ng:show="user.sophomorixRole == 'teacher'">
<span translate>use the sidebar to navigate through the options. You can start by using the Enroll module to subscribe to your classes.</span>
</div>
<div ng:show="user.sophomorixRole == 'globaladministrator' || user.sophomorixRole == 'schooladministrator'">
<span translate>Use the sidebar to navigate through the options.</span><br/>
<span translate> But keep in mind:</span><br>
<b><span translate>With great power comes great responsibility!</span></b>
</div>
</div>
<div style="margin-top:10px;" class="flex-container info-cards width400">
<div class="panel panel-info">
<div class="panel-heading">
<h4 translate>Account Information</h4>
</div>
<div class="panel-body">
<span translate>Name: </span><b>{{user.givenName}} {{user.sn}}</b><br />
<span translate>Mail: </span><b>{{user.mail}}</b><br />
<span translate>School: </span><b>{{user.sophomorixSchoolname}}</b><br />
<span translate>Role: </span><b>{{user.sophomorixAdminClass}}</b><br />
<button style="margin-top:20px;" class="btn btn-primary pull-right" ng:click="changePassword()">
<span translate>Change password</span>
</button>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h4 translate>Quotas</h4>
</div>
<div class="panel-body">
<div ng:repeat="quota in quotas" style="margin-bottom: 15px;">
<div class="widget-header">{{quota.share}}</div>
<smart-progress type="{{quota.type}}" value="quota.usage" max="100"></smart-progress>
<div class="widget-value">
{{quota.used}} MiB / {{quota.total}}
<sup ng:show="quota.usage > 80">
<span class="label label-danger">
<i class="fa fa-warning"></i>
</span>
</sup>
</div>
</div>
<b translate>Cloudquota Calculated in MB:</b> {{user['sophomorixCloudQuotaCalculated']}}<br />
<b translate>Mailquota Calculated in MB:</b> {{user['sophomorixMailQuotaCalculated']}} MB
</div>
</div>
<div class="panel panel-info" ng:show="custom_fields.length > 0">
<div class="panel-heading">
<h4 translate>My informations</h4>
</div>
<div class="panel-body">
<ul class="list-unstyled" style="column-width:300px;padding:0;">
<li style="margin: 0 15px 5px 0px;" ng:repeat="custom in custom_fields | orderBy:['title'] " class="cardlist">
{{custom.title}}
<span style="position:absolute;right:10px;" ng:show="!isListAttr(custom.attr)">
{{custom.value}}
</span>
<div ng:show="isListAttr(custom.attr)" style="position:absolute;right:10px;">
<span ng:repeat="value in custom.value track by $index">
{{value}}
</span>
</div>
</li>
</ul>
<button style="margin-top:20px;" class="btn btn-primary pull-right" ng:click="changeCustomFields()" ng:show="user.sophomorixRole != 'student'">
<span translate>Change my data</span>
</button>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h4 translate>Mobile access</h4>
</div>
<div class="panel-body">
<p translate>
You can access the school server from many mobile devices.
Select your operating system to see how it works.
</p>
<a ng:click="showWebappQR()">
<i class="fab fa-apple fa-3x"></i>
</a>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h4 translate>Groups</h4>
</div>
<div class="panel-body">
<ul class="list-unstyled" style="column-width:300px;padding:0;">
<li style="margin: 0 15px 5px 0px;" ng:repeat="group in groups | orderBy:['category','cn'] " class="cardlist">
{{group.cn}}
<span style="position:absolute;right:10px;">{{group.category}}</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>