2019-09-11 13:40:45 +02:00
|
|
|
<span class="label">realm</span>
|
2019-09-13 13:35:28 +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> |
|
|
|
|
<a target="_blank" rel="noopener noreferrer" href="/realm_activity/{{ realm.string_id }}/">activity</a><br>
|
2019-09-11 13:40:45 +02:00
|
|
|
<b>Date created</b>: {{ realm.date_created|timesince }} ago<br>
|
2019-09-13 13:35:28 +02:00
|
|
|
<b>Admins</b>: {{ realm_admin_emails(realm) }}
|
2019-09-18 15:04:36 +02:00
|
|
|
<a title="Copy emails" class="copy-button" data-copytext="{{ realm_admin_emails(realm) }}">
|
2019-09-11 13:40:45 +02:00
|
|
|
<i class="fa fa-copy"></i>
|
|
|
|
</a>
|
|
|
|
<form method="POST">
|
|
|
|
<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>
|
|
|
|
<option value="deactivated" {% if realm.deactivated %}selected{% endif %}>Deactivated</option>
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
|
|
|
</form>
|
2020-11-17 19:18:22 +01:00
|
|
|
<form method="POST">
|
|
|
|
<b>New subdomain</b>:<br>
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<input type="text" name="new_subdomain" required>
|
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
|
|
|
</form>
|
2019-09-11 13:40:45 +02:00
|
|
|
<form method="POST" class="support-plan-type-form">
|
|
|
|
<b>Plan type</b>:<br>
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="plan_type">
|
2020-10-23 02:43:28 +02: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>
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
|
|
|
</form>
|
2020-06-09 12:24:32 +02:00
|
|
|
<form method="POST" class="sponsorship-pending-form">
|
|
|
|
<b>Sponsorship pending</b>:<br>
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="sponsorship_pending">
|
|
|
|
<option value="true" {% if realm.customer and realm.customer.sponsorship_pending %}selected{% endif %}>Yes</option>
|
|
|
|
<option value="false" {% if not realm.customer or not realm.customer.sponsorship_pending %}selected{% endif %}>No</option>
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
|
|
|
</form>
|
2020-07-17 12:56:06 +02:00
|
|
|
|
|
|
|
{% if realm.customer and realm.customer.sponsorship_pending %}
|
|
|
|
<form method="POST" class="approve-sponsorship-form">
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<input type="hidden" name="approve_sponsorship" value="approve_sponsorship" />
|
|
|
|
<button class="button rounded btn sea-green small approve-sponsorship-button">
|
|
|
|
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">
|
|
|
|
<b>Discount (use 85 for nonprofits)</b>:<br>
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
2020-12-02 15:49:24 +01:00
|
|
|
{% if realm.current_plan and realm.current_plan.fixed_price %}
|
|
|
|
<input type="number" name="discount" value="{{ get_discount_for_realm(realm) }}" disabled>
|
|
|
|
<button type="submit" class="button rounded small support-submit-button" disabled>Update</button>
|
|
|
|
{% else %}
|
2019-09-13 13:35:28 +02:00
|
|
|
<input type="number" name="discount" value="{{ get_discount_for_realm(realm) }}" required>
|
2019-09-11 13:40:45 +02:00
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
2020-12-02 15:49:24 +01:00
|
|
|
{% endif %}
|
2019-09-11 13:40:45 +02:00
|
|
|
</form>
|
2020-07-03 20:21:13 +02:00
|
|
|
{% if realm.current_plan %}
|
|
|
|
<div class="current-plan-details">
|
|
|
|
<h3>📅 Current plan</h3>
|
|
|
|
<b>Name</b>: {{ realm.current_plan.name }}<br>
|
|
|
|
<b>Status</b>: {{realm.current_plan.get_plan_status_as_text()}}<br>
|
|
|
|
<b>Billing schedule</b>: {% if realm.current_plan.billing_schedule == realm.current_plan.ANNUAL %}Annual{% else %}Monthly{% endif %}<br>
|
|
|
|
<b>Licenses</b>: {{ realm.current_plan.licenses_used }}/{{ realm.current_plan.licenses }} ({% if realm.current_plan.automanage_licenses %}Automatic{% else %}Manual{% endif %})<br>
|
|
|
|
{% if realm.current_plan.price_per_license %}
|
|
|
|
<b>Price per license</b>: ${{ realm.current_plan.price_per_license/100 }}<br>
|
|
|
|
{% else %}
|
|
|
|
<b>Fixed price</b>: ${{ realm.current_plan.fixed_price/100 }}<br>
|
|
|
|
{% endif %}
|
|
|
|
<b>Next invoice date</b>: {{ realm.current_plan.next_invoice_date.strftime('%d %B %Y') }}<br>
|
|
|
|
</div>
|
2020-08-13 13:20:18 +02:00
|
|
|
|
2020-08-18 13:48:11 +02:00
|
|
|
<form method="POST" class="billing-method-form">
|
|
|
|
<br>
|
|
|
|
<b>Billing method</b><br>
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="billing_method" class="billing-method-select" required>
|
|
|
|
<option value="charge_automatically" {% if realm.current_plan.charge_automatically %}selected{% endif %}>Charge automatically</option>
|
|
|
|
<option value="send_invoice" {% if not realm.current_plan.charge_automatically %}selected{% endif %}>Pay by invoice</option>
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="button rounded small support-submit-button">Update</button>
|
|
|
|
</form>
|
|
|
|
|
2020-08-13 13:20:18 +02:00
|
|
|
<form method="POST" class="downgrade-plan-form">
|
|
|
|
<br>
|
|
|
|
<b>Downgrade plan</b><br>
|
|
|
|
{{ csrf_input }}
|
|
|
|
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
|
|
|
<select name="downgrade_method" class="downgrade-plan-method-select" required>
|
|
|
|
<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>
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="button rounded small support-submit-button">Downgrade</button>
|
|
|
|
</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 }}" />
|
|
|
|
<input type="hidden" name="scrub_realm" value="scrub_realm" />
|
|
|
|
<button data-string-id="{{realm.string_id}}" class="button rounded btn-danger small scrub-realm-button">Scrub realm (danger)</button>
|
|
|
|
</form>
|