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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/offering.html

  • Committer: Matt Giuca
  • Date: 2010-02-12 05:52:00 UTC
  • Revision ID: matt.giuca@gmail.com-20100212055200-lxsry6l34tc2m21q
doc/man/roles.rst: Update based on Will's feedback. Tutor access to submission repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
           href="${req.publisher.generate(context, OfferingEdit)}">
13
13
           Change details
14
14
        </a>
15
 
        <a py:if="req.user.admin"
16
 
           class="subjectaction"
17
 
           href="${req.publisher.generate(context, OfferingCloneWorksheets)}">
18
 
           Clone worksheets
19
 
        </a>
20
15
        <a py:if="'enrol' in permissions"
21
16
           class="groupaction"
22
 
           href="${req.publisher.generate(context, EnrolmentsView)}">
23
 
          Administer enrolments
 
17
           href="${req.publisher.generate(context, None, ('+enrolments', '+new'))}">
 
18
          Enrol users
24
19
        </a>
25
20
      </div>
26
21
 
38
33
          </p>
39
34
          <py:otherwise>
40
35
            <ul class="paddedlist">
41
 
              <li py:for="project in context.projects.order_by(Project.deadline)"
 
36
              <li py:for="project in context.projects"
42
37
                  py:attrs="{'class': 'project closed'}
43
38
                            if project.has_deadline_passed(req.user)
44
39
                            else {'class': 'project'}"
70
65
                </py:if>
71
66
                <br />
72
67
                ${project.synopsis}
73
 
                <div class="horizontalactions" py:if="'view_project_submissions' in permissions">
74
 
                  <a class="verifyaction" href="${req.publisher.generate(project)}">View submissions</a>
75
 
                  <a py:if="project.project_set.is_group" class="groupaction"
76
 
                     href="${req.publisher.generate(project.project_set, GroupsView)}">Manage groups</a>
77
 
                </div>
78
68
              </li>
79
69
            </ul>
80
 
            <p py:if="context.get_open_projects_for_user(req.user).count() > 0">
81
 
              <a class="helpaction" href="/+help/Submitting%20a%20project">Help submitting a project</a>
82
 
            </p>
 
70
            <py:if test="context.get_open_projects_for_user(req.user).count() > 0">
 
71
              <p>
 
72
                To submit to a project that has not yet closed, use the file
 
73
                browser to navigate to the file or directory that you wish to
 
74
                submit, click &ldquo;More actions...&rdquo;,
 
75
                &ldquo;Submit&rdquo;, and then select the correct project.
 
76
              </p>
 
77
              <p>
 
78
                If the project to which you intend to submit is not listed,
 
79
                ensure that you are in the correct directory, or a subdirectory
 
80
                thereof. For solo projects, you must be inside the subject's
 
81
                &ldquo;mywork&rdquo; directory. For group projects, you must be
 
82
                inside the directory for the assigned group.
 
83
              </p>
 
84
              <p>
 
85
                You may resubmit a project as you wish until the deadline, but
 
86
                a new submission will overwrite any made earlier.
 
87
              </p>
 
88
            </py:if>
83
89
          </py:otherwise>
84
90
        </py:choose>
85
91
 
90
96
        </a>
91
97
      </div>
92
98
 
93
 
      <div py:if="'edit_worksheets' in permissions or len(worksheets) > 0"
 
99
      <div py:if="'edit_worksheets' in permissions or context.worksheets.count() > 0"
94
100
           class="majorsection">
95
101
        <h2>Worksheets</h2>
96
 
        <py:choose test="len(worksheets)">
 
102
        <py:choose test="context.worksheets.count()">
97
103
          <p py:when="0">
98
104
            There are no worksheets for this offering.
99
105
            <a class="addaction" href="${req.publisher.generate(context, None, ('+worksheets', '+new'))}">Create one now</a>
104
110
                <li>
105
111
                  <!-- Can't generate a URL directly to the worksheet, since this is a fake worksheet. -->
106
112
                  <a href="${req.publisher.generate(context)}/+worksheets/${worksheet.id}">${worksheet.name}</a>
107
 
                  <span py:if="not worksheet.published">(unpublished &mdash; not visible to students)</span>
108
113
                  <py:if test="worksheet.assessable">
109
114
                    <ul>
110
115
                      <li class="${worksheet.complete_class}">
121
126
                  Total exercises completed: ${exercises_done}/${exercises_total} (${exercises_pct}%)
122
127
                </li>
123
128
              </ul> 
124
 
              <p py:if="context.show_worksheet_marks">
 
129
              <p>
125
130
                <span style="font-weight: bold;">Mark:</span> ${worksheet_mark}/${worksheet_max_mark}
126
131
              </p>
127
132
            </py:if>
128
 
            <div class="horizontalactions" py:if="'edit_worksheets' in permissions">
 
133
            <span py:if="'edit_worksheets' in permissions">
129
134
              <a class="manageaction" href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}"> Manage worksheets</a>
 
135
              <br />
130
136
              <a class="manageaction" href="/+exercises">Manage exercises</a>
131
 
            </div>
132
 
            <div class="horizontalactions" py:if="'view_worksheet_marks' in permissions">
133
 
              <a class="marksaction" href="${req.publisher.generate(context, None, ('+worksheets', '+marks'))}">View worksheet marks</a>
134
 
            </div>
 
137
            </span>
135
138
          </div>
136
139
        </py:choose>
137
140
      </div>