-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from tum-gis/release1.1.4
Release 1.1.4
- Loading branch information
Showing
4 changed files
with
54 additions
and
3 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
29 changes: 29 additions & 0 deletions
29
ckanext/grouphierarchy/templates/user/snippets/login_form.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,29 @@ | ||
{# | ||
Renders the login form. | ||
|
||
action - The url that the form should be submitted to. | ||
error_summary - A tuple/list of form errors. | ||
|
||
Example: | ||
|
||
{% snippet "user/snippets/login_form.html", action=g.login_handler, error_summary=error_summary %} | ||
|
||
#} | ||
{% import 'macros/form.html' as form %} | ||
|
||
{% set username_error = true if error_summary %} | ||
{% set password_error = true if error_summary %} | ||
|
||
<form action="{{ action }}" method="post"> | ||
{{ form.errors(errors=error_summary) }} | ||
|
||
{{ form.input('login', label=_("Username"), id='field-login', value="", error=username_error, classes=["control-medium"]) }} | ||
|
||
{{ form.input('password', label=_("Password"), id='field-password', type="password", value="", error=password_error, classes=["control-medium"]) }} | ||
|
||
<div class="form-actions"> | ||
{% block login_button %} | ||
<button class="btn btn-primary" type="submit">{{ _('Login') }}</button> | ||
{% endblock %} | ||
</div> | ||
</form> |