2019-03-08 13:02:10 +01:00
|
|
|
{% extends "zerver/base.html" %}
|
|
|
|
|
|
|
|
{# User Activity. #}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>Info</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block customhead %}
|
|
|
|
{{ super() }}
|
|
|
|
{{ render_bundle('activity') }}
|
2019-04-19 18:17:41 +02:00
|
|
|
{{ render_bundle('support') }}
|
2019-03-08 13:02:10 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
|
|
|
<br>
|
2019-04-24 14:18:59 +02:00
|
|
|
<form class="new-style">
|
2019-03-08 13:02:10 +01:00
|
|
|
<center>
|
2019-03-20 20:52:47 +01:00
|
|
|
<input type="text" name="q" class="input-xxlarge search-query" placeholder="emails, string_ids, organization urls separated by commas" value="{{ request.GET.get('q', '') }}" autofocus>
|
2019-04-24 14:18:59 +02:00
|
|
|
<button type="submit" class="button small support-search-button">Search</button>
|
2019-03-08 13:02:10 +01:00
|
|
|
</center>
|
|
|
|
</form>
|
|
|
|
|
2019-04-19 15:19:49 +02:00
|
|
|
{% if message %}
|
2019-03-08 13:02:10 +01:00
|
|
|
<div class="alert alert-success">
|
|
|
|
<center>
|
2019-04-19 15:19:49 +02:00
|
|
|
{{ message }}
|
2019-03-08 13:02:10 +01:00
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div id="query-results">
|
|
|
|
{% for user in users %}
|
2019-04-19 18:17:41 +02:00
|
|
|
<div class="support-query-result new-style">
|
2019-03-08 13:02:10 +01:00
|
|
|
<span class="label">user</span>
|
|
|
|
<h3>{{ user.full_name }}</h3>
|
|
|
|
<b>Email</b>: {{ user.email }}<br>
|
|
|
|
<b>Date joined</b>: {{ user.date_joined|timesince }} ago<br>
|
|
|
|
<b>Is active</b>: {{ user.is_active }}<br>
|
|
|
|
<b>Is admin</b>: {{ user.is_realm_admin }}<br>
|
|
|
|
<br>
|
|
|
|
<div>
|
|
|
|
<span class="label">realm</span>
|
|
|
|
<h3><img src="{{ user.realm.realm_icon_url }}" class="support-realm-icon"> {{ user.realm.name }}</h3>
|
|
|
|
<b>URL</b>: <a target="_blank" href="{{ user.realm.uri }}">{{ user.realm.uri }}</a><br>
|
|
|
|
<b>Date created</b>: {{ user.realm.date_created|timesince }} ago<br>
|
|
|
|
<b>Admins</b>: {% for admin in user.realm.admins %}{{ admin.email }} {% endfor %}<br>
|
|
|
|
<form method="POST">
|
2019-04-19 15:19:49 +02:00
|
|
|
<b>Status</b>:<br>
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ user.realm.id }}" />
|
|
|
|
<select name="status">
|
|
|
|
<option value="active" {% if not user.realm.deactivated %}selected{% endif %}>Active</option>
|
2019-05-08 06:05:18 +02:00
|
|
|
<option value="deactivated" {% if user.realm.deactivated %}selected{% endif %}>Deactivated</option>
|
2019-04-19 15:19:49 +02:00
|
|
|
</select>
|
2019-04-24 14:18:59 +02:00
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
2019-04-19 15:19:49 +02:00
|
|
|
</form>
|
|
|
|
<form method="POST" class="support-plan-type-form">
|
2019-03-08 13:02:10 +01:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ user.realm.id }}" />
|
|
|
|
<b>Plan type</b>:<br>
|
|
|
|
<select name="plan_type">
|
|
|
|
<option value="1" {% if user.realm.plan_type == 1 %}selected{% endif %}>Self Hosted</option>
|
|
|
|
<option value="2" {% if user.realm.plan_type == 2 %}selected{% endif %}>Limited</option>
|
|
|
|
<option value="3" {% if user.realm.plan_type == 3 %}selected{% endif %}>Standard</option>
|
|
|
|
<option value="4" {% if user.realm.plan_type == 4 %}selected{% endif %}>Standard Free</option>
|
|
|
|
</select>
|
2019-04-24 14:18:59 +02:00
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
2019-03-08 13:02:10 +01:00
|
|
|
</form>
|
|
|
|
<form method="POST" class="support-discount-form">
|
2019-04-19 15:19:30 +02:00
|
|
|
<b>Discount (use 85 for nonprofits)</b>:<br>
|
2019-03-08 13:02:10 +01:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ user.realm.id }}" />
|
|
|
|
<input type="number" name="discount" value="{{user.realm.default_discount}}" required>
|
2019-04-24 14:18:59 +02:00
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
2019-03-08 13:02:10 +01:00
|
|
|
</form>
|
2019-04-19 18:17:41 +02:00
|
|
|
<form method="POST" class="scrub-realm-form">
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ user.realm.id }}" />
|
|
|
|
<input type="hidden" name="scrub_realm" value="scrub_realm" />
|
2019-05-08 06:09:43 +02:00
|
|
|
<button data-string-id="{{user.realm.string_id}}" class="button rounded btn-danger small scrub-realm-button">Scrub realm (danger)</button>
|
2019-04-19 18:17:41 +02:00
|
|
|
</form>
|
2019-03-08 13:02:10 +01:00
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for realm in realms %}
|
2019-04-19 18:17:41 +02:00
|
|
|
<div class="support-query-result new-style">
|
2019-03-08 13:02:10 +01:00
|
|
|
<span class="label">realm</span>
|
|
|
|
<h3><img src="{{ realm.realm_icon_url }}" class="support-realm-icon"> {{ realm.name }}</h3>
|
|
|
|
<b>URL</b>: <a target="_blank" href="{{ realm.uri }}">{{ realm.uri }}</a><br>
|
|
|
|
<b>Date created</b>: {{ realm.date_created|timesince }} ago<br>
|
|
|
|
<b>Admins</b>: {% for admin in realm.admins %}{{ admin.email }} {% endfor %}<br>
|
|
|
|
<form method="POST">
|
2019-04-19 15:19:49 +02:00
|
|
|
<b>Status</b>:<br>
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="status">
|
|
|
|
<option value="active" {% if not realm.deactivated %}selected{% endif %}>Active</option>
|
2019-05-08 06:05:18 +02:00
|
|
|
<option value="deactivated" {% if realm.deactivated %}selected{% endif %}>Deactivated</option>
|
2019-04-19 15:19:49 +02:00
|
|
|
</select>
|
2019-04-24 14:18:59 +02:00
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
2019-04-19 15:19:49 +02:00
|
|
|
</form>
|
|
|
|
<form method="POST" class="support-plan-type-form">
|
|
|
|
<b>Plan type</b>:<br>
|
2019-03-08 13:02:10 +01:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="plan_type">
|
|
|
|
<option value="1" {% if realm.plan_type == 1 %}selected{% endif %}>Self Hosted</option>
|
|
|
|
<option value="2" {% if realm.plan_type == 2 %}selected{% endif %}>Limited</option>
|
|
|
|
<option value="3" {% if realm.plan_type == 3 %}selected{% endif %}>Standard</option>
|
|
|
|
<option value="4" {% if realm.plan_type == 4 %}selected{% endif %}>Standard Free</option>
|
|
|
|
</select>
|
2019-04-24 14:18:59 +02:00
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
2019-03-08 13:02:10 +01:00
|
|
|
</form>
|
|
|
|
<form method="POST" class="support-discount-form">
|
2019-04-19 15:19:30 +02:00
|
|
|
<b>Discount (use 85 for nonprofits)</b>:<br>
|
2019-03-08 13:02:10 +01:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<input type="number" name="discount" value="{{ realm.default_discount}}" required>
|
2019-04-24 14:18:59 +02:00
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
2019-03-08 13:02:10 +01:00
|
|
|
</form>
|
2019-04-19 18:17:41 +02:00
|
|
|
<form method="POST" class="scrub-realm-form">
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<input type="hidden" name="scrub_realm" value="scrub_realm" />
|
2019-05-08 06:09:43 +02:00
|
|
|
<button data-string-id="{{realm.string_id}}" class="button rounded btn-danger small scrub-realm-button">Scrub realm (danger)</button>
|
2019-04-19 18:17:41 +02:00
|
|
|
</form>
|
2019-03-08 13:02:10 +01:00
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|