newconfig_item.tpl.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <%= page.basehead %>
  2. <title>Disconf - 分布式配置管理平台</title>
  3. <%= page.head %>
  4. <div id="Wrapper" class="clearfix">
  5. <div id="Main" style="margin-top:50px;">
  6. <div class="container-fluid">
  7. <div class="row-fluid">
  8. <ul class="breadcrumb" style="background-color:#fff;">
  9. <li>
  10. <a href="/main.html">配置</a>
  11. </li>
  12. <li class="active">
  13. / 新建配置项
  14. </li>
  15. </ul>
  16. </div>
  17. <div class="row-fluid">
  18. <div class="span12">
  19. <div class="content">
  20. <form id="form" action="/config/" method="post" enctype="multipart/form-data"
  21. class="private-form clearfix">
  22. <h2 class="autoPush-detail-title"> 新建配置项</h2>
  23. <div class="private-item">
  24. <span class="private-item-key">APP选择:</span>
  25. <div class="btn-group">
  26. <a id="appChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  27. <span style="margin-right:2px;">选择APP</span> </span></span><span
  28. class="caret"></span> </a>
  29. <ul class="dropdown-menu" id="appChoice"></ul>
  30. </div>
  31. </div>
  32. <div class="private-item">
  33. <span class="private-item-key">版本:</span>
  34. <div class="btn-group">
  35. <a id="versionChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  36. <span style="margin-right:2px;">选择版本 </span><span class="caret"></span> </a>
  37. <ul class="dropdown-menu" id="versionChoice"></ul>
  38. </div>
  39. </div>
  40. <div class="private-item" id="selfversion" style="display:none">
  41. <span class="private-item-key">自定义版本:</span>
  42. <input id="selfversion_value" type="text" class="private-item-value"/>
  43. </div>
  44. <div class="private-item">
  45. <span class="private-item-key">环境:</span>
  46. <div class="btn-group">
  47. <a id="envChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  48. <span style="margin-right:2px;">选择环境 </span><span class="caret"></span> </a>
  49. <ul class="dropdown-menu" id="envChoice"></ul>
  50. </div>
  51. </div>
  52. <div class="private-item">
  53. <span class="private-item-key">配置项名:</span>
  54. <input id="key" type="text" class="private-item-value"/>
  55. </div>
  56. <div class="private-item">
  57. <span class="private-item-key">配置值:</span>
  58. <input id="value" type="text" class="private-item-value"/>
  59. </div>
  60. <div id="error" class="alert alert-warning hide" role="alert">
  61. 表单选项不能为空或填写格式错误!
  62. </div>
  63. <div class="private-item" style="text-align:center">
  64. <a id="item_submit" class="btn btn-primary"> 新建 </a>
  65. </div>
  66. </form>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <%= page.foot %>
  74. <script src="assets/js/config_common.js"></script>
  75. <script src="assets/js/newconfigitem.js"></script>
  76. <%= page.basefoot %>