Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New page to allow user invites for tenant. Fixes #116
users will be invited via email. If they don't have accounts already such will be created automatically based on their addresses.
- Loading branch information
Showing
8 changed files
with
202 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% load i18n %}{% blocktrans %}Dear tester, | ||
{{ invited_by }} has invited you to join their Kiwi TCMS tenant at | ||
{{ tenant_url }} | ||
|
||
In case you have never logged in before an account was created for you | ||
automatically. You will have to reset your password before you can login!{% endblocktrans %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
{% load static %} | ||
|
||
{% block head %} | ||
{{ form.media }} | ||
{% endblock %} | ||
{% block title %} | ||
{% trans "Invite users" %} | ||
{% endblock %} | ||
|
||
|
||
{% block contents %} | ||
<div class="container-fluid container-cards-pf"> | ||
<form class="form-horizontal" action="{% url 'tcms_tenants:invite-users' %}" method="post"> | ||
{% for i in form.range %} | ||
<div class="form-group"> | ||
<label class="col-md-1 col-lg-1" for="email_{{ i }}">{% trans "Email" %}</label> | ||
<div class="col-sm-4 col-md-4 col-lg-4"> | ||
<input type="text" id="email_{{ i }}" name="email_{{ i }}" class="form-control"> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
<button type="submit" class="btn btn-default btn-lg">{% trans "Save" %}</button> | ||
</form> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters