{% extends "portal/layout.html" %}
{% block content %}

    <div class="panel panel-danger">
        <div class="panel-heading">
            <h3 class="panel-title">批量重命名HostGroup</h3>
        </div>
        <div class="panel-body">
            <div role="form">
                <div class="form-group">
                    <label for="old_str">old</label>
                    <input type="text" class="form-control" id="old_str">
                </div>
                <div class="form-group">
                    <label for="new_str">new</label>
                    <input type="text" class="form-control" id="new_str">
                </div>
                <button type="button" class="btn btn-default" onclick="rename_hostgroup();">Submit</button>
                <button class="btn btn-default" onclick="history.go(-1);">Cancel</button>
            </div>
        </div>
        <div class="panel-footer">使用Python字符串的replace(old, new)方法做替换；只操作您是creator的并且在监控系统中创建的HostGroup，从服务树同步过来的不受影响
        </div>
    </div>

{% endblock %}
