open_ended_flagged_problems.html 1.98 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
<%inherit file="/main.html" />
<%block name="bodyclass">${course.css_class}</%block>
<%namespace name='static' file='/static_content.html'/>

<%block name="headextra">
<%static:css group='course'/>
</%block>

<%block name="title"><title>${course.number} Flagged Open Ended Problems</title></%block>

11
<%include file="/courseware/course_navigation.html" args="active_page='open_ended_flagged_problems'" />
12

13 14 15 16
<%block name="js_extra">
    <%static:js group='open_ended'/>
</%block>

17 18 19 20 21 22 23
<section class="container">
    <div class="open-ended-problems" data-ajax_url="${ajax_url}">
        <div class="error-container">${error_text}</div>
        <h1>Flagged Open Ended Problems</h1>
        <h2>Instructions</h2>
        <p>Here are a list of open ended problems for this course that have been flagged by students as potentially inappropriate.</p>
        % if success:
24
        % if len(problem_list) == 0:
25 26 27 28 29 30
        <div class="message-container">
            No flagged problems exist.
        </div>
        %else:
        <table class="problem-list">
            <tr>
31 32
                <th>Name</th>
                <th>Response</th>
33 34
                <th></th>
                <th></th>
35 36
            </tr>
            %for problem in problem_list:
Vik Paruchuri committed
37
            <tr data-submission-id="${problem['submission_id']}" data-student-id="${problem['student_id']}">
38 39 40 41
                <td>
                    ${problem['problem_name']}
                </td>
                <td>
42
                    ${problem['student_response']}
43 44
                </td>
                <td>
45
                    <a href="#unflag" class="unflag-button action-button" data-action-type="unflag">Unflag</a>
46
                </td>
47
                <td>
48
                    <a href="#ban" class="ban-button action-button" data-action-type="ban">Ban</a>
49
                </td>
50 51 52
                <td>
                    <div class="action-taken"></div>
                </td>
53 54 55 56 57 58 59
            </tr>
            %endfor
        </table>
        %endif
        %endif
    </div>
</section>