new migrations in apps.epic app; new models, urls, views handle the founder of a New Game inviting a friend via email to a game gatekeeper; ea. may drop coin in any of up to 6 avail. slots; FTs & ITs passing
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
{% else %}
|
||||
<span class="slot-gamer">empty</span>
|
||||
{% endif %}
|
||||
{% if slot.slot_number == 1 and request.user == room.owner and slot.status == 'EMPTY' %}
|
||||
{% if slot.status == 'EMPTY' and request.user.is_authenticated and not user_has_slot %}
|
||||
<form method="POST" action="{% url "epic:drop_token" room.id slot.slot_number %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn drop-token-btn btn-primary btn-xl">Drop Token</button>
|
||||
@@ -26,4 +26,11 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if request.user == room.owner %}
|
||||
<form method="POST" action="{% url 'epic:invite_gamer' room.id %}">
|
||||
{% csrf_token %}
|
||||
<input type="email" name="invitee_email" id="id_invite_email" placeholder="friend@example.com">
|
||||
<button type="submit" id="id_invite_btn" class="btn btn-primary btn-xl">Invite</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user