appUpdate.ftl 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE HTML>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <#include "../../layout/header.ftl"/>
  5. <#include "../../layout/common.cssjs.ftl"/>
  6. <#include "../appCommonHead.ftl"/>
  7. <#setting number_format="#">
  8. </head>
  9. <body>
  10. <form id="actionForm_app" method="post" type="label" autoclose="true" closeWindow="true"
  11. action="<@base/>/apps/tokenbased/update"
  12. forward="<@base/>/apps/list"
  13. enctype="multipart/form-data"
  14. class="needs-validation" novalidate>
  15. <!-- content -->
  16. <!--table-->
  17. <table width="960" class="table table-bordered" >
  18. <tbody>
  19. <tr>
  20. <td ><#include "../appUpdateCommon.ftl"/></td>
  21. </tr>
  22. <tr>
  23. <td>
  24. <table width="960" class="table table-bordered" >
  25. <tbody>
  26. <tr>
  27. <td colspan=4><@locale code="apps.tokenbased.info" /></td>
  28. </tr>
  29. <tr>
  30. <th style="width:15%;"><@locale code="apps.tokenbased.redirectUri" />:</th>
  31. <td colspan=3>
  32. <input type="text" id="redirectUri" class="form-control" name="redirectUri" title="" value="${model.redirectUri}" required="" />
  33. </td>
  34. </tr>
  35. <tr>
  36. <th ><@locale code="apps.tokenbased.tokenType" />:</th>
  37. <td >
  38. <select id="tokenType" name="tokenType" class="form-control">
  39. <option value="POST" <#if 'POST'==model.tokenType>selected</#if> >安全令牌(TOKEN POST)</option>
  40. <option value="LTPA" <#if 'LTPA'==model.tokenType>selected</#if> >轻量级认证(LTPA COOKIE)</option>
  41. </select>
  42. </td>
  43. <th ><@locale code="apps.tokenbased.cookieName" />:</th>
  44. <td >
  45. <input type="text" class="form-control" id="cookieName" name="cookieName" title="" value="${model.cookieName!}"/>
  46. </td>
  47. </tr>
  48. <tr>
  49. <th style="width:15%;"><@locale code="apps.tokenbased.algorithm" />:</th>
  50. <td style="width:35%;">
  51. <select id="algorithm" name="algorithm" class="form-control" >
  52. <option value="DES" <#if 'DES'==model.algorithm>selected</#if> >DES</option>
  53. <option value="DESede" <#if 'DESede'==model.algorithm>selected</#if>>DESede</option>
  54. <option value="Blowfish" <#if 'Blowfish'==model.algorithm>selected</#if>>Blowfish</option>
  55. <option value="AES" <#if 'AES'==model.algorithm>selected</#if>>AES</option>
  56. <option value="HS256" <#if 'HS256'==model.algorithm>selected</#if>>HMAC SHA-256</option>
  57. <option value="RS256" <#if 'RS256'==model.algorithm>selected</#if>>RSA SHA-256</option>
  58. </select>
  59. </td>
  60. <th style="width:15%;"><@locale code="apps.tokenbased.algorithmKey" />:</th>
  61. <td style="width:35%;">
  62. <span id="algorithmKey_text">${model.algorithmKey}</span>
  63. <input type="hidden" id="algorithmKey" name="algorithmKey" title="" value="${model.algorithmKey}"/>
  64. </td>
  65. </tr>
  66. <tr>
  67. <th><@locale code="apps.tokenbased.token.content" />:</th>
  68. <td >
  69. <#include "../userPropertys.ftl"/>
  70. </td>
  71. <th><@locale code="apps.tokenbased.expires" />:</th>
  72. <td>
  73. <input type="text" class="form-control" id="expires" name="expires" title="" value="${model.expires}" required="" />
  74. </td>
  75. </tr>
  76. <tr>
  77. <td colspan =4>
  78. <input class="button btn btn-primary mr-3" id="submitBtn" type="submit" value="<@locale code="button.text.save" />"/>
  79. <input class="button btn btn-secondary mr-3" id="backBtn" type="button" value="<@locale code="button.text.close" />"/>
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. </form>
  89. </body>
  90. </html>