~azzar1/unity/add-show-desktop-key

1165.1.8 by William Grant
Start a submission UI in ivle.webapp.submit.
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
      xmlns:py="http://genshi.edgewall.org/">
3
  <head>
4
    <title>Submit project</title>
5
  </head>
6
  <body>
7
    <h1>Submit project</h1>
1165.1.13 by William Grant
Add an initial project selection UI to SubmitView.
8
    <div id="ivle_padding">
1165.1.29 by William Grant
Display a useful message when no offering could be determined.
9
      <py:choose test="offering">
10
        <div py:when="None">
1829 by Matt Giuca
ivle/webapp/submit/submit.html: Rewrote error message when an offering could not be found to submit to. This can have one of several causes, and the old error assumed it was because you weren't in a subject dir. Now enumerates the possible reasons. (LP: #526853)
11
          <p>Error: IVLE could not find a valid offering to submit to, from <span style="font-family: monospace">${path}</span> in
1165.1.29 by William Grant
Display a useful message when no offering could be determined.
12
            <py:choose test="">
13
              <span py:when="principal is req.user">your repository.</span>
14
              <span py:otherwise="">the repository for ${principal.display_name}.</span>
15
            </py:choose>
1829 by Matt Giuca
ivle/webapp/submit/submit.html: Rewrote error message when an offering could not be found to submit to. This can have one of several causes, and the old error assumed it was because you weren't in a subject dir. Now enumerates the possible reasons. (LP: #526853)
16
            This may have one of the following causes:
1165.1.29 by William Grant
Display a useful message when no offering could be determined.
17
          </p>
1829 by Matt Giuca
ivle/webapp/submit/submit.html: Rewrote error message when an offering could not be found to submit to. This can have one of several causes, and the old error assumed it was because you weren't in a subject dir. Now enumerates the possible reasons. (LP: #526853)
18
          <ul>
19
            <li>You are not in a subject directory. You can only submit files from a subject directory. For example, you cannot submit a file from your "<code>stuff</code>" directory.</li>
20
            <li>You are not enrolled in the subject of that name. You can only submit files to a subject you are enrolled in.</li>
21
            <li>You are enrolled in a past (or even future) offering of the subject. You can only submit files to a current offering of a subject.</li>
22
          </ul>
1165.1.29 by William Grant
Display a useful message when no offering could be determined.
23
        </div>
24
        <div py:otherwise="">
25
          <p>You are submitting <span style="font-family: monospace">${path}</span> from
26
            <py:choose test="">
27
              <span py:when="principal is req.user">your repository.</span>
28
              <span py:otherwise="">the repository for ${principal.display_name}.</span>
29
            </py:choose>
30
          </p>
31
          <p>You may submit to any open project in ${offering.subject.name}. Which project do you wish to submit this for?</p>
32
          <form action="" method="post">
1178 by Matt Giuca
submit: Split the synopsis out of the main project line (since it is no longer
33
            <table>
34
              <tr py:for="project in principal.get_projects(offering=offering)"
1515 by Matt Giuca
Submit view: The projects list is now identical (except for radio buttons) to the view on the subjects page. It is much clearer and contains more info. The code is somewhat different, because it's a table, not a list, so I didn't abstract it. Moved a function out of subject.py to ivle.util, as it is shared by both views.
35
                  py:attrs="{'class': 'project closed'} if project.has_deadline_passed(req.user) else {'class': 'project'}">
1178 by Matt Giuca
submit: Split the synopsis out of the main project line (since it is no longer
36
                <td style="vertical-align: top">
1812.1.1 by Matt Giuca
Submit page: No longer disables the radio button for closed projects.
37
                  <input type="radio" name="project" id="project_${project.id}" value="${project.id}" />
1178 by Matt Giuca
submit: Split the synopsis out of the main project line (since it is no longer
38
                </td>
39
                <td>
1515 by Matt Giuca
Submit view: The projects list is now identical (except for radio buttons) to the view on the subjects page. It is much clearer and contains more info. The code is somewhat different, because it's a table, not a list, so I didn't abstract it. Moved a function out of subject.py to ivle.util, as it is shared by both views.
40
                  <label for="project_${project.id}">
41
                    <py:choose test="project.url not in (None, '')">
42
                      <a py:when="True" href="${project.url}">${project.name}</a>
43
                      <span py:otherwise="">${project.name}</span> 
44
                    </py:choose>
45
                    &ndash;
46
                    <span py:content="format_submission_principal(req.user, principal)" /> &ndash;
47
                    <!-- XXX This deadline does not take the student's extensions into account. -->
48
                    <span title="${format_datetime(project.deadline)}">
49
                      ${'closed' if project.has_deadline_passed(req.user) else 'due'} ${format_datetime_short(project.deadline)}
50
                    </span>
51
                    <py:if test="principal is not None"
52
                           py:with="submissions = project.get_submissions_for_principal(principal)">
53
                      &ndash;
54
                      <py:choose test="submissions.count()">
55
                        <span py:when="0">
56
                          not yet submitted
57
                        </span>
58
                        <span py:otherwise=""
59
                              py:with="latest = submissions.last()"
60
                              title="${format_datetime(latest.date_submitted)}">
61
                          last submitted ${format_datetime_short(latest.date_submitted)}
62
                        </span>
63
                      </py:choose>
64
                    </py:if>
65
                    <br />
66
                    ${project.synopsis}
1812.1.1 by Matt Giuca
Submit page: No longer disables the radio button for closed projects.
67
                    <py:if test="project.has_deadline_passed(req.user)"><br />
68
                      <em>Note: The deadline has passed. You may still submit late, but a penalty may be incurred.</em>
69
                    </py:if>
1515 by Matt Giuca
Submit view: The projects list is now identical (except for radio buttons) to the view on the subjects page. It is much clearer and contains more info. The code is somewhat different, because it's a table, not a list, so I didn't abstract it. Moved a function out of subject.py to ivle.util, as it is shared by both views.
70
                  </label>
1178 by Matt Giuca
submit: Split the synopsis out of the main project line (since it is no longer
71
                </td>
72
              </tr>
73
            </table>
1165.1.36 by William Grant
Warn that only committed changes will be submitted.
74
            <p>Ensure that you have committed all changes - only changes in the repository will be submitted.</p>
1812.1.4 by Matt Giuca
Project submission: Changed the warning on submission pages so it no longer says you can't submit after the deadline; it says submission after the deadline may incur a penalty.
75
            <p>You may resubmit a project again at any time, but a new submission will overwrite any made earlier, and submissions after the deadline may incur a penalty.</p>
1562 by Matt Giuca
Removed submission advice from the subjects page, instead linking to the help page (which contained the same text). Also linked to this page from the submit page. Minor tweaks to the text relating to the submission advice. Fixes Launchpad Bug #520284.
76
            <p><input type="submit" value="Submit Project" />
77
              <a class="helpaction" href="/+help/Submitting%20a%20project">Help submitting a project</a>
78
            </p>
1165.1.29 by William Grant
Display a useful message when no offering could be determined.
79
          </form>
80
        </div>
81
      </py:choose>
1165.1.13 by William Grant
Add an initial project selection UI to SubmitView.
82
    </div>
1165.1.8 by William Grant
Start a submission UI in ivle.webapp.submit.
83
  </body>
84
</html>