core&ui: new domain_join logic

This commit is contained in:
undefined committed 2025-03-20 17:55:10 +00:00
1 parent 706a9a0928
commit 7fd01715bc
9 files changed
+81 -39

No files matched your search

+17 -2
View File
@@ -5,12 +5,25 @@
<div class="section">
<div class="section__header">
<h1 class="section__title">
{{ _('Join {0}').format(handler.domain['name']) }}
{% if joinSettings %}
{{ _('Join {0}').format(domainInfo['name']) }}
{% else %}
{{ _('You are invited to join {0}').format(domainInfo['name']) }}
{% endif %}
</h1>
</div>
<div class="section__body typo">
<p>{{ _('By clicking the button, you will become a member of the domain {0}.').format(handler.domain['name']) }}</p>
<p>{{ _('By clicking the button, you will become a member of the domain {0}.').format(domainInfo['name']) }}</p>
</div>
<div class="section__body typo">
<p>{{ _('The domain owner:') }}</p>
{{ user.render_inline(domainInfo['owner']) }}
</div>
{% if domainInfo['bulletin'] %}
<div class="section__body typo">
{{ domainInfo['bulletin']|markdown }}
</div>
{% endif %}
<div class="section__body typo">
<form method="post">
{% if joinSettings['method'] == model.domain.JOIN_METHOD_CODE %}
@@ -24,6 +37,8 @@
autofocus:true
}) }}
{% endif %}
<input type="hidden" name="target" value="{{ target }}">
<input type="hidden" name="redirect" value="{{ redirect }}">
<button type="submit" class="primary rounded button">{{ _('Join') }}</button>
</form>
</div>