<commit_before>{% extends "coursereg/base.html" %}

{% block body %}
{% include "coursereg/nav.html" %}
<div class="container" id="maincontainer">
    {% if messages %}
    {% for message in messages %}
    <div class="row top-buffer-1">
        <div class="col-md-12">
            {% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}
            <div class="alert alert-danger" role="alert">{{ message }}</div>
            {% elif message.level == DEFAULT_MESSAGE_LEVELS.WARNING %}
            <div class="alert alert-warning" role="alert">{{ message }}</div>
            {% elif message.level == DEFAULT_MESSAGE_LEVELS.INFO %}
            <div class="alert alert-info" role="alert">{{ message }}</div>
            {% elif message.level == DEFAULT_MESSAGE_LEVELS.SUCCESS %}
            <div class="alert alert-success" role="alert">{{ message }}</div>
            {% endif %}
        </div>
    </div>
    {% endfor %}
    {% endif %}
    <div class="row">
        <div class="col-md-12">
            <h2>Review pending</h2>
        </div>
    </div>
    {% if pending_students %}
    <div class="row">
        <div class="col-md-12">
            <table class="table table-striped">
                {% for student in pending_students %}
                {% if not student.is_instructor_review_pending %}
                <tr>
                    <td>{{ forloop.counter }}</td>
                    <td><a href="{% url 'coursereg:dcc_detail' student.id %}">{{ student.full_name }}</a> ({{ student.email }})</td>
                </tr>
                {% endif %}
                {% endfor %}
            </table>
        </div>
    </div>
    {% if faculty_approval_pending %}
    <div class="row">
        <div class="col-md-12">
            <form class="form-inline" action="{% url 'coursereg:dcc_remind' %}" method="POST">
                {% csrf_token %}
                <button type="submit" id="sendReminder" class="btn btn-default btn-sm">
                    Send reminder e-mail to faculty with pending approvals
                </button>
            </form>
        </div>
    </div>
    {% endif %}
    {% else %}
    <h2><small>No students pending review</small></h2>
    {% endif %}
    <div class="row">
        <div class="col-md-12">
            <h2>All active students</h2>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <table class="table table-striped">
            {% for student in all_active_students %}
            <tr>
                <td>{{ forloop.counter }}</td>
                <td>
                    <a href="{% url 'coursereg:dcc_detail' student.id %}">{{ student.full_name }}</a> ({{ student.email }})
                    {% if student.is_adviser_or_instructor_pending %}
                    <span class="badge">In progress</span>
                    {% elif student.is_dcc_review_pending %}
                    <span class="badge">DCC pending</span>
                    {% elif student.is_grade_pending %}
                    <span class="badge">Registered</span>
                    {% endif %}
                </td>
            </tr>
            {% endfor %}
            </table>
        </div>
    </div>
</div>
{% endblock %}
<commit_msg>Remove badges next to active students in DCC<commit_after>{% extends "coursereg/base.html" %}

{% block body %}
{% include "coursereg/nav.html" %}
<div class="container" id="maincontainer">
    {% if messages %}
    {% for message in messages %}
    <div class="row top-buffer-1">
        <div class="col-md-12">
            {% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}
            <div class="alert alert-danger" role="alert">{{ message }}</div>
            {% elif message.level == DEFAULT_MESSAGE_LEVELS.WARNING %}
            <div class="alert alert-warning" role="alert">{{ message }}</div>
            {% elif message.level == DEFAULT_MESSAGE_LEVELS.INFO %}
            <div class="alert alert-info" role="alert">{{ message }}</div>
            {% elif message.level == DEFAULT_MESSAGE_LEVELS.SUCCESS %}
            <div class="alert alert-success" role="alert">{{ message }}</div>
            {% endif %}
        </div>
    </div>
    {% endfor %}
    {% endif %}
    <div class="row">
        <div class="col-md-12">
            <h2>Review pending</h2>
        </div>
    </div>
    {% if pending_students %}
    <div class="row">
        <div class="col-md-12">
            <table class="table table-striped">
                {% for student in pending_students %}
                {% if not student.is_instructor_review_pending %}
                <tr>
                    <td>{{ forloop.counter }}</td>
                    <td><a href="{% url 'coursereg:dcc_detail' student.id %}">{{ student.full_name }}</a> ({{ student.email }})</td>
                </tr>
                {% endif %}
                {% endfor %}
            </table>
        </div>
    </div>
    {% if faculty_approval_pending %}
    <div class="row">
        <div class="col-md-12">
            <form class="form-inline" action="{% url 'coursereg:dcc_remind' %}" method="POST">
                {% csrf_token %}
                <button type="submit" id="sendReminder" class="btn btn-default btn-sm">
                    Send reminder e-mail to faculty with pending approvals
                </button>
            </form>
        </div>
    </div>
    {% endif %}
    {% else %}
    <h2><small>No students pending review</small></h2>
    {% endif %}
    <div class="row">
        <div class="col-md-12">
            <h2>All active students</h2>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <table class="table table-striped">
            {% for student in all_active_students %}
            <tr>
                <td>{{ forloop.counter }}</td>
                <td>
                    <a href="{% url 'coursereg:dcc_detail' student.id %}">{{ student.full_name }}</a>
                    ({{ student.email }})
                </td>
            </tr>
            {% endfor %}
            </table>
        </div>
    </div>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.166502624671916, 'fraction_numerical': 0.006233595800524934, 'mean_word_length': 1.7013735046521932, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '916146', 'n_tokens_mistral': 1939, 'n_tokens_neox': 1745, 'n_words': 390}