parent
86477e1ea8
commit
20f4c203f0
@ -1,21 +1,21 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
We have the User {{ user }}, create a ref for them or choose an existing ref!
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Edit QSO</div>
|
||||
<div class="panel-body">
|
||||
<form method="post" action="{% url "contest:logEdit" qso.id %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<th>User</th><td>{{ user }}</td>
|
||||
</tr>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
{{ form|crispy }}
|
||||
<input type="submit" value="Save">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -1,22 +1,30 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
We have the User {{ user }}, create a ref for them or choose an existing ref!
|
||||
<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 %}
|
||||
<table>
|
||||
<tr>
|
||||
<th>User</th><td>{{ user }}</td>
|
||||
</tr>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
<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 %}
|
||||
|
||||
|
Loading…
Reference in new issue