]> WPIA git - gigi.git/blobdiff - 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
index 88506f30e1dd54ac7e6acce7a134b9f0e33ad5fc..9b7ea86e4430f823fd2243ffd570aaa82999968f 100644 (file)
     </div>
   <? } ?>
 <? } ?>
-
+<? if($catsinfo) { ?>
+  <div class="alert alert-warning" role="alert">
+  <? if($catsra) { ?>
+    <p><?=_To add a verification you need to pass the RA Agent Challenge.?></p>
+  <? } ?>
+  <? if($catssupport) { ?>
+    <p><?=_To act as supporter you need to pass the Support Challenge.?></p>
+  <? } ?>
+  <? if($catsorgagent) { ?>
+    <p><?=_To act as Organisation Agent you need to pass the Organisation Agent Challenge.?></p>
+  <? } ?>
+    <? if($catsttpagent) { ?>
+      <p><?=_To act as TTP Agent you need to pass the TTP RA Agent Challenge.?></p>
+    <? } ?>
+  </div>
+<? } ?>
 <div class="card card-body bg-light">
 <? if($ra-agent) { ?><p><?=_You are an RA Agent.?></p><? } ?>
 <p><?=_Assigned support permissions?>: <?=$support-groups?></p>
   <li><?=$orgName?></li>
  <? } ?>
  </ul>
- <p><?=_!'<a href="/account/details">'change to organisation administrator context!'</a>'?></p>
+ <? 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>
 </div>
 <? } ?>