31 lines
748 B
HTML
31 lines
748 B
HTML
{% extends "base.html" %}
|
|
|
|
{% load crispy_forms_tags %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">Edit Exchange for User</div>
|
|
<div class="panel-body">
|
|
<p>
|
|
Create a ref for user {{ user }} or choose an existing ref!
|
|
</p>
|
|
|
|
<form method="post" action="{% url "contest:updateRef" user.id %}">
|
|
{% csrf_token %}
|
|
<div class="form-group">
|
|
<label class="control-label" for="id_div_user">User</label>
|
|
<div id="id_div_user" class="controls readonly">{{ user }}</div>
|
|
</div>
|
|
{{ form|crispy }}
|
|
<input type="submit" value="Save">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|