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