.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
{% for cid in available_cid_users %}
|
||||
|
||||
<li><a href="{% url 'generic:update_cid' cid.pk %}">{{cid.cid}}</a> [{{cid.passcode}}] {{cid.name}} /
|
||||
Email: {{cid.email}} <button class="toggle-btn" data-pk="{{cid.pk}}">Toggle</button>
|
||||
Email: {{cid.email}} <button class="toggle-btn" data-pk="{{cid.pk}}" data-cid="{{cid.cid}}">Toggle</button>
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
+1
-1
@@ -676,7 +676,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
if "edit_cid_user" in request.POST:
|
||||
user_id = request.POST.get("edit_cid_user")
|
||||
|
||||
add = request.POST.get("add")
|
||||
add = request.POST.get("add") == "true"
|
||||
|
||||
print(user_id)
|
||||
print(request.POST)
|
||||
|
||||
Reference in New Issue
Block a user