2019-09-11 13:40:45 +02:00
|
|
|
<span class="label">realm</span>
|
2021-04-21 00:46:14 +02:00
|
|
|
<h3><img src="{{ realm_icon_url(realm) }}" class="support-realm-icon" /> {{ realm.name }}</h3>
|
2020-05-26 05:15:21 +02:00
|
|
|
<b>URL</b>: <a target="_blank" rel="noopener noreferrer" href="{{ realm.uri }}">{{ realm.uri }}</a> |
|
|
|
|
<a target="_blank" rel="noopener noreferrer" href="/stats/realm/{{ realm.string_id }}/">stats</a> |
|
2021-04-21 00:46:14 +02:00
|
|
|
<a target="_blank" rel="noopener noreferrer" href="/realm_activity/{{ realm.string_id }}/">activity</a><br />
|
|
|
|
<b>Date created</b>: {{ realm.date_created|timesince }} ago<br />
|
2021-04-01 17:28:27 +02:00
|
|
|
{% set owner_emails_string = get_realm_owner_emails_as_string(realm) %}
|
|
|
|
<b>Owners</b>: {{ owner_emails_string }}
|
|
|
|
{% if owner_emails_string %}
|
|
|
|
<a title="Copy emails" class="copy-button" data-copytext="{{ owner_emails_string }}">
|
|
|
|
<i class="fa fa-copy"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2021-04-01 17:24:08 +02:00
|
|
|
{% set admin_emails_string = get_realm_admin_emails_as_string(realm) %}
|
|
|
|
<b>Admins</b>: {{ admin_emails_string }}
|
2021-04-01 17:28:27 +02:00
|
|
|
{% if admin_emails_string %}
|
2021-04-01 17:24:08 +02:00
|
|
|
<a title="Copy emails" class="copy-button" data-copytext="{{ admin_emails_string }}">
|
2019-09-11 13:40:45 +02:00
|
|
|
<i class="fa fa-copy"></i>
|
|
|
|
</a>
|
2021-04-01 17:28:27 +02:00
|
|
|
{% endif %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2021-04-16 20:17:48 +02:00
|
|
|
{% set first_human_user = realm.get_first_human_user() %}
|
|
|
|
{% if first_human_user %}
|
|
|
|
<b>First human user</b>: {{ first_human_user.delivery_email }}
|
|
|
|
<a title="Copy emails" class="copy-button" data-copytext="{{ first_human_user.delivery_email }}">
|
|
|
|
<i class="fa fa-copy"></i>
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<b>First human user</b>:
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<form method="POST" class="support-realm-status-form">
|
2021-04-21 00:46:14 +02:00
|
|
|
<b>Status</b>:<br />
|
2019-09-11 13:40:45 +02:00
|
|
|
{{ 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>
|
|
|
|
<option value="deactivated" {% if realm.deactivated %}selected{% endif %}>Deactivated</option>
|
|
|
|
</select>
|
2021-08-05 14:39:38 +02:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
2019-09-11 13:40:45 +02:00
|
|
|
</form>
|
2020-11-17 19:18:22 +01:00
|
|
|
<form method="POST">
|
2021-04-21 00:46:14 +02:00
|
|
|
<b>New subdomain</b>:<br />
|
2020-11-17 19:18:22 +01:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
2021-04-21 00:46:14 +02:00
|
|
|
<input type="text" name="new_subdomain" required />
|
2021-08-05 14:39:38 +02:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
2021-10-07 21:30:54 +02:00
|
|
|
</form>
|
|
|
|
<form method="POST">
|
|
|
|
<b>Org type</b>:<br />
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="org_type" id="org_type">
|
|
|
|
{% for realm_type in sorted_realm_types %}
|
|
|
|
<option value="{{ realm_type.id }}" {% if realm.org_type == realm_type.id %}selected{% endif %}>
|
|
|
|
{{ _(realm_type.name) }}
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
2020-11-17 19:18:22 +01:00
|
|
|
</form>
|
2019-09-11 13:40:45 +02:00
|
|
|
<form method="POST" class="support-plan-type-form">
|
2021-04-21 00:46:14 +02:00
|
|
|
<b>Plan type</b>:<br />
|
2019-09-11 13:40:45 +02:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="plan_type">
|
2022-01-05 03:22:30 +01:00
|
|
|
<option value="1" {% if realm.plan_type == 1 %}selected{% endif %}>Self-hosted</option>
|
2019-09-11 13:40:45 +02:00
|
|
|
<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>
|
2021-09-16 16:05:26 +02:00
|
|
|
<option value="10" {% if realm.plan_type == 10 %}selected{% endif %}>Plus</option>
|
2019-09-11 13:40:45 +02:00
|
|
|
</select>
|
2021-08-05 14:39:38 +02:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
2019-09-11 13:40:45 +02:00
|
|
|
</form>
|
2020-06-09 12:24:32 +02:00
|
|
|
<form method="POST" class="sponsorship-pending-form">
|
2021-04-21 00:46:14 +02:00
|
|
|
<b>Sponsorship pending</b>:<br />
|
2020-06-09 12:24:32 +02:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="sponsorship_pending">
|
2022-06-30 17:36:52 +02:00
|
|
|
<option value="true" {% if plan_data[realm.id].customer and plan_data[realm.id].customer.sponsorship_pending %}selected{% endif %}>Yes</option>
|
|
|
|
<option value="false" {% if not plan_data[realm.id].customer or not plan_data[realm.id].customer.sponsorship_pending %}selected{% endif %}>No</option>
|
2020-06-09 12:24:32 +02:00
|
|
|
</select>
|
2021-08-05 14:39:38 +02:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
2020-06-09 12:24:32 +02:00
|
|
|
</form>
|
2020-07-17 12:56:06 +02:00
|
|
|
|
2022-06-30 17:36:52 +02:00
|
|
|
{% if plan_data[realm.id].customer and plan_data[realm.id].customer.sponsorship_pending %}
|
2020-07-17 12:56:06 +02:00
|
|
|
<form method="POST" class="approve-sponsorship-form">
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
2021-07-29 17:32:18 +02:00
|
|
|
<input type="hidden" name="approve_sponsorship" value="true" />
|
2021-08-05 14:39:38 +02:00
|
|
|
<button class="btn btn-default sea-green small approve-sponsorship-button">
|
2020-07-17 12:56:06 +02:00
|
|
|
Approve full sponsorship
|
|
|
|
</button>
|
|
|
|
(will email organization owners).
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
|
2019-09-11 13:40:45 +02:00
|
|
|
<form method="POST" class="support-discount-form">
|
2021-04-21 00:46:14 +02:00
|
|
|
<b>Discount (use 85 for nonprofits)</b>:<br />
|
2019-09-11 13:40:45 +02:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
2022-06-30 17:36:52 +02:00
|
|
|
{% if plan_data[realm.id].current_plan and plan_data[realm.id].current_plan.fixed_price %}
|
2024-01-04 15:59:36 +01:00
|
|
|
<input type="number" name="discount" value="{{ format_discount(get_discount(plan_data[realm.id].customer)) }}" step="0.01" min="0" max="99.99" disabled />
|
2021-08-05 14:39:38 +02:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button" disabled>Update</button>
|
2020-12-02 15:49:24 +01:00
|
|
|
{% else %}
|
2024-01-04 15:59:36 +01:00
|
|
|
<input type="number" name="discount" value="{{ format_discount(get_discount(plan_data[realm.id].customer)) }}" step="0.01" min="0" max="99.99" required />
|
2021-08-05 14:39:38 +02:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
2020-12-02 15:49:24 +01:00
|
|
|
{% endif %}
|
2019-09-11 13:40:45 +02:00
|
|
|
</form>
|
2023-12-06 18:09:34 +01:00
|
|
|
|
2022-06-30 17:36:52 +02:00
|
|
|
{% if plan_data[realm.id].current_plan %}
|
2020-07-03 20:21:13 +02:00
|
|
|
<div class="current-plan-details">
|
2023-12-06 18:09:34 +01:00
|
|
|
{% with %}
|
|
|
|
{% set plan_data = plan_data[realm.id] %}
|
2023-12-15 17:16:39 +01:00
|
|
|
{% set format_discount = format_discount %}
|
2023-12-18 18:52:19 +01:00
|
|
|
{% set dollar_amount = dollar_amount %}
|
2023-12-06 18:09:34 +01:00
|
|
|
{% include 'analytics/current_plan_details.html' %}
|
|
|
|
{% endwith %}
|
2020-07-03 20:21:13 +02:00
|
|
|
</div>
|
2020-08-13 13:20:18 +02:00
|
|
|
|
2023-12-01 13:19:04 +01:00
|
|
|
<form method="POST" class="billing-modality-form">
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2023-12-01 13:19:04 +01:00
|
|
|
<b>Billing collection method</b><br />
|
2020-08-18 13:48:11 +02:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
2023-12-01 13:19:04 +01:00
|
|
|
<select name="billing_modality" class="billing-modality-select" required>
|
2022-06-30 17:36:52 +02:00
|
|
|
<option value="charge_automatically" {% if plan_data[realm.id].current_plan.charge_automatically %}selected{% endif %}>Charge automatically</option>
|
|
|
|
<option value="send_invoice" {% if not plan_data[realm.id].current_plan.charge_automatically %}selected{% endif %}>Pay by invoice</option>
|
2020-08-18 13:48:11 +02:00
|
|
|
</select>
|
2021-08-05 14:39:38 +02:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Update</button>
|
2020-08-18 13:48:11 +02:00
|
|
|
</form>
|
|
|
|
|
2020-08-13 13:20:18 +02:00
|
|
|
<form method="POST" class="downgrade-plan-form">
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2023-04-11 00:14:41 +02:00
|
|
|
<b>Modify plan</b><br />
|
2020-08-13 13:20:18 +02:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
2023-04-11 00:14:41 +02:00
|
|
|
<select name="modify_plan" class="modify-plan-method-select" required>
|
2020-08-13 13:20:18 +02:00
|
|
|
<option disabled value="" selected>-- select --</option>
|
|
|
|
<option value="downgrade_at_billing_cycle_end">Downgrade at the end of current billing cycle</option>
|
|
|
|
<option value="downgrade_now_without_additional_licenses">Downgrade now without creating additional invoices</option>
|
|
|
|
<option value="downgrade_now_void_open_invoices">Downgrade now and void open invoices</option>
|
2023-12-01 19:45:11 +01:00
|
|
|
<option value="upgrade_plan_tier">Upgrade to the Plus plan</option>
|
2020-08-13 13:20:18 +02:00
|
|
|
</select>
|
2023-04-11 00:14:41 +02:00
|
|
|
<button type="submit" class="btn btn-default support-submit-button">Modify</button>
|
2020-08-13 13:20:18 +02:00
|
|
|
</form>
|
|
|
|
|
2020-07-03 20:21:13 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2019-09-11 13:40:45 +02:00
|
|
|
<form method="POST" class="scrub-realm-form">
|
2020-07-03 20:24:41 +02:00
|
|
|
<h3>❌ Scrub realm</h3>
|
2019-09-11 13:40:45 +02:00
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
2021-07-29 17:32:18 +02:00
|
|
|
<input type="hidden" name="scrub_realm" value="true" />
|
2021-08-05 14:39:38 +02:00
|
|
|
<button data-string-id="{{realm.string_id}}" class="btn btn-danger small scrub-realm-button">Scrub realm (danger)</button>
|
2019-09-11 13:40:45 +02:00
|
|
|
</form>
|