]> WPIA git - gigi.git/blob - src/club/wpia/gigi/pages/MainPage.templ
52b805b55c555deafe729740baa2e323d5d240cf
[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 <? if($catsinfo) { ?>
16   <div class="alert alert-warning" role="alert">
17   <? if($catsra) { ?>
18     <p><?=_To add a verification you need to pass the RA Agent Challenge.?></p>
19   <? } ?>
20   <? if($catssupport) { ?>
21     <p><?=_To act as supporter you need to pass the Support Challenge.?></p>
22   <? } ?>
23   </div>
24 <? } ?>
25 <div class="card card-body bg-light">
26 <? if($ra-agent) { ?><p><?=_You are an RA Agent.?></p><? } ?>
27 <p><?=_Assigned support permissions?>: <?=$support-groups?></p>
28 <p><?=_Assigned user-managed permissions?>: <?=$groups?> (<?=_!'<a href="/account/details">'more!'</a>'?>)</p>
29 <p><?=_${vp} Verification Points and ${xp} Experience Points.?> (<?=_!'<a href="/wot/points">'more!'</a>'?>)</p>
30 </div>
31
32 <h4><?=_Certificate Information?></h4>
33 <div class="card card-body bg-light">
34 <p><?=_${c-no} certificate(s) are issued for your account.?> (<?=_!'<a href="/account/certs">'more!'</a>'?>)</p>
35 </div>
36
37 <h4><?=_Subscribed domains and email addresses?></h4>
38 <div class="card">
39 <div class="card-heading bg-light">
40 <?=_Your account lists the following email addresses?> (<?=_!'<a href="/account/mails">'more!'</a>'?>):
41 </div>
42 <table class="table">
43   <thead>
44   <tr>
45     <th><?=_Address?></th>
46     <th><?=_Status?></th>
47     <th><?=_Last successful verification?></th>
48   </tr>
49   </thead>
50   <tbody>
51   <? foreach($emails) {?>
52         <tr>
53                 <td><?=$address?></td>
54                 <td><?=$verification?></td>
55                 <td><? if($last_verification) { ?><?=$last_verification?><? } else { ?><?=_N/A?><? } ?></td>
56         </tr>
57  <? } ?>
58   </tbody>
59 </table>
60 </div>
61
62 <div class="card">
63 <div class="card-heading bg-light">
64 <?=_Your account lists the following domains?> (<?=_!'<a href="/account/domains">'more!'</a>'?>):
65 </div>
66 <? if($nodomains) { ?>
67 <div class="card-body">
68 <?=_Currently no domains are registered for your account.?>
69 </div>
70 <? } else { ?>
71 <table class="table">
72   <thead>
73   <tr>
74     <th><?=_Domain?></th>
75     <th><?=_Status?></th>
76   </tr>
77   </thead>
78   <tbody>
79   <? foreach($domains) { ?>
80   <tr>
81     <td><?=$domain?></td>
82     <td><?=$status?></td>
83   </tr>
84   <? } ?>
85 </tbody></table>
86 <? } ?>
87 </div>
88
89 <? if($hasorgs) { ?>
90 <h4><?=_Organisations?></h4>
91 <div class="card card-body bg-light">
92  <p><?=_You are listed as administrator for these organisations?>:</p>
93  <ul>
94  <? foreach($orgas) { ?>
95   <li><?=$orgName?></li>
96  <? } ?>
97  </ul>
98  <? if($certlogin) { ?><p><?=_!'<a href="/account/details">'change to organisation administrator context.'</a>'?><? } else { ?><p class="alert alert-warning"><?=_You need to be logged in via certificate to get access to the organisations.?><? } ?></p>
99 </div>
100 <? } ?>
101