newconfig_file.tpl.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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" style="padding-bottom:15px;">
  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. <div class="btn-group">
  55. <a id="uploadChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  56. <span style="margin-right:2px;">选择上传方式</span><span class="caret"></span> </a>
  57. <ul class="dropdown-menu" id="uploadChoice">
  58. <li>
  59. <a href="#">输入文本</a>
  60. </li>
  61. <li>
  62. <a href="#">上传配置文件</a>
  63. </li>
  64. </ul>
  65. </div>
  66. </div>
  67. <div id="file_upload_choice" class="private-item clearfix hide">
  68. <span style="float:left" class="private-item-key">上传配置文件:</span>
  69. <div style="float:left" class="private-item-value-pre">
  70. <span class="sl-custom-file btn btn-success fileinput-button"
  71. style="overflow: hidden;cursor: pointer;">
  72. <div id="open_dialog_rar">
  73. 上传配置文件...
  74. </div>
  75. <input class="ui-input-file" type="file" name="myfilerar" id="myfilerar"
  76. style="width:120px;height:30px;">
  77. </span>
  78. <span id="error_rar" class="text-error error_rar"></span>
  79. <div style="color: #999;">
  80. 支持任意类型配置文件(.properties文件可支持自动注入,非.properties文件则只是简单托管)
  81. <span id="status_rar" class="text-success"></span>
  82. </div>
  83. <div class="progress_rar">
  84. <div class="bar_rar"></div>
  85. <div class="percent_rar">
  86. 0%
  87. </div>
  88. </div>
  89. <div class="loading_rar"></div>
  90. </div>
  91. </div>
  92. <div id="text_upload_choice" class="hide">
  93. <div class="private-item">
  94. <span style="float:left" class="private-item-key">文件名:</span>
  95. <input id="fileName" type="text" class="private-item-value">
  96. </div>
  97. <div class="private-item">
  98. <span style="float:left" class="private-item-key">输入文本:</span>
  99. <textarea id="fileContent" type="text" class="private-item-value"
  100. style="min-width:500px;height:200px;"></textarea>
  101. </div>
  102. </div>
  103. <div id="error" class="error hide">
  104. 表单选项不能为空或填写格式错误!
  105. </div>
  106. </form>
  107. <div style="text-align:center">
  108. <button id="file_submit" class="btn btn-primary">
  109. 新建
  110. </button>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <%= page.foot %>
  119. <script src="assets/js/config_common.js"></script>
  120. <script src="assets/js/jquery.form.js"></script>
  121. <script src="assets/js/newconfigfile.js"></script>
  122. <%= page.basefoot %>