-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshareInvite.html
39 lines (32 loc) · 1.28 KB
/
shareInvite.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends "index.html" %}
{% block main %}
{% if error %}
<div class="infoBar">{{ error }}</div>
{% else %}
{% ifequal state "1" %}
<div class="infoBar">Do you want to accept this invitation from {{ share.owner.nickname }}? You will be {{ share.roleNamePhrase }} on the story '{{ share.adventure.title }}'.
<table><tr>
<td><form method="GET" action="/shareInvite">
<input type="hidden" name="shareInviteKey" value="{{ share.key }}" />
<input type="hidden" name="response" value="1" />
<input type="submit" value="Accept" onclick="this.form.submit();this.disabled=true"/>
</form></td>
<td><form method="GET" action="/shareInvite">
<input type="hidden" name="shareInviteKey" value="{{ share.key }}" />
<input type="hidden" name="response" value="0" />
<input type="submit" value="Ignore" onclick="this.form.submit();this.disabled=true"/>
</form></td>
</tr></table>
</div>
{% endifequal %}
{% ifequal state "2" %}
<div class="infoBar">Invitation accepted. You are now {{ share.roleNamePhrase }} on the story '{{ share.adventure.title }}'<br><br>
Now that you're a part of this story, you will see it in your <a href="/myStories">My Stories</a> page. From there, you can do more.
</div>
{% endifequal %}
{% endif %}
{% endblock %}
{% block footer %}
{% endblock %}
{% block index %}
{% endblock %}