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