You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
910 B
20 lines
910 B
<html>
|
|
<body>
|
|
<form action="{% url 'change_profile' %}" method="POST">
|
|
{% csrf_token %}
|
|
<fieldset>
|
|
<legend><h1>Profile</h1></legend>
|
|
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
|
|
<label for="name">Name</label><br>
|
|
<input name="name" id="name" value="{{ person.name }}"><br/>
|
|
<label for="role">Role</label><br>
|
|
<select name="role" id="role">
|
|
<option value="Student" {% if person.role == 'Student' %}selected{% endif %}>Student</option>
|
|
<option value="Teacher" {% if person.role == 'Teacher' %}selected{% endif %}>Teacher</option>
|
|
</select>
|
|
</fieldset>
|
|
<input type="submit" value="Update">
|
|
</form>
|
|
<a href="{% url 'home' %}">Home</a>
|
|
</body>
|
|
</html> |