-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* * Merge in the start of the invite users code. * * Add the invite user section to documents. * * Add invite users to organizations page. * Cleanup some templates. * Remove the unneeded storages stuff.y * * Add the email template to the project. * Wire in the views to call the correct template. * * Almost got the invite users stuff all wrapped up, still gotta figure out one bug. * * See if this fixes running tests. * * Add the email invites and the password reset views.
- Loading branch information
Showing
53 changed files
with
1,048 additions
and
124 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
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,9 @@ | ||
You have been invited to collaborate! Please click the link below to activate your account with Kala. | ||
{{ application_url }}{% url 'users:password_reset_confirm' uid token %} | ||
|
||
------- | ||
If you did not initiate this action, please contact the Kala admins at the email below. | ||
Do NOT reply to this message as this email address does not accept incoming email. | ||
|
||
Website: https://{{ application_url }} | ||
Email: {{ help_email }}@{{ application_url }} |
9 changes: 9 additions & 0 deletions
9
django_kala/auth/templates/kala/email/invite_organization.txt
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,9 @@ | ||
You have been invited to collaborate! Please click the link below to activate your account with Kala. | ||
{{ application_url }}{% url 'users:password_reset_confirm' uid token %} | ||
|
||
------- | ||
If you did not initiate this action, please contact the Kala admins at the email below. | ||
Do NOT reply to this message as this email address does not accept incoming email. | ||
|
||
Website: https://{{ application_url }} | ||
Email: {{ help_email }}@{{ application_url }} |
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,9 @@ | ||
You have been invited to collaborate! Please click the link below to activate your account with Kala. | ||
{{ application_url }}{% url 'users:password_reset_confirm' uid token %} | ||
|
||
------- | ||
If you did not initiate this action, please contact the Kala admins at the email below. | ||
Do NOT reply to this message as this email address does not accept incoming email. | ||
|
||
Website: https://{{ application_url }} | ||
Email: {{ help_email }}@{{ application_url }} |
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,9 @@ | ||
You have been invited to collaborate! Please click the link below to activate your account with Kala. | ||
{{ application_url }}{% url 'users:password_reset_confirm' uid token %} | ||
|
||
------- | ||
If you did not initiate this action, please contact the Kala admins at the email below. | ||
Do NOT reply to this message as this email address does not accept incoming email. | ||
|
||
Website: https://{{ application_url }} | ||
Email: {{ help_email }}@{{ application_url }} |
108 changes: 108 additions & 0 deletions
108
django_kala/auth/templates/registration/password_reset_complete.html
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,108 @@ | ||
{% load i18n static %} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- Standard Meta --> | ||
<meta charset="utf-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | ||
|
||
<!-- Always Use Same --> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/ui/components/icon.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/ui/components/image.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/ui/components/transition.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/ui/components/checkbox.css" %}"> | ||
<link rel="icon" href="{% static 'images/kala_ico.png' %}" type="image/png"/> | ||
|
||
<!-- | ||
These css files are pre-compiled | ||
to test out gulp | ||
use static.html, run gulp from semantic/, and modify theme.config or variables | ||
!--> | ||
<link rel="stylesheet" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/form.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/accordion.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/checkbox.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/reset.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/site.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/breadcrumb.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/button.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/card.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/container.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/divider.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/dimmer.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/dropdown.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/form.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/grid.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/header.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/input.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/label.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/list.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/menu.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/message.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/modal.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/popup.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/reveal.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/segment.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/table.css" %}"> | ||
|
||
<link rel="stylesheet" type="text/css" href="{% static "css/global.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/layouts/theme.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/layouts/home.css" %}"> | ||
<!-- Site Properties --> | ||
|
||
<!-- JS Includes --> | ||
<script src="{% static "javascript/library/jquery.min.js" %}"></script> | ||
<script src="{% static "css/ui/semantic.min.js" %}"></script> | ||
<script src="{% static "css/ui/components/form.js" %}"></script> | ||
<script src="{% static "css/ui/components/modal.js" %}"></script> | ||
<script src="{% static "css/ui/components/transition.js" %}"></script> | ||
|
||
<style type="text/css"> | ||
body { | ||
background-color: #DADADA; | ||
} | ||
|
||
body > .grid { | ||
height: 100%; | ||
} | ||
|
||
.image { | ||
margin-top: -100px; | ||
} | ||
|
||
.column { | ||
max-width: 450px; | ||
} | ||
</style> | ||
|
||
</head> | ||
<body> | ||
|
||
<div class="ui middle aligned center aligned grid"> | ||
<div class="column"> | ||
<img src="{% static 'images/Kala Logotype.svg' %}" style="flex-grow: 1"> | ||
|
||
|
||
{% block content_title %}<h1>{{ title }}</h1>{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<p>{% trans "Your password has been set. You may go ahead and log in now." %}</p> | ||
|
||
<p><a href="{{ login_url }}">{% trans 'Log in' %}</a></p> | ||
|
||
{% endblock %} | ||
</div> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
124 changes: 124 additions & 0 deletions
124
django_kala/auth/templates/registration/password_reset_confirm.html
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,124 @@ | ||
{% load i18n static %} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- Standard Meta --> | ||
<meta charset="utf-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | ||
|
||
<!-- Always Use Same --> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/ui/components/icon.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/ui/components/image.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/ui/components/transition.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/ui/components/checkbox.css" %}"> | ||
<link rel="icon" href="{% static 'images/kala_ico.png' %}" type="image/png"/> | ||
|
||
<!-- | ||
These css files are pre-compiled | ||
to test out gulp | ||
use static.html, run gulp from semantic/, and modify theme.config or variables | ||
!--> | ||
<link rel="stylesheet" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/form.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/accordion.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/checkbox.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/reset.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/site.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/breadcrumb.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/button.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/card.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/container.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/divider.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/dimmer.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/dropdown.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/form.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/grid.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/header.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/input.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/label.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/list.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/menu.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/message.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/modal.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/popup.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/reveal.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" | ||
href="{% static "css/ui/components/material/segment.css" %}"> | ||
<link class="themable" rel="stylesheet" type="text/css" href="{% static "css/ui/components/material/table.css" %}"> | ||
|
||
<link rel="stylesheet" type="text/css" href="{% static "css/global.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/layouts/theme.css" %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static "css/layouts/home.css" %}"> | ||
<!-- Site Properties --> | ||
|
||
<!-- JS Includes --> | ||
<script src="{% static "javascript/library/jquery.min.js" %}"></script> | ||
<script src="{% static "css/ui/semantic.min.js" %}"></script> | ||
<script src="{% static "css/ui/components/form.js" %}"></script> | ||
<script src="{% static "css/ui/components/modal.js" %}"></script> | ||
<script src="{% static "css/ui/components/transition.js" %}"></script> | ||
|
||
<style type="text/css"> | ||
body { | ||
background-color: #DADADA; | ||
} | ||
|
||
body > .grid { | ||
height: 100%; | ||
} | ||
|
||
.image { | ||
margin-top: -100px; | ||
} | ||
|
||
.column { | ||
max-width: 450px; | ||
} | ||
</style> | ||
|
||
</head> | ||
<body> | ||
|
||
<div class="ui middle aligned center aligned grid"> | ||
<div class="column"> | ||
<img src="{% static 'images/Kala Logotype.svg' %}" style="flex-grow: 1"> | ||
|
||
|
||
{% if validlink %} | ||
|
||
<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p> | ||
|
||
<form class="ui large form {% if form.non_field_errors %}error{% endif %}" method="post">{% csrf_token %} | ||
|
||
<fieldset class="module aligned"> | ||
<div class="form-row field-password1"> | ||
{{ form.new_password1.errors }} | ||
<label for="id_new_password1">{% trans 'New password:' %}</label> | ||
{{ form.new_password1 }} | ||
</div> | ||
<div class="form-row field-password2"> | ||
{{ form.new_password2.errors }} | ||
<label for="id_new_password2">{% trans 'Confirm password:' %}</label> | ||
{{ form.new_password2 }} | ||
</div> | ||
<input class="ui button primary" type="submit" value="{% trans 'Change my password' %}"> | ||
</fieldset> | ||
</form> | ||
{% else %} | ||
|
||
<p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p> | ||
|
||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.