38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}
|
|
{{ organization.name }}
|
|
{% endblock title %}
|
|
{% block content %}
|
|
<h1>{{ organization.name }}</h1>
|
|
{% if user.is_authenticated %}
|
|
<form method="post"
|
|
action="{% url 'twitch:subscribe_org_notifications' org_id=organization.id %}">
|
|
{% csrf_token %}
|
|
<div>
|
|
<input type="checkbox"
|
|
id="found"
|
|
name="notify_found"
|
|
{% if subscription and subscription.notify_found %}checked{% endif %} />
|
|
<label for="found">🔔 Get notified as soon as a drop for {{ organization.name }} appears on Twitch.</label>
|
|
</div>
|
|
<div>
|
|
<input type="checkbox"
|
|
id="live"
|
|
name="notify_live"
|
|
{% if subscription and subscription.notify_live %}checked{% endif %} />
|
|
<label for="live">🎮 Get notified when the drop is live and ready to be farmed.</label>
|
|
</div>
|
|
<button type="submit">Save preferences</button>
|
|
</form>
|
|
{% else %}
|
|
Login to subscribe!
|
|
{% endif %}
|
|
<ul>
|
|
{% for game in games %}
|
|
<li>
|
|
<a href="{% url 'twitch:game_detail' pk=game.id %}">{{ game }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<pre><code>{{ org_data }}</code></pre>
|
|
{% endblock content %}
|