88506f30e1dd54ac7e6acce7a134b9f0e33ad5fc
[gigi.git] / src / club / wpia / gigi / pages / MainPage.templ
1 <h3><?=_Welcome back, ${username}!?></h3>
2 <h4><?=_Subscriber information?></h4>
3
4 <? if($certlogininfo) { ?>
5   <? if($certlogin) { ?>
6     <div class="card card-body bg-light">
7       <p><?=_You are authenticated via certificate, so you will be able to perform all actions.?></p>
8     </div>
9   <? } else { ?>
10     <div class="alert alert-warning" role="alert">
11       <p><?=_For some actions, e.g. add verification, support, you need to be authenticated via certificate.?></p>
12     </div>
13   <? } ?>
14 <? } ?>
15
16 <div class="card card-body bg-light">
17 <? if($ra-agent) { ?><p><?=_You are an RA Agent.?></p><? } ?>
18 <p><?=_Assigned support permissions?>: <?=$support-groups?></p>
19 <p><?=_Assigned user-managed permissions?>: <?=$groups?> (<?=_!'<a href="/account/details">'more!'</a>'?>)</p>
20 <p><?=_${vp} Verification Points and ${xp} Experience Points.?> (<?=_!'<a href="/wot/points">'more!'</a>'?>)</p>
21 </div>
22
23 <h4><?=_Certificate Information?></h4>
24 <div class="card card-body bg-light">
25 <p><?=_${c-no} certificate(s) are issued for your account.?> (<?=_!'<a href="/account/certs">'more!'</a>'?>)</p>
26 </div>
27
28 <h4><?=_Subscribed domains and email addresses?></h4>
29 <div class="card">
30 <div class="card-heading bg-light">
31 <?=_Your account lists the following email addresses?> (<?=_!'<a href="/account/mails">'more!'</a>'?>):
32 </div>
33 <table class="table">
34   <thead>
35   <tr>
36     <th><?=_Address?></th>
37     <th><?=_Status?></th>
38     <th><?=_Last successful verification?></th>
39   </tr>
40   </thead>
41   <tbody>
42   <? foreach($emails) {?>
43         <tr>
44                 <td><?=$address?></td>
45                 <td><?=$verification?></td>
46                 <td><? if($last_verification) { ?><?=$last_verification?><? } else { ?><?=_N/A?><? } ?></td>
47         </tr>
48  <? } ?>
49   </tbody>
50 </table>
51 </div>
52
53 <div class="card">
54 <div class="card-heading bg-light">
55 <?=_Your account lists the following domains?> (<?=_!'<a href="/account/domains">'more!'</a>'?>):
56 </div>
57 <? if($nodomains) { ?>
58 <div class="card-body">
59 <?=_Currently no domains are registered for your account.?>
60 </div>
61 <? } else { ?>
62 <table class="table">
63   <thead>
64   <tr>
65     <th><?=_Domain?></th>
66     <th><?=_Status?></th>
67   </tr>
68   </thead>
69   <tbody>
70   <? foreach($domains) { ?>
71   <tr>
72     <td><?=$domain?></td>
73     <td><?=$status?></td>
74   </tr>
75   <? } ?>
76 </tbody></table>
77 <? } ?>
78 </div>
79
80 <? if($hasorgs) { ?>
81 <h4><?=_Organisations?></h4>
82 <div class="card card-body bg-light">
83  <p><?=_You are listed as administrator for these organisations?>:</p>
84  <ul>
85  <? foreach($orgas) { ?>
86   <li><?=$orgName?></li>
87  <? } ?>
88  </ul>
89  <p><?=_!'<a href="/account/details">'change to organisation administrator context!'</a>'?></p>
90 </div>
91 <? } ?>
92