.
This commit is contained in:
@@ -17,10 +17,9 @@
|
||||
{% render_table table %}
|
||||
|
||||
<details>
|
||||
<summary>Add new CID users</summary>
|
||||
<button id="add-new-cids">Add New</button>
|
||||
<input type="number" id="add-number" value="number to add">
|
||||
|
||||
<summary><h3>Add/Edit CID users</h3></summary>
|
||||
<button id="add-selected-cids">Add to selected</button>
|
||||
<p>Select exams below to add user to.</p>
|
||||
<div class="exam-selectors">
|
||||
<span>
|
||||
Physics Exams<br/>
|
||||
@@ -67,6 +66,10 @@
|
||||
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<button id="add-new-cids">Add New</button>
|
||||
<input type="number" id="add-number" value="number to add">
|
||||
|
||||
</div>
|
||||
</details>
|
||||
|
||||
@@ -82,7 +85,12 @@
|
||||
url: "{% url 'generic:create_cid_users' %}",
|
||||
data: {
|
||||
csrfmiddlewaretoken: "{{ csrf_token }}",
|
||||
number: $("#add-number").get(0).value
|
||||
number: $("#add-number").get(0).value,
|
||||
physics_exams: $("#physics-exams").val(),
|
||||
rapid_exams: $("#rapid-exams").val(),
|
||||
sbas_exams: $("#sbas-exams").val(),
|
||||
longs_exams: $("#longs-exams").val(),
|
||||
anatomy_exams: $("#anatomy-exams").val(),
|
||||
},
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
|
||||
Reference in New Issue
Block a user