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