<!DOCTYPE html>
<html lang="en-US">
<head>
    <title>Control Service</title>
    {{> control/partials/head-includes }}
</head>
<body>
{{> control/partials/nav}}
<div class="container">
    <h1 class="my-3">Domain Review</h1>
    <form method="POST" action="/review-random-domains">
    <table class="table">
        <tr>
            <th>Action</th><th>Domain Name</th><th>Screenshot</th>
        </tr>
        {{#each domains}}
        <tr>
            <td>
                <input type="checkbox" name="domain-{{id}}" id="domain-{{id}}"/> <label for="domain-{{id}}">Remove</label>
            </td>
            <td>
                <a href="https://{{domainName}}">{{domainName}}</a>
            </td>
            <td>
                <img src="/screenshot/{{id}}" style="max-width: 100%; max-height: 100px"/>
            </td>
        </tr>
        {{/each}}
        <tr>
            <td colspan="3"><button type="submit" class="btn btn-primary">Process</button></td>
        </tr>
    </table>
        <input type="hidden" name="after" value="{{after}}" />
    </form>
</div>

{{> control/partials/foot-includes }}