Integrate MAS with Synapse
This commit is contained in:
32
mas/share/templates/form_post.html
Normal file
32
mas/share/templates/form_post.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{#
|
||||
Copyright 2024, 2025 New Vector Ltd.
|
||||
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
Please see LICENSE files in the repository root for full details.
|
||||
-#}
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<header class="page-heading">
|
||||
<div class="header">
|
||||
<h1 class="title">{{ _("common.loading") }}</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<form method="post" class="flex flex-col"{% if redirect_uri is not none %} action="{{ redirect_uri }}"{% endif %}>
|
||||
{% for key, value in params|items %}
|
||||
<input type="hidden" name="{{ key }}" value="{{ value }}" />
|
||||
{% endfor %}
|
||||
|
||||
<noscript>
|
||||
{# Display a button to submit the form in case JavaScript is disabled #}
|
||||
{{ button.button(text=_("action.continue")) }}
|
||||
</noscript>
|
||||
</form>
|
||||
|
||||
{# Submit the form in JavaScript on the next tick, so that if the browser
|
||||
wants to display the placeholder instead of a blank page, it can #}
|
||||
<script>setTimeout(function() { document.forms[0].submit(); }, 0);</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user