changed sync to post form (still called send to benchcoach)
This commit is contained in:
@@ -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>
|
||||
|
||||
8
teamsnap/templates/teamsnap/update-button.html
Normal file
8
teamsnap/templates/teamsnap/update-button.html
Normal 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>
|
||||
Reference in New Issue
Block a user