sponsorship: Add wrapper elements above #sponsorship like support page.

This commit is contained in:
Aman Agrawal 2023-11-02 09:09:24 +00:00 committed by Tim Abbott
parent 00df9c6c18
commit e6bb291b8a
1 changed files with 60 additions and 49 deletions

View File

@ -1,55 +1,66 @@
{% extends "zerver/portico_signup.html" %} {% extends "zerver/portico.html" %}
{% set entrypoint = "sponsorship" %}
{% set PAGE_TITLE = "💚 Request sponsorship" %}
{% block portico_content %} {% block portico_content %}
<div class="tab-pane" id="sponsorship"> <div class="register-account flex full-page">
<div id="sponsorship-error" class="alert alert-danger"></div> <div class="center-block new-style">
<div id="sponsorship-input-section"> <div class="pitch">
<form id="sponsorship-form" method="post"> <h1>💚 Request sponsorship</h1>
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" /> </div>
<label> <div id="registration" class="white-box">
<h4>Organization type</h4> <div id="sponsorship-error" class="alert alert-danger"></div>
</label> <div id="sponsorship-input-section">
<select name="organization-type" class="bootstrap-focus-style"> <form id="sponsorship-form" method="post">
{% for org_type in sorted_org_types %} <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
{% if not org_type[1].hidden %} <label>
<option data-string-value="{{ org_type[0] }}" <h4>Organization type</h4>
{% if org_type[1].id == realm_org_type %}selected{% endif %} </label>
value="{{ org_type[1].id }}"> <select name="organization-type" class="bootstrap-focus-style">
{{ _(org_type[1].name) }} {% for org_type in sorted_org_types %}
</option> {% if not org_type[1].hidden %}
{% endif %} <option data-string-value="{{ org_type[0] }}"
{% endfor %} {% if org_type[1].id == realm_org_type %}selected{% endif %}
</select> value="{{ org_type[1].id }}">
<br /> {{ _(org_type[1].name) }}
<label> </option>
<h4>Organization website</h4> {% endif %}
</label> {% endfor %}
<input name="website" type="text" class="input-large" placeholder="{{ _('Leave blank if your organization does not have a website.') }}"/> </select>
<label> <br />
<h4>Describe your organization briefly</h4> <label>
</label> <h4>Organization website</h4>
<textarea name="description" cols="100" rows="5" required></textarea> </label>
<br /> <input name="website" type="text" class="input-large" placeholder="{{ _('Leave blank if your organization does not have a website.') }}"/>
<p id="sponsorship-discount-details"></p> <label>
<!-- Disabled buttons do not fire any events, so we need a container div that isn't disabled for tippyjs to work --> <h4>Describe your organization briefly</h4>
<div class="upgrade-button-container" {% if is_demo_organization %}data-tippy-content="{% trans %}Convert demo organization before upgrading.{% endtrans %}"{% endif %}> </label>
<button type="submit" id="sponsorship-button" class="stripe-button-el invoice-button" {% if is_demo_organization %}disabled{% endif %}> <textarea name="description" cols="100" rows="5" required></textarea>
Submit <br />
</button> <p id="sponsorship-discount-details"></p>
</div> <!-- Disabled buttons do not fire any events, so we need a container div that isn't disabled for tippyjs to work -->
</form> <div class="upgrade-button-container" {% if is_demo_organization %}data-tippy-content="{% trans %}Convert demo organization before upgrading.{% endtrans %}"{% endif %}>
</div> <button type="submit" id="sponsorship-button" class="stripe-button-el invoice-button" {% if is_demo_organization %}disabled{% endif %}>
<div id="sponsorship-loading"> Submit
<div class="zulip-loading-logo"> </button>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12"> </div>
<circle cx="386.56" cy="386.56" r="386.56"/> </form>
<path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/> </div>
</svg> <div id="sponsorship-loading">
<div class="zulip-loading-logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12">
<circle cx="386.56" cy="386.56" r="386.56"/>
<path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/>
</svg>
</div>
<div id="sponsorship_loading_indicator"></div>
</div>
<div id="sponsorship-success" class="alert alert-info">
Request received! The page will now reload.
</div>
</div> </div>
<div id="sponsorship_loading_indicator"></div>
</div>
<div id="sponsorship-success" class="alert alert-info">
Request received! The page will now reload.
</div> </div>
</div> </div>
{% endblock %} {% endblock %}