/upstream/templates/admin/block.tmpl
Type: /type/template
body: value: $def with (data)

<div id="contentHead">
    <h2>Block IP address</h2>
</div>

<div id="contentBody">
    $if query_param("ip") != None:
        <div>IP address $query_param("ip") has been added to the textarea. Please click Save to block that IP.
            <br/>
            <br/>
        </div>

    <form method="POST">
    <b>Blocked IP Addresses</b>
    <div id="ips">
    <textarea rows="60" name="ips">
    $ ip_list = data.ips
    $ ip_list.sort(key=lambda d:d.ip)
    $for d in ip_list:
        $d.ip
    $if query_param("ip") != None:
        $:query_param("ip")
    </textarea>
    </div>
    <input type="submit" name="_submit" value="Save"/>
    </form>
    
        
</div>
plugin: admin
title: Block IP address
m: edit