cqtu/templates/contest/updateRef.html

31 lines
886 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 {% if shadow %}shadow call{% else %}user{% endif %} {{ userobj }} or choose an existing ref!
</p>
<form method="post" action="{% if shadow %}{% url "contest:updateShadowRef" userobj.id %}{% else %}{% url "contest:updateRef" userobj.id %}{% endif %}">
{% csrf_token %}
<div class="form-group">
<label class="control-label" for="id_div_user">Call</label>
<div id="id_div_user" class="controls readonly">{{ userobj }}</div>
</div>
{{ form|crispy }}
<input type="submit" value="Save">
</form>
</div>
</div>
</div>
</div>
{% endblock %}