{% extends "base.html" %}

{% block title %}Pending Suggestions{% endblock %}

{% block content %}

<h1>{{ suggestions|length }} Pending Suggestions</h1>

<form action="/admin/suggestions/review" method="post">
    <table class="table table-striped table-hover">
        <thead>
            <th>Suggestion</th>
            <th>Object</th>
            <th>Contents</th>
            <th>Suggester</th>
            <th>Accept</th>
            <th>Reject</th>
        </thead>
        
        {% for suggestion in suggestions %}
        <tr>
            <td>{{ suggestion.key.id }}</a></td>
            <td>{{ suggestion.target_model }}:{{ suggestion.target_key }}</td>
            <td>{{ suggestion.contents_json }}</td>
            <td>{{ suggestion.author.get.nickname }}</a></td>
            <td><input type="checkbox" name="accept_keys[]" value="{{suggestion.key.id}}"></td>
            <td><input type="checkbox" name="reject_keys[]" value="{{suggestion.key.id}}"></td>
        </tr>
        {% endfor %}
    </table>
    <button class="btn btn-success" type="submit"><i class="icon-plus-sign icon-white"></i> Act On Selected</button>
</form>

{% endblock %}

{% extends "base.html" %}

{% block title %}Pending Suggestions{% endblock %}

{% block content %}

<h1>{{ suggestions|length }} Pending Suggestions</h1>

<form action="/admin/suggestions/review" method="post">
    <table class="table table-striped table-hover">
        <thead>
            <th>Suggestion</th>
            <th>Object</th>
            <th>Contents</th>
            <th>Suggester</th>
            <th>Accept</th>
            <th>Reject</th>
        </thead>
        
        {% for suggestion in suggestions %}
        <tr>
            <td>{{ suggestion.key.id }}</a></td>
            <td>{{ suggestion.target_model }}:{{ suggestion.target_key }}</td>
            <td>{{ suggestion.contents_json }}</td>
            <td>{{ suggestion.author.get.nickname }}</a></td>
            <td><input type="checkbox" name="accept_keys[]" value="{{suggestion.key.id}}"></td>
            <td><input type="checkbox" name="reject_keys[]" value="{{suggestion.key.id}}"></td>
        </tr>
        {% endfor %}
    </table>
    <button class="btn btn-primary" type="submit"><i class="icon-pencil icon-white"></i> Act On Selected</button>
</form>

{% endblock %}

Change button color for suggestions.
Change button color for suggestions.
