Files
OpenBench/Templates/OpenBench/profile.html
T
2022-12-02 15:37:41 -05:00

34 lines
1.3 KiB
HTML

{% extends "OpenBench/base.html" %}
{% block content %}
<form method="POST" action="/profile/">
{% csrf_token %}
<!-- Profile information. Everything may be changed but the Username -->
<label>Username</label><input readonly value="{{profile.user.username}}"><br>
<label>Email</label><input value="{{profile.user.email}}" name="email"><br>
<label>Source Repo</label><input value="{{profile.repo}}" name="repo"><br>
<label>New Password</label><input type="password" name="password1"><br>
<label>New Password</label><input type="password" name="password2"><br>
<!-- User's have a default engine. Select the default, otherwise show an empty line -->
<label>Engine</label> <select id="engine" name="engine">
{% for engine in config.engines %}
{% if profile.engine == engine %}
<option selected value="{{engine}}">{{engine}}</option>
{% else %}
<option value="{{engine}}">{{engine}}</option>
{% endif %}
{% endfor %}
{% if not profile.engine %}
<option selected value=""></option>
{% endif %}
</select><br>
<input type="submit" value="Update Profile">
</form>
{% endblock %}