Your username and password didn't match. Please try again.
9 | {% endif %}
10 |
11 | {% if next %}
12 | {% if user.is_authenticated %}
13 | Your account doesn't have access to this page. To proceed,
14 | please login with an account that has access.
15 | {% else %}
16 | Please login to see this page.
17 | {% endif %}
18 | {% endif %}
19 |
20 |
27 |
×
28 |
Home
29 | {% if user.is_authenticated %}
30 | {% if request.user|has_group:"student" %}
31 |
Drafts
32 |
Records
33 | {% elif request.user|has_group:"teacher"%}
34 |
Waiting Records
35 |
Search Student
36 | {% endif %}
37 | {% endif %}
38 | {% if request.user.is_superuser %}
39 |
Check_template
40 | {% endif %}
41 |
42 |
43 | {% comment%}
44 | Overlay to help close the sidebar
45 | {% endcomment%}
46 |
49 | {% block content %}
50 |
51 |
52 | {% if user.is_authenticated %}
53 |
54 | Logged in as {{user.username}},
55 | {% if request.user|has_group:"student" %}
56 | you are a student.
57 | {% elif request.user|has_group:"teacher"%}
58 | you are a teacher.
59 | {% endif %}
60 |
61 | Your CID is {{user.profile.cid}}
62 | {% else %}
63 | Chemtrack website is a website for the chemistry department.
64 | Please log in here
65 | {% endif %}
66 |
67 |
68 | {% endblock %}
69 |
70 |
71 |
--------------------------------------------------------------------------------
/chemtrack_app/templates/chemtrack_app/students/see_drafts.html:
--------------------------------------------------------------------------------
1 | {% extends "../../base.html" %}
2 |
3 | {% block content %}
4 |
5 |
61 |
62 |
63 | {% for category in record.record_category_set.all %}
64 |
66 |
67 |
76 |
77 |
78 |
79 |
80 |
{{category.template.name}}
81 | {{category.template.description}}
82 |
83 |
84 | {% for descriptor in category.record_descriptor_set.all %}
85 |
86 |
87 |
{{descriptor.template.name}}
88 | {{descriptor.template.description}}
89 |
90 |
91 |
92 |
Draft
94 |
Feedback
96 |
Final
98 |
99 |
100 | {# Looping through the 3 states of the draft #}
101 |
102 | {% with 'Draft Feedback Final' as list %}
103 | {% for i in list.split %}
104 |
105 | {# Scripts for toggling the descriptors stages #}
106 |
113 |
114 | {# Compute if the user can modify this part of the descriptor #}
115 | {% can_modify record user forloop.counter0 as can_modify_flag %}
116 |
117 |
121 |
122 |
{{i}}
123 |
124 | {% list_levels_generate forloop.counter0 as list_levels %}
125 |
129 | {% for j in list_levels %}
130 |
131 |
135 | {{j}}
136 |
137 |
138 | {% if can_modify_flag %}
139 |
171 | {% endif %}
172 | {% endfor %}
173 |
174 |
175 |
176 |
177 |
181 | {% if can_modify_flag %}
182 |
212 | {% endif %}
213 |
214 | {% endfor %}
215 | {% endwith %}
216 |
217 |
218 | {% endfor %}
219 |
220 |
221 | {% endfor %}
222 |
223 |
224 |
225 | {% endblock %}
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.