peer_grading.html 2.24 KB
Newer Older
Vik Paruchuri committed
1
<section class="container peer-grading-container">
2
    <div class="peer-grading" data-ajax-url="${ajax_url}" data-use-single-location="${use_single_location}">
3 4 5
        <div class="error-container">${error_text}</div>
        <h1>Peer Grading</h1>
        <h2>Instructions</h2>
6
        <p>Here are a list of problems that need to be peer graded for this course.</p>
7
        % if success:
8 9 10 11 12
            % if len(problem_list) == 0:
            <div class="message-container">
                Nothing to grade!
            </div>
            %else:
13 14 15 16
            <div class="problem-list-container">
                <table class="problem-list">
                    <tr>
                        <th>Problem Name</th>
17
                        <th>Due date</th>
18
                        <th>Graded</th>
19
                        <th>Available</th>
20 21
                        <th>Required</th>
                        <th>Progress</th>
22
                    </tr>
23
                %for problem in problem_list:
24 25
                <tr data-graded="${problem['num_graded']}" data-required="${problem['num_required']}">
                    <td class="problem-name">
26 27 28 29 30 31 32 33 34 35 36 37
                        %if problem['closed']:
                            ${problem['problem_name']}
                        %else:
                            <a href="#problem" data-location="${problem['location']}" class="problem-button">${problem['problem_name']}</a>
                        %endif
                    </td>
                    <td>
                        % if problem['due']:
                            ${problem['due']}
                        % else:
                            No due date
                        % endif
38 39 40 41 42 43 44 45 46 47
                    </td>
                    <td>
                        ${problem['num_graded']}
                    </td>
                    <td>
                        ${problem['num_pending']}
                    </td>
                    <td>
                        ${problem['num_required']}
                    </td>
48 49 50 51
                    <td>
                        <div class="progress-bar">
                        </div>
                    </td>
52
                </tr>
53
                %endfor
54 55
                </table>
            </div>
56
            %endif
57
        %endif
58 59
    </div>
</section>