appUpdateCommon.ftl 5.9 KB

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