This commit is contained in:
Ross
2021-12-14 18:05:34 +00:00
parent 5fd542534c
commit 0dd585d6e0
5 changed files with 54 additions and 7 deletions
+16
View File
@@ -74,6 +74,16 @@
</span>
</div>
<div>
Groups<br/>
<select id="cid-groups" multiple="multiple">
{% for name, id in cid_user_groups %}
<option value="{{id}}">{{name}}</option>
{% endfor %}
</select>
<button id="add-group">Add Group to users</button>
</div>
<button id="add-new-cids">Add New Users</button>
<input type="number" id="add-number" value="number to add">
@@ -121,6 +131,7 @@
sba_exams: JSON.stringify($("#sbas-exams").val()),
longs_exams: JSON.stringify($("#longs-exams").val()),
anatomy_exams: JSON.stringify($("#anatomy-exams").val()),
cid_groups: JSON.stringify($("#cid-groups").val()),
delete: false,
number_to_create: 0,
activate: false,
@@ -132,6 +143,11 @@
}
$(document).ready(function () {
$("#add-group").click((evt) => {
data = getGenericData();
data["add_group"] = true;
postAjax(data);
});
$("#add-exams-selected-cids").click((evt) => {
data = getGenericData();
data["add_exams"] = true;