changed sync to post form (still called send to benchcoach)

This commit is contained in:
2021-12-30 10:40:30 -06:00
parent 90d72033b4
commit 590069c3b1
5 changed files with 66 additions and 54 deletions

View File

@@ -21,9 +21,10 @@
<td>{{ obj_data.object_count }}</td>
<th>{{ obj_data.counterpart.name }} </th>
<td>{{ obj_data.counterpart.object_count }}</td>
<td><a class="btn btn-primary" href="{% url 'send' object_name=obj_data.counterpart.name %}" role="button">
<i class="bi bi-arrow-clockwise"></i><i class="bi bi-asterisk"></i> Sync
</a></td>
<td>
{% include 'teamsnap/update-button.html' with object_name=obj_data.counterpart.name object_id='' next=request.path %}
</td>
</tr>
{% endfor %}
</ul>

View File

@@ -0,0 +1,8 @@
<form method="post" id="formSync" action="{% url 'send' %}">{% csrf_token %}
<input type="hidden" name="object_name" value="{{ object_name }}">
<input type="hidden" name="object_id" value={{ object_id }}>
<input type="hidden" name="next" value="{{ next }}">
<button type="submit" value="update_event" class="btn btn-sm btn-outline-secondary d-xl-flex align-items-xl-center mx-1">
<i class="bi bi-arrow-clockwise"></i><i class="bi bi-asterisk"></i>
</button>
</form>