Improve user creation
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
var users = [];
|
||||
|
||||
$("#users-list").empty();
|
||||
$("#users-list").append(`The following users will be created. "undefined" fields will be left blank. Emails will be used as usernames. Supervisors will be created automatically if required.`);
|
||||
$("#users-list").append(`The following users will be created. "undefined" fields will be left blank. Emails will be used as usernames. Supervisors will be created automatically if required. If an incorrect grade is used the user will not be created.`);
|
||||
|
||||
var emails = [];
|
||||
for (i=0; i<excelRow.length - 1; i++) {
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
{% extends 'generic/base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block content %}
|
||||
<h2>Editing user: {{object.username}}</h2>
|
||||
This form allows you to edit the users name and email address. More details (such as grade / supervisor / etc...) can be changed <a href="{% url 'account_profile_update' object.username %}">here</a>
|
||||
<form method="post">{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<input type="submit" value="Update">
|
||||
</form>
|
||||
<h2>Editing user: {{object.username}}</h2>
|
||||
This form allows you to edit the users name and email address. More details (such as grade / supervisor / etc...) can be changed <a href="{% url 'account_profile_update' object.username %}">here</a>
|
||||
<form method="post">{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<input type="submit" value="Update">
|
||||
</form>
|
||||
|
||||
<details><summary>Delete user </summary>
|
||||
<a href="{% url 'account_delete' object.pk %}">Click to delete user</a>
|
||||
</details>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user