forked from coto/gae-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Included the htmls coto#243 Invite User by email workflow
Added config and description for coto#251 User location based selection of TnC/AGB Implemented coto#258 Ask for password reset after activation; does not lead to activation
- Loading branch information
Sebastiaan van Doorn
committed
Sep 24, 2013
1 parent
ee6f7fe
commit 152ad39
Showing
13 changed files
with
160 additions
and
20 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 |
---|---|---|
@@ -1,16 +1,21 @@ | ||
<p>Hello <strong>{{username}}</strong>,</p> | ||
|
||
<p> | ||
You just have registered in {{ app_name }} as @{{username}}. In order to activate your account, | ||
please verify your email by clicking this link: | ||
You just have registered in {{ app_name }} as @{{username}}. By activating your account you acknowledge to have read | ||
and accepted our terms and conditions as shown at the end of this email. | ||
|
||
|
||
In order to activate your account, please verify your email by clicking the following link: | ||
</p> | ||
|
||
{{confirmation_url}} | ||
{{verification_url}} | ||
|
||
<p> | ||
If you have any question, please do not hesitate to contact us at:</br> | ||
{{support_url}} | ||
</p> | ||
|
||
<p>Sincerely,<br> | ||
{{ app_name }} Team | ||
{{ app_name }} Team | ||
|
||
{% include ['tnc-'+ locale_iso.language + '_'+locale_iso.territory+ '.html', 'tnc.html'] ignore missing %} |
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,16 @@ | ||
<p>Hello <strong>{{email}}</strong>,</p> | ||
|
||
<p> | ||
You just have been invited to {{ app_name }} as @{{username}}. In order to activate your account, | ||
please verify your email by clicking this link: | ||
</p> | ||
|
||
{{confirmation_url}} | ||
|
||
<p> | ||
If you have any question, please do not hesitate to contact us at:</br> | ||
{{support_url}} | ||
</p> | ||
|
||
<p>Sincerely,<br> | ||
{{ app_name }} Team |
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,36 @@ | ||
{% extends base_layout %} | ||
|
||
{% block header_title %} | ||
{% trans %}Invite User{% endtrans %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<form id="form_invite" action="{{ url|safe }}" method="post" class="well form-horizontal"> | ||
<fieldset> | ||
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}"> | ||
{{ macros.field(form.username, label=_("Username"), placeholder=_("Enter a")+" "+_("Username"), class="input-xlarge focused required") }} | ||
{{ macros.field(form.email, label=_("Email"), placeholder=_("Enter their")+" "+_("Email"), class="input-xlarge focused required email", type="email") }} | ||
<div class="form-actions"> | ||
<button type="submit" class="btn btn-primary">{% trans %}Send Invite{% endtrans %}</button> | ||
</div> | ||
</fieldset> | ||
</form> | ||
|
||
{% endblock %} | ||
|
||
{% block mediaJS %} | ||
<script type="text/javascript"> | ||
$().ready(function() { | ||
$("#form_invite").validate({ | ||
submitHandler: function(form) { | ||
form.submit(); | ||
}, | ||
errorPlacement: function(error, element) { | ||
element.parent().parent().addClass("error"); | ||
error.addClass("help-inline").appendTo( element.parent() ); | ||
} | ||
}); | ||
}); | ||
</script> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% extends base_layout %} | ||
|
||
{% block header_title %} | ||
{% trans %}Set your password{% endtrans %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<form id="form_edit_password" action="{{ url|safe }}" method="post" class="well form-horizontal"> | ||
<fieldset> | ||
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}"> | ||
{{ macros.field(form.password, label=_("New Password"), placeholder=_("Enter your")+" "+_("New Password"), class="input-xlarge focused required", type="password") }} | ||
{% if not is_mobile %} | ||
{{ macros.field(form.c_password, label=_("Confirm Password"), placeholder=_("Confirm Password"), class="input-xlarge focused required", type="password") }} | ||
{% endif %} | ||
{{ macros.field(form.name, label=_("Name"), placeholder=_("Enter your")+" "+_("Name"), class="input-xlarge focused") }} | ||
{{ macros.field(form.last_name, label=_("Last Name"), placeholder=_("Enter your")+" "+_("Last Name"), class="input-xlarge focused") }} | ||
{{ macros.field(form.country, label=_("Country")) }} | ||
<div class="form-actions"> | ||
<button type="submit" class="btn btn-primary">{% trans %}Set password{% endtrans %}</button> | ||
</div> | ||
</fieldset> | ||
</form> | ||
|
||
{% endblock %} | ||
|
||
{% block mediaJS %} | ||
<script type="text/javascript"> | ||
$().ready(function() { | ||
$("#form_edit_password").validate({ | ||
submitHandler: function(form) { | ||
form.submit(); | ||
}, | ||
rules: { | ||
password: 'required', | ||
c_password: { | ||
required: true, | ||
equalTo: '#password' | ||
} | ||
}, | ||
errorPlacement: function(error, element) { | ||
element.parent().parent().addClass("error"); | ||
error.addClass("help-inline").appendTo( element.parent() ); | ||
} | ||
}); | ||
$("#password").passStrength({ | ||
shortPassText: '{% trans %}Short Password{% endtrans %}', | ||
badPassText: '{% trans %}Insecure Password{% endtrans %}', | ||
goodPassText: '{% trans %}Good Password{% endtrans %}', | ||
strongPassText: '{% trans %}Secure Password{% endtrans %}' | ||
}); | ||
}); | ||
</script> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Wenn Sie sich auf diese Seite registrieren, bestätigen Sie dass Sie unsere AGB gelesen haben, und sie akzeptieren. | ||
<H2>Das sind die de_DE AGB</H2> |
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,2 @@ | ||
By registering with this website you acknowledge that you have read and accepted the following terms and conditions | ||
<H2>These are the en_US terms and conditions</H2> |
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,2 @@ | ||
By registering with this website you acknowledge that you have read and accepted the following terms and conditions | ||
<H2>These are the default terms and conditions</H2> |