Further user management improvements
This commit is contained in:
@@ -29,14 +29,34 @@
|
||||
<summary>
|
||||
<h3>Add/Edit CID users</h3>
|
||||
</summary>
|
||||
<button id="add-exams-selected-cids">Add selected exams</button>
|
||||
<button id="change-exams-selected-cids">Change selected exams</button>
|
||||
<button id="clear-exams-selected-cids">Clear selected exams</button>
|
||||
<div>
|
||||
Groups<br />
|
||||
<select id="cid-groups">
|
||||
<option value="">----</option>
|
||||
{% for name, id in cid_user_groups %}
|
||||
<option value="{{id}}">{{name}}</option>
|
||||
{% endfor %}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<h4>Edit existing users</h4>
|
||||
<p>Users can be edited using the below buttons once they have been selected in the table. If you need to add a group to a user(s) select it above. Once a CID user is part of a group they can be added to exams via the exam candidate page.</p>
|
||||
<button id="activate-selected-cids">Activate selected</button>
|
||||
<button id="deactivate-selected-cids">Deactivate selected</button>
|
||||
<button id="delete-selected-cids">Delete selected</button>
|
||||
<button id="toggle-internal">Toggle internal</button>
|
||||
<button id="add-group">Add Group to users</button>
|
||||
<h4>Create New Users</h4>
|
||||
<p>New CID users can be created by the two below buttons. If you want to create blank users you can specify the number in the associated box and click the relevant button. If you have a list of email addresses you can enter them in the relevant box and click "Add New Users From Email" and a new user will be created for each user (you do not need to specify the number of users). Ideally you will have already created a <a href="{% url 'generic:cid_group_view' %}">CID user group</a> that you can add to the newly generated users using the above select box.</p>
|
||||
<button id="add-new-cids" title="This will create N new users">Add New (Blank) Users</button>
|
||||
<input type="number" id="add-number" value="number to add" placeholder="Number of new users"><br />
|
||||
<p>or</p>
|
||||
<button id="add-new-emails" title="This will create users from a list of email addresses">Add New Users From Email</button>
|
||||
<textarea id="emails-input" name="emails" rows="4" cols="50" placeholder="Enter emails here (single email per line)"></textarea>
|
||||
|
||||
<details>
|
||||
<summary>Edit CID exams</summary>
|
||||
<p>This should be done via the exams pages one via group management.</p>
|
||||
<p>Select exams below to add user(s) to (or edit existing user(s)).</p>
|
||||
<div class="exam-selectors">
|
||||
<span>
|
||||
@@ -96,21 +116,11 @@
|
||||
|
||||
|
||||
</div>
|
||||
<div>
|
||||
Groups<br />
|
||||
<select id="cid-groups">
|
||||
<option value="">----</option>
|
||||
{% for name, id in cid_user_groups %}
|
||||
<option value="{{id}}">{{name}}</option>
|
||||
{% endfor %}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<h3>Create New Users</h3>
|
||||
<button id="add-new-cids" title="This will create N new users">Add New (Blank) Users</button>
|
||||
<input type="number" id="add-number" value="number to add"><br />
|
||||
<button id="add-new-emails" title="This will create users from a list of email addresses">Add New Users From Email</button>
|
||||
<textarea id="emails-input" name="emails" rows="4" cols="50" placeholder="Enter emails here (single email per line)"></textarea>
|
||||
<button id="add-exams-selected-cids">Add selected exams</button>
|
||||
<button id="change-exams-selected-cids">Change selected exams</button>
|
||||
<button id="clear-exams-selected-cids">Clear selected exams</button>
|
||||
|
||||
</details>
|
||||
</details>
|
||||
|
||||
{% endblock %}
|
||||
@@ -299,6 +309,9 @@
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
#cid-groups {
|
||||
margin: 20px;
|
||||
}
|
||||
.exam-selectors {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user