personal.xslt 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2015
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xsl:stylesheet version="1.0"
  13. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  15. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  16. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  17. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  18. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  19. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  20. xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
  21. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  22. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  23. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  24. xmlns:out="dummy-uri"
  25. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  26. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  27. xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb">
  28. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  29. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  30. <xsl:template match="rdb:preferences">
  31. <dt:selectDeselectAll/>
  32. <script language="javascript" src="{'{$webRoot}'}/cr1/caf.js"/>
  33. <script language="javascript">
  34. <!-- Define selectall and deselectall functions.-->
  35. function init()
  36. {
  37. if (document.pform.controller_state)
  38. document.pform.controller_state.value = "";
  39. if (isBidiEnabled)
  40. {
  41. if (typeof document.pform.m_p_email != "undefined")
  42. {
  43. document.pform.m_p_email.value = bidi.sttInjectUCCIntoStr(document.pform.m_p_email.value, 'email');
  44. }
  45. if (typeof document.pform.m_p_notificationEMail != "undefined")
  46. {
  47. document.pform.m_p_notificationEMail.value = bidi.sttInjectUCCIntoStr(document.pform.m_p_notificationEMail.value, 'email');
  48. }
  49. }
  50. <xsl:if test="@mode='preferences'">
  51. var f = document.pform;
  52. if(f.initAlert.value == 'true')
  53. {
  54. f.initAlert.value = 'false';
  55. if (f.m_p_email != null &amp;&amp; f.m_p_email.value != '' &amp;&amp; f.m_p_notificationEMail != null &amp;&amp; f.m_p_notificationEMail.value == '' )
  56. {
  57. if (confirm("<xts:string id="IDS_PERS_TAB_GENERAL_ALERT_EMAIL" encode="javascript"/>"))
  58. f.m_p_notificationEMail.value = f.m_p_email.value;
  59. }
  60. }
  61. </xsl:if>
  62. }
  63. function processModalCommand(sAction)
  64. {
  65. <!-- Set the right call back target -->
  66. var callBackTarget = <out:value-of select="$callBackTargetJSVar"/>;
  67. if( callBackTarget )
  68. {
  69. callBackTarget.<out:value-of select="$callBackFunctionName"/>(sAction, null);
  70. }
  71. }
  72. <xsl:if test="@mode='preferences'">
  73. var f = document.pform;
  74. //Want to warn user if she makes notificationEmail different than logon but only once per visit
  75. function validate()
  76. {
  77. if(f.valAlert &amp;&amp; f.valAlert.value == 'true')
  78. {
  79. f.valAlert.value = 'false';
  80. if (f.m_p_email != null &amp;&amp; f.m_p_email.value != '' &amp;&amp; f.m_p_notificationEMail != null &amp;&amp; f.m_p_notificationEMail.value != '' &amp;&amp; f.m_p_email.value != f.m_p_notificationEMail.value)
  81. {
  82. if ( confirm("<xts:string id="IDS_PERS_TAB_PERSONAL_ALERT_EMAIL" encode="javascript"/>") )
  83. updateAlertEmail();
  84. }
  85. }
  86. if (typeof CAFIsValidEmailAddress == "function" &amp;&amp; f.m_p_notificationEMail != null &amp;&amp; f.m_p_notificationEMail.value != '') {
  87. if (!CAFIsValidEmailAddress(f.m_p_notificationEMail.value)) {
  88. alert("<xts:string id="IDS_PERS_TAB_PERSONAL_INVALID_ALERT_EMAIL" encode="javascript"/>");
  89. return false;
  90. }
  91. }
  92. return true;
  93. }
  94. function updateAlertEmail()
  95. {
  96. f.m_p_notificationEMail.value = f.m_p_email.value;
  97. }
  98. </xsl:if>
  99. </script>
  100. <!-- Primary Log on ============================== -->
  101. <lyt:layout style="1">
  102. <xsl:if test="@mode='preferences'">
  103. <xsl:attribute name="title">IDS_PERS_TAB_PERSONAL_PRIMARY_LOGON</xsl:attribute>
  104. <xsl:attribute name="intro">IDS_PERS_TAB_PERSONAL_PRIMARY_LOGON_INTRO</xsl:attribute>
  105. <xsl:attribute name="border">yes</xsl:attribute>
  106. </xsl:if>
  107. <lyt:section valign="top">
  108. <!-- Namespace -->
  109. <xsl:if test="@mode='preferences'">
  110. <dp:input>
  111. <dp:section1><xts:string id="IDS_PERS_TAB_PERSONAL_NAMESPACE"/></dp:section1>
  112. <dp:section2><out:value-of select="$user/cm:ancestors/cm:ancestorInfo[cm:objectClass = 'namespace']/cm:title"/>&#160;</dp:section2>
  113. </dp:input>
  114. </xsl:if>
  115. <!-- User ID -->
  116. <out:if test="$user/cm:objectClass = 'account'">
  117. <dp:input>
  118. <dp:section1><xts:string id="IDS_PERS_TAB_PERSONAL_USERID"/></dp:section1>
  119. <dp:section2><out:value-of select="$user/cm:userName"/>&#160;</dp:section2>
  120. </dp:input>
  121. </out:if>
  122. <!-- Given Name -->
  123. <out:variable name="nameRO" select="not($user/cm:givenName/@modifiable = 'true') or $noUserProfile"/>
  124. <dp:input>
  125. <dp:section1>
  126. <label>
  127. <out:if test="not($nameRO)">
  128. <out:attribute name="for">ctrl_m_p_givenName</out:attribute>
  129. </out:if>
  130. <xts:string id="IDS_PERS_TAB_PERSONAL_GIVENNAME"/>
  131. </label>
  132. </dp:section1>
  133. <dp:section2>
  134. <utml:input type="text" name="m_p_givenName" size="35" utml:track="false" id="ctrl_m_p_givenName">
  135. <utml:value>
  136. <out:value-of select="$user/cm:givenName"/>
  137. </utml:value>
  138. <utml:read-only>
  139. <out:value-of select="$nameRO"/>
  140. </utml:read-only>
  141. </utml:input>
  142. </dp:section2>
  143. </dp:input>
  144. <!-- Surname -->
  145. <out:variable name="surNameRO" select="not($user/cm:surname/@modifiable='true') or $noUserProfile"/>
  146. <dp:input>
  147. <dp:section1>
  148. <label >
  149. <out:if test="not($surNameRO)">
  150. <out:attribute name="for">ctrl_m_p_surname</out:attribute>
  151. </out:if>
  152. <xts:string id="IDS_PERS_TAB_PERSONAL_SURNAME"/>
  153. </label>
  154. </dp:section1>
  155. <dp:section2>
  156. <utml:input type="text" name="m_p_surname" size="35" utml:track="false" id="ctrl_m_p_surname">
  157. <utml:value>
  158. <out:value-of select="$user/cm:surname"/>
  159. </utml:value>
  160. <utml:read-only>
  161. <out:value-of select="$surNameRO"/>
  162. </utml:read-only>
  163. </utml:input>
  164. </dp:section2>
  165. </dp:input>
  166. <!-- Email -->
  167. <out:variable name="emailRO" select="not($user/cm:email/@modifiable='true') or $noUserProfile"/>
  168. <dp:input>
  169. <dp:section1>
  170. <label>
  171. <out:if test="not($emailRO)">
  172. <out:attribute name="for">ctrl_m_p_email</out:attribute>
  173. </out:if>
  174. <xts:string id="IDS_PERS_TAB_PERSONAL_EMAIL"/>
  175. </label>
  176. </dp:section1>
  177. <dp:section2>
  178. <utml:input type="text" name="m_p_email" size="35" stttype="email" utml:track="false" id="ctrl_m_p_email">
  179. <utml:value>
  180. <out:value-of select="xtsext:sttInjectUCCIntoStr($user/cm:email, 'email', boolean($isBidiEnabled='true'))"/>
  181. </utml:value>
  182. <utml:read-only>
  183. <out:value-of select="$emailRO"/>
  184. </utml:read-only>
  185. </utml:input>
  186. </dp:section2>
  187. </dp:input>
  188. </lyt:section>
  189. </lyt:layout>
  190. <xsl:if test="@mode='preferences'">
  191. <!-- Secondary Logons ============================== -->
  192. <!-- Show secondary logons only when there is more than one logon -->
  193. <out:if test="count($identity/cm:account) > 1">
  194. <lyt:layout style="1" title="IDS_PERS_TAB_PERSONAL_SECONDARY_LOGON" intro="IDS_PERS_TAB_PERSONAL_SECONDARY_LOGON_INTRO" border="yes">
  195. <lyt:section valign="top">
  196. <dp:list width="40%">
  197. <dp:section>
  198. <dp:text width="100%"/>
  199. <dp:text nospace="nospace">
  200. 1 - <out:value-of select="count($identity/cm:account[string(cm:searchPath) != string(/root/cm:queryResponse/cm:queryReply[1]/cm:account/cm:searchPath)])"/>
  201. </dp:text>
  202. </dp:section>
  203. </dp:list>
  204. <!-- Only list the secondary logons -->
  205. <cp:table name="logons" iterate="$identity/cm:account[string(cm:searchPath) != string(/root/cm:queryResponse/cm:queryReply[1]/cm:account/cm:searchPath)]" width="40%">
  206. <cp:tableHeader>
  207. <cp:columnHeader width="20"/>
  208. <cp:columnHeader width="60%"><xts:string id="IDS_PERS_TAB_PERSONAL_NAMESPACE_HEADER"/></cp:columnHeader>
  209. <cp:columnHeader width="40%"><xts:string id="IDS_PERS_TAB_PERSONAL_USERID_HEADER"/></cp:columnHeader>
  210. </cp:tableHeader>
  211. <cp:tableContent>
  212. <cp:columnContent>
  213. <out:call-template name="gen-icon">
  214. <out:with-param name="class" select="./cm:class"/>
  215. <out:with-param name="hiddenObject" select="./cm:hidden"/>
  216. </out:call-template>
  217. </cp:columnContent>
  218. <cp:columnContent>
  219. <out:value-of select="cm:ancestors/cm:ancestorInfo[cm:objectClass = 'namespace']/cm:title"/>
  220. </cp:columnContent>
  221. <cp:columnContent>
  222. <out:value-of select="cm:userName"/>
  223. </cp:columnContent>
  224. </cp:tableContent>
  225. </cp:table>
  226. </lyt:section>
  227. </lyt:layout>
  228. </out:if>
  229. </xsl:if>
  230. <!-- Email to use for Alerts =========================== -->
  231. <out:if test="$user/cm:objectClass != 'contact'">
  232. <utml:input type="hidden" name="initAlert" utml:update="false">
  233. <utml:value>
  234. <out:choose>
  235. <out:when test="key('env-param','initAlert')"><out:value-of select="key('env-param','initAlert')"/></out:when>
  236. <out:otherwise>true</out:otherwise>
  237. </out:choose>
  238. </utml:value>
  239. </utml:input>
  240. <utml:input type="hidden" name="valAlert" utml:update="false">
  241. <utml:value>
  242. <out:choose>
  243. <out:when test="key('env-param','valAlert')"><out:value-of select="key('env-param','valAlert')"/></out:when>
  244. <out:otherwise>true</out:otherwise>
  245. </out:choose>
  246. </utml:value>
  247. </utml:input>
  248. <lyt:layout style="1" title="IDS_PERS_TAB_GENERAL_NOTIFICATIONS" intro="IDS_PERS_TAB_GENERAL_NOTIFICATIONS_DESC" border="yes">
  249. <lyt:section>
  250. <dp:input>
  251. <dp:section1><label for="ctrl_m_p_notificationEMail"><xts:string id="IDS_PERS_TAB_PERSONAL_EMAIL"/></label></dp:section1>
  252. <dp:section2>
  253. <utml:input type="text" name="m_p_notificationEMail" size="35" stttype="email" utml:track="false" id="ctrl_m_p_notificationEMail">
  254. <utml:value>
  255. <out:value-of select="xtsext:sttInjectUCCIntoStr($user/cm:notificationEMail, 'email', boolean($isBidiEnabled='true'))"/>
  256. </utml:value>
  257. <utml:read-only>
  258. <out:value-of select="not($user/cm:notificationEMail/@modifiable='true') or $noUserProfile"/>
  259. </utml:read-only>
  260. </utml:input>
  261. </dp:section2>
  262. </dp:input>
  263. </lyt:section>
  264. </lyt:layout>
  265. </out:if>
  266. <!-- Credentials ============================== -->
  267. <xsl:call-template name="generate-credentials"/>
  268. <!-- Data source credentials ============================== -->
  269. <out:if test="$showDataSourceCredentialsSection">
  270. <lyt:layout style="1" title="IDS_PERS_TAB_GENERAL_DATASOURCE_CREDENTIAL" border="yes">
  271. <lyt:section style="padding:0">
  272. <div id="datasourceCredententialsFrag" style="padding-bottom:20;padding-right:5"/>
  273. </lyt:section>
  274. </lyt:layout>
  275. </out:if>
  276. <xsl:if test="@mode='preferences'">
  277. <!-- Groups and Roles ============================== -->
  278. <lyt:layout style="1" title="IDS_PERS_TAB_PERSONAL_GROUPS_ROLES" border="yes">
  279. <lyt:section valign="top">
  280. <out:if test="count($identity/*[local-name() = 'group' or local-name() = 'role']) > 0">
  281. <dp:list width="55%">
  282. <dp:section>
  283. <dp:text width="100%"/>
  284. <dp:text nospace="nospace">
  285. <xts:string id="IDS_ENTRIES"/>1 - <out:value-of select="count($identity/*[local-name() = 'group' or local-name() = 'role'])"/>
  286. </dp:text>
  287. </dp:section>
  288. </dp:list>
  289. </out:if>
  290. <cp:table name="Groups" iterate="$identity/*[local-name() = 'group' or local-name() = 'role']" width="55%">
  291. <cp:tableHeader>
  292. <cp:columnHeader width="20"/>
  293. <cp:columnHeader width="100%">
  294. <!-- All of this is to align the header (...> Name) with the contents of the table-->
  295. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  296. <out:text/><xts:string id="IDS_PERS_TAB_PERSONAL_NAME_HEADER"/><out:text/>
  297. </cp:columnHeader>
  298. <cp:columnHeader width="40%"><xts:string id="IDS_PERS_TAB_PERSONAL_NAMESPACE_HEADER"/></cp:columnHeader>
  299. <cp:columnHeader width="20%"><xts:string id="IDS_PERS_TAB_PERSONAL_TYPE_HEADER"/></cp:columnHeader>
  300. </cp:tableHeader>
  301. <cp:tableContent>
  302. <cp:columnContent>
  303. <out:call-template name="gen-icon">
  304. <out:with-param name="class" select="./cm:class"/>
  305. <out:with-param name="hiddenObject" select="./cm:hidden"/>
  306. </out:call-template>
  307. </cp:columnContent>
  308. <cp:columnContent>
  309. <img border="0" align="absmiddle" height="16" width="20" src="{'{$skin_images}'}path.gif">
  310. <out:attribute name="alt">
  311. <cf:do-the-path-link>
  312. <cf:param name="familytree">cm:ancestors</cf:param>
  313. <cf:param name="familymember">cm:defaultName</cf:param>
  314. <cf:param name="onlyAncestors">true</cf:param>
  315. </cf:do-the-path-link>
  316. </out:attribute>
  317. </img>
  318. <out:text>&#160;</out:text>
  319. <out:value-of select="xtsext:enforceBTD(./cm:defaultName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
  320. </cp:columnContent>
  321. <cp:columnContent>
  322. <out:value-of select="cm:ancestors/cm:ancestorInfo[cm:objectClass = 'namespace']/cm:title"/>
  323. </cp:columnContent>
  324. <cp:columnContent>
  325. <out:variable name='objClass'><out:value-of select="cm:objectClass"/></out:variable>
  326. <out:value-of select="/root/objectClass/class[@name= $objClass]"/>
  327. </cp:columnContent>
  328. </cp:tableContent>
  329. </cp:table>
  330. </lyt:section>
  331. </lyt:layout>
  332. <!-- Capabilities ============================== -->
  333. <lyt:layout style="1" title="IDS_PERS_TAB_PERSONAL_CAPABILITIES" border="yes">
  334. <!-- Capabilities table is provided through a fragment -->
  335. <lyt:section style="padding:0">
  336. <div id="capabilitiesFrag"/>
  337. </lyt:section>
  338. </lyt:layout>
  339. </xsl:if>
  340. </xsl:template>
  341. <xsl:template name="generate-credentials">
  342. <out:if test="contains($user/cm:permissions,'write')">
  343. <utml:input type="hidden" name="h_CAM_action" value="" utml:update="false"/>
  344. <utml:input type="hidden" name="renew_credential" value="" utml:update="false"/>
  345. <utml:input type="hidden" name="credential_op" value="" utml:update="false"/>
  346. <utml:input type="hidden" name="credential_self" utml:update="false">
  347. <utml:value>
  348. <out:value-of select="$user/cm:searchPath"/>
  349. </utml:value>
  350. </utml:input>
  351. <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
  352. <out:variable name="credentialIsInitialized" select="/root/list"/>
  353. <out:if test="$credentialIsInitialized or not('{@mode}' = 'properties')">
  354. <lyt:layout style="1" title="IDS_PERS_TAB_GENERAL_CREDENTIAL" border="yes">
  355. <lyt:section>
  356. <dp:choice>
  357. <dp:section1 type="hint">
  358. <xts:string id="IDS_PERS_TAB_GENERAL_CREDENTIAL_DESC"/>&#160;
  359. <xsl:if test="not(@mode = 'properties')">
  360. <out:if test="$credentialIsInitialized">
  361. <xts:string id="IDS_PERS_TAB_GENERAL_RENEWCREDENTIAL_DESC"/>&#160;
  362. </out:if>
  363. <out:choose>
  364. <out:when test="$credentialIsInitialized">
  365. <utml:a utml:op="maintain" utml:formName="pform">
  366. <utml:target><out:value-of select="concat($app,'/',$mname)"/></utml:target>
  367. <utml:href>document.pform.renew_credential.value='true';document.pform.h_CAM_action.value='generateTC';</utml:href>
  368. <xts:string id="IDS_PERS_TAB_GENERAL_RENEW_CREDENTIAL"/>
  369. </utml:a>
  370. </out:when>
  371. <out:otherwise>
  372. <utml:a utml:op="maintain" utml:formName="pform">
  373. <utml:target><out:value-of select="concat($app,'/',$mname)"/></utml:target>
  374. <utml:href>document.pform.renew_credential.value='false';document.pform.h_CAM_action.value='generateTC';</utml:href>
  375. <xts:string id="IDS_PERS_TAB_GENERAL_CREATE_CREDENTIAL"/>
  376. </utml:a>
  377. </out:otherwise>
  378. </out:choose>
  379. </xsl:if>
  380. </dp:section1>
  381. </dp:choice>
  382. </lyt:section>
  383. <lyt:section noTitle="true">
  384. <out:if test="$credentialIsInitialized">
  385. <cf:main-pager-section name="cred" form="pform" width="100%" genDelete="yes">
  386. <cf:param name="item-path">/root/list/*</cf:param>
  387. <cf:param name="target">concat($app,'/',$mname)</cf:param>
  388. <cf:param name="lines-per-page">
  389. <out:choose>
  390. <out:when test="key('session-param','linesPerPage')!=''">
  391. <out:value-of select="key('session-param','linesPerPage')"/>
  392. </out:when>
  393. <out:otherwise>
  394. <out:value-of select="/root/system/param[@name='defaultPortalPreferences']/pref[@name='lines']"/>
  395. </out:otherwise>
  396. </out:choose>
  397. </cf:param>
  398. <cf:param name="actions">
  399. <cp:action>
  400. <utml:a utml:op="maintain" utml:formName="pform">
  401. <utml:href>document.pform.m_credsection.value='1';document.pform.controller_state.value='addEntries|navigate';</utml:href>
  402. <utml:target><out:value-of select="concat($app, '/', $mname)"/></utml:target>
  403. <out:text/><xts:string id="IDS_COMMAND_ADD"/><out:text/>
  404. </utml:a>
  405. </cp:action>
  406. <cp:action>
  407. <utml:a onclick="javascript:document.pform.credential_op.value='delete';if(window.preDeletecred)preDeletecred('pform','credential_chk_');" utml:formName="pform">
  408. <utml:target><out:value-of select="concat($app, '/', $mname)"/></utml:target>
  409. <out:text/><xts:string id="IDS_REMOVE"/></utml:a>
  410. </cp:action>
  411. </cf:param>
  412. <cf:param name="rows">
  413. <cp:tableHeader>
  414. <cp:columnHeader width="16" toggleName="credential_chk_" utlm="utml" noLabel="true"/>
  415. <cp:columnHeader width="16"/>
  416. <cp:columnHeader width="100%">
  417. <span style="padding-left: 1px; padding-right: 1px;"><xts:string id="IDS_PATH_INDICATOR"/>&#160;</span>
  418. <out:text/><xts:string id="IDS_NAME"/><out:text/>
  419. </cp:columnHeader>
  420. </cp:tableHeader>
  421. <cp:tableContent>
  422. <out:variable name="entryLabel">
  423. <out:value-of select="xtsext:enforceBTD(cm:defaultName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
  424. <out:if test="cm:userName!=''">&#160;(<out:value-of select="cm:userName"/>)</out:if>
  425. </out:variable>
  426. <cp:columnContent>
  427. <input type="checkbox" name="credential_chk_{'{position()}'}" value="{'{cm:searchPath}'}">
  428. <out:attribute name="aria-label"><xts:string id="IDS_SELECTION_FOR_PAGER_ITEM" encode="html"><xts:param name="pagerItemName"><out:value-of select="$entryLabel"/></xts:param></xts:string></out:attribute>
  429. </input>
  430. </cp:columnContent>
  431. <cp:columnContent>
  432. <out:call-template name="gen-icon">
  433. <out:with-param name="showAction" select="false()"/>
  434. <out:with-param name="hiddenObject" select="cm:hidden"/>
  435. </out:call-template>
  436. </cp:columnContent>
  437. <cp:columnContent>
  438. <img border="0" align="absmiddle" height="16" width="20" src="{'{$skin_images}'}path.gif">
  439. <out:attribute name="alt">
  440. <cf:do-the-path-link>
  441. <cf:param name="familytree">cm:ancestors</cf:param>
  442. <cf:param name="familymember">cm:defaultName</cf:param>
  443. <cf:param name="onlyAncestors">true</cf:param>
  444. </cf:do-the-path-link>
  445. </out:attribute>
  446. </img>
  447. <out:text>&#160;</out:text>
  448. <out:value-of select="$entryLabel"/>
  449. </cp:columnContent>
  450. </cp:tableContent>
  451. </cf:param>
  452. </cf:main-pager-section>
  453. </out:if>
  454. </lyt:section>
  455. </lyt:layout>
  456. </out:if>
  457. </out:if>
  458. <out:if test="$credentialExists and key('env-param','renew_credential')='true'">
  459. <script language="javascript">
  460. alert("<xts:string id="IDS_PERS_CREDENTIAL_SUCCESS" encode="javascript"/>");
  461. </script>
  462. </out:if>
  463. <!-- if the user tried to add a duplicate entry -->
  464. <script language="javascript">
  465. <out:if test="/root/duplicateEntry">
  466. <out:variable name="msg">
  467. <xts:string id="IDS_DUPLICATE_ENTRY" encode="javascript"/>
  468. </out:variable>
  469. window.alert('<out:value-of select="$msg"/>');
  470. </out:if>
  471. </script>
  472. <out:if test="/root/env/param[@name='remove_notifications'] != ''">
  473. <script language="javascript">
  474. alert("<xts:string id="IDS_PERS_REMOVE_NOTIFICATIONS_SUCCESS" encode="javascript"/>");
  475. </script>
  476. </out:if>
  477. </xsl:template>
  478. <xsl:template match="*">
  479. <xsl:copy>
  480. <xsl:copy-of select="@*"/>
  481. <xsl:apply-templates/>
  482. </xsl:copy>
  483. </xsl:template>
  484. </xsl:stylesheet>