advanced.html 1.1 KB

1234567891011121314151617181920212223242526
  1. {% extends "portal/layout.html" %}
  2. {% block content %}
  3. <div class="panel panel-danger">
  4. <div class="panel-heading">
  5. <h3 class="panel-title">批量重命名HostGroup</h3>
  6. </div>
  7. <div class="panel-body">
  8. <div role="form">
  9. <div class="form-group">
  10. <label for="old_str">old</label>
  11. <input type="text" class="form-control" id="old_str">
  12. </div>
  13. <div class="form-group">
  14. <label for="new_str">new</label>
  15. <input type="text" class="form-control" id="new_str">
  16. </div>
  17. <button type="button" class="btn btn-default" onclick="rename_hostgroup();">Submit</button>
  18. <button class="btn btn-default" onclick="history.go(-1);">Cancel</button>
  19. </div>
  20. </div>
  21. <div class="panel-footer">使用Python字符串的replace(old, new)方法做替换;只操作您是creator的并且在监控系统中创建的HostGroup,从服务树同步过来的不受影响
  22. </div>
  23. </div>
  24. {% endblock %}