appUpdateCommon.ftl 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!--table-->
  2. <table width="960" class="table table-bordered" >
  3. <tbody>
  4. <tr>
  5. <td colspan=4><@locale code="apps.basic.info"/></td>
  6. </tr>
  7. <tr>
  8. <th style="width:15%;"><@locale code="apps.id"/>:</th>
  9. <td style="width:35%;">
  10. <div style="width:100%;font-weight: bold;">${model.id!}</div>
  11. <input type="hidden" id="id" name="id" title="" value="${model.id!}"/>
  12. <input type="hidden" id="status" name="status" title="" value="${model.status!}"/>
  13. </td>
  14. <th style="width:15%;"><@locale code="apps.secret"/>:</th>
  15. <td style="width:35%;">
  16. <input type="text" id="secret" readonly style="width:80%;float: left;font-weight: bold;" class="form-control" name="secret" title="" value="${model.secret!}"/>
  17. <input id="generateSecret" type="button" class="button btn btn-warning mr-2" value="<@locale code="button.text.generate"/>"/>
  18. </td>
  19. </tr>
  20. <tr>
  21. <th><@locale code="apps.name"/>:</th>
  22. <td colspan="3">
  23. <input type="text" class="form-control" id="name" name="name" title="" value="${model.name!}" required="" />
  24. </td>
  25. </tr>
  26. <tr>
  27. <th><@locale code="apps.loginUrl"/>:</th>
  28. <td colspan="3">
  29. <input type="text" class="form-control" id="loginUrl" name="loginUrl" title="" value="${model.loginUrl!}" required="" />
  30. </td>
  31. </tr>
  32. <tr>
  33. <th><@locale code="apps.logoutUrl"/>:</th>
  34. <td>
  35. <input type="text" id="logoutUrl" class="form-control" name="logoutUrl" title="" value="${model.logoutUrl!}"/>
  36. </td>
  37. <th><@locale code="apps.logoutType"/></th>
  38. <td>
  39. <select id="logoutType" name="logoutType" class="form-control form-select" >
  40. <option value="0" <#if 0==model.logoutType!>selected</#if> ><@locale code="apps.logoutType.none"/></option>
  41. <option value="1" <#if 1==model.logoutType!>selected</#if> ><@locale code="apps.logoutType.back_channel"/></option>
  42. <option value="2" <#if 2==model.logoutType!>selected</#if> ><@locale code="apps.logoutType.front_channel"/></option>
  43. </select>
  44. </td>
  45. </tr>
  46. <tr>
  47. <th><@locale code="apps.protocol"/>:</th>
  48. <td>
  49. <input type="text" class="form-control" id="protocol" name="protocol" title="" value="${model.protocol!}"/>
  50. </td>
  51. <th><@locale code="apps.category"/>:</th>
  52. <td>
  53. <input type="text"class="form-control" id="category" name="category" title="" value="${model.category!}"/>
  54. </td>
  55. </tr>
  56. <tr>
  57. <th><@locale code="apps.icon"/>:</th>
  58. <td><img id="iconFileImg" height='30' src='<@base/>/image/${model.id!}'/>
  59. </td>
  60. <th><@locale code="common.text.sortindex"/></th>
  61. <td>
  62. <input type="text" class="form-control" id="sortIndex" name="sortIndex" title="" value="${model.sortIndex!}" required="" />
  63. </td>
  64. </tr>
  65. <tr>
  66. <th><@locale code="apps.vendor"/>:</th>
  67. <td>
  68. <input type="text" class="form-control" id="vendor" name="vendor" title="" value="${model.vendor!}"/>
  69. </td>
  70. <th><@locale code="apps.vendor.url"/>:</th>
  71. <td>
  72. <input type="text" class="form-control" id="vendorUrl" name="vendorUrl" title="" value="${model.vendorUrl!}"/>
  73. </td>
  74. </tr>
  75. <tr>
  76. <th><@locale code="apps.visible"/></th>
  77. <td>
  78. <select id="visible" name="visible" class="form-control form-select">
  79. <option value="0" <#if 0==model.visible!>selected</#if> ><@locale code="apps.visible.hidden"/></option>
  80. <option value="1" <#if 1==model.visible!>selected</#if> ><@locale code="apps.visible.all"/></option>
  81. <option value="2" <#if 2==model.visible!>selected</#if> ><@locale code="apps.visible.internet"/></option>
  82. <option value="3" <#if 3==model.visible!>selected</#if> ><@locale code="apps.visible.intranet"/></option>
  83. </select>
  84. </td>
  85. <th><@locale code="apps.extendAttr"/></th>
  86. <td>
  87. <input class="button btn btn-success mr-3 window" style="float: left;" id="addExtendAttrBtn" type="button"
  88. value="<@locale code="button.text.select"/>"
  89. wurl="<@base/>/apps/forwardAppsExtendAttr/${model.id!}"
  90. wwidth="900"
  91. wheight="650"
  92. target="window">
  93. </td>
  94. </tr>
  95. <tr>
  96. <th><@locale code="apps.isAdapter" />:</th>
  97. <td>
  98. <select id="isAdapter" name="isAdapter" class="form-control form-select">
  99. <option value="0" <#if 0==model.isAdapter>selected</#if> ><@locale code="apps.isAdapter.no"/></option>
  100. <option value="1" <#if 1==model.isAdapter>selected</#if> ><@locale code="apps.isAdapter.yes"/></option>
  101. </select>
  102. </td>
  103. <th><@locale code="apps.adapter" />:</th>
  104. <td>
  105. <input type="hidden" class="form-control" id="adapterId" name="adapterId" title="" value="${model.adapterId!}"/>
  106. <input type="text" class="form-control" id="adapterName" name="adapterName" title="" value="${model.adapterName!}" style="width: 80%;float: left;"/>
  107. <input type="hidden" class="form-control" id="adapter" name="adapter" title="" value="${model.adapter!}"/>
  108. <input class="button btn btn-success mr-3 window" style="float: left;" id="selectAdaptersBtn" type="button"
  109. value="<@locale code="button.text.select"/>"
  110. wurl="<@base/>/apps/adapters/selectAdaptersList?protocol=${model.protocol!}"
  111. wwidth="750"
  112. wheight="600"
  113. target="window">
  114. </td>
  115. </tr>
  116. <tr>
  117. <th><@locale code="common.text.description"/>:</th>
  118. <td colspan =3>
  119. <input type="text" class="form-control" id="description" name="description" title="" value="${model.description!}"/>
  120. </td>
  121. </tr>
  122. </tbody>
  123. </table>