cqtu/templates/contest/updateRef.html

31 lines
886 B
HTML
Raw Normal View History

2017-01-20 14:28:59 +01:00
{% extends "base.html" %}
2017-01-21 00:16:39 +01:00
{% load crispy_forms_tags %}
2017-01-20 14:28:59 +01:00
{% block content %}
<div class="row">
<div class="col-sm-12">
2017-01-21 00:16:39 +01:00
<div class="panel panel-default">
<div class="panel-heading">Edit Exchange for User</div>
<div class="panel-body">
<p>
2017-01-25 01:53:22 +01:00
Create a ref for {% if shadow %}shadow call{% else %}user{% endif %} {{ userobj }} or choose an existing ref!
2017-01-21 00:16:39 +01:00
</p>
2017-01-20 14:28:59 +01:00
2017-01-25 01:53:22 +01:00
<form method="post" action="{% if shadow %}{% url "contest:updateShadowRef" userobj.id %}{% else %}{% url "contest:updateRef" userobj.id %}{% endif %}">
2017-01-21 00:16:39 +01:00
{% csrf_token %}
<div class="form-group">
2017-01-25 01:53:22 +01:00
<label class="control-label" for="id_div_user">Call</label>
<div id="id_div_user" class="controls readonly">{{ userobj }}</div>
2017-01-21 00:16:39 +01:00
</div>
{{ form|crispy }}
<input type="submit" value="Save">
</form>
</div>
</div>
2017-01-20 14:28:59 +01:00
</div>
</div>
{% endblock %}