modifyFile.tpl.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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>
  13. <span id="currentData"></span>
  14. </li>
  15. <li class="active">
  16. / 配置文件修改
  17. </li>
  18. </ul>
  19. </div>
  20. <div class="row-fluid">
  21. <div class="span4">
  22. <div class="well sidebar-nav" style="padding:10px;background-color:#fff">
  23. <ul id="sidebarcur" class="nav nav-list"></ul>
  24. </div>
  25. <!--/.well -->
  26. </div>
  27. <div class="span8">
  28. <div class="content" style="padding-bottom:15px;">
  29. <form id="form" action="/config/" method="post" enctype="multipart/form-data"
  30. class="private-form clearfix">
  31. <h2 class="autoPush-detail-title">配置文件修改</h2>
  32. <p class="private-item">
  33. <span class="private-item-key">APP id & 名称:</span>
  34. <span id="app" class="private-item-value">FFFF</span>
  35. </p>
  36. <p class="private-item">
  37. <span class="private-item-key">版本:</span>
  38. <span id="version" class="private-item-value">FFFF</span>
  39. </p>
  40. <p class="private-item">
  41. <span class="private-item-key">环境:</span>
  42. <span id="env" class="private-item-value">FFFF</span>
  43. </p>
  44. <p class="private-item">
  45. <span class="private-item-key">配置文件名:</span>
  46. <span id="key" class="private-item-value">FFFF</span>
  47. </p>
  48. <div class="private-item clearfix">
  49. <span style="float:left" class="private-item-key">原配置文件内容:</span>
  50. <pre style="float:left" id="oldvalue" class="private-item-value-pre">FFFF</pre>
  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;width: 300px" 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. <br/>
  79. <span id="error_rar" class="text-error error_rar"></span>
  80. <div style="color: #999;">
  81. 仅支持任意类型配置文件(.properties文件可支持自动注入, 非.properties文件则只是简单托管)
  82. <span id="status_rar" class="text-success"></span>
  83. </div>
  84. <div class="progress_rar">
  85. <div class="bar_rar"></div>
  86. <div class="percent_rar">
  87. 0%
  88. </div>
  89. </div>
  90. <div class="loading_rar"></div>
  91. </div>
  92. </div>
  93. <div id="text_upload_choice" class="hide">
  94. <div class="private-item">
  95. <span style="float:left" class="private-item-key">输入文本:</span>
  96. <textarea id="fileContent" type="text" class="private-item-value"
  97. style="min-width:500px;height:200px;"></textarea>
  98. </div>
  99. </div>
  100. <div id="error" class="error hide">
  101. 表单选项不能为空或填写格式错误!
  102. </div>
  103. </form>
  104. <div>
  105. <button id="file_submit" class="private-submit">
  106. 上传
  107. </button>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <!-- 详细信息单行模板-->
  116. <div id="tItemTpl" class="hide">
  117. <li style="font-size:13px;overflow-wrap: break-word;word-wrap: break-word;" class="{2}">
  118. <a href="{1}">{0}</a>
  119. </li>
  120. </div>
  121. <%= page.foot %>
  122. <script src="assets/js/modifycommon.js"></script>
  123. <script src="assets/js/jquery.form.js"></script>
  124. <script src="assets/js/modifyFile.js"></script>
  125. <%= page.basefoot %>