allianceauth/templates/registered/applications.html

74 lines
3.4 KiB
HTML

{% extends "public/base.html" %}
{% load staticfiles %}
{% block title %}Alliance Auth{% endblock %}
{% block page_title %}Something something here{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %}
{% block content %}
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header text-center">Available Applications</h1>
{% if perms.authentication.alliance_member %}
<table class="table table-bordered">
<tr>
<th class="text-center">Application</th>
<th class="text-center">Username</th>
<th class="text-center">Password</th>
<th class="text-center">Action</th>
</tr>
<tr>
<td class="text-center">Forums</td>
<td class="text-center">{{ user.forum_username }}</td>
<td class="text-center">{{ user.forum_password }}</td>
<td class="text-center">
<a href="{% url 'auth_activate_forum' %}">
<button type="button" class="btn btn-success"><span class="glyphicon glyphicon-ok"></span></button>
</a>
<a href="{% url 'auth_activate_forum' %}">
<button type="button" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span></button>
</a>
<a href="{% url 'auth_activate_forum' %}">
<button type="button" class="btn btn-primary"><span class="glyphicon glyphicon-refresh"></span></button>
</a>
</td>
</tr>
<tr>
<td class="text-center">Jabber</td>
<td class="text-center">{{ user.jabber_username }}</td>
<td class="text-center">{{ user.jabber_password }}</td>
<td class="text-center">
<a href="{% url 'auth_activate_jabber' %}">
<button type="button" class="btn btn-success"><span class="glyphicon glyphicon-ok"></span></button>
</a>
<a href="{% url 'auth_activate_jabber' %}">
<button type="button" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span></button>
</a>
<a href="{% url 'auth_activate_jabber' %}">
<button type="button" class="btn btn-primary"><span class="glyphicon glyphicon-refresh"></span></button>
</a>
</td>
<tr>
<td class="text-center">Mumble</td>
<td class="text-center">{{ user.mumble_username }}</td>
<td class="text-center">{{ user.mumble_password }}</td>
<td class="text-center">
<a href="{% url 'auth_activate_mumble' %}">
<button type="button" class="btn btn-success"><span class="glyphicon glyphicon-ok"></span></button>
</a>
<a href="{% url 'auth_activate_mumble' %}">
<button type="button" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span></button>
</a>
<a href="{% url 'auth_activate_mumble' %}">
<button type="button" class="btn btn-primary"><span class="glyphicon glyphicon-refresh"></span></button>
</a>
</td>
</tr>
</table>
{% else %}
<div class="alert alert-danger" role="alert">You are not in the alliance</div>
{% endif %}
</div>
{% endblock content %}