-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aldonas pasvortkampajn baskulojn por vidigi kaj kaŝi la tajpitan pasv…
…orton
- Loading branch information
Showing
10 changed files
with
236 additions
and
40 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,21 @@ | ||
{% load i18n %} | ||
|
||
<div class="input-group"> | ||
{% include 'django/forms/widgets/input.html' %} | ||
<div class="input-group-btn password-toggle requires-scripting"> | ||
<button id="{{ widget.attrs.id }}_toggle" class="btn btn-default" type="button" aria-pressed="false" autocomplete="off" | ||
aria-label="{% trans "Show the password. Note that your password will become visible on the screen." %}" | ||
data-aria-label-inactive="{% trans "Hide (mask) the password." %}"> | ||
<span class="fa fa-regular fa-eye small" data-icon-on="fa-eye" data-icon-off="fa-eye-slash" aria-hidden="true"></span> | ||
<span class="password-toggle-text small hidden-xxs" data-label-inactive="{% trans "Hide" %}">{% trans "Show" %}</span> | ||
</button> | ||
</div> | ||
{% comment %} | ||
A no-script fallback is needed because an input-group expectes at least 2 visible elements. | ||
However, we cannot wrap the fallback in the semantically more correct <noscript> because it | ||
breaks Bootstrap's :last-child selectors logic. | ||
{% endcomment %} | ||
<div class="input-group-addon no-scripting-fallback"> | ||
<span class="fa fa-key" aria-hidden="true"></span> | ||
</div> | ||
</div> |
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,5 @@ | ||
from django.forms import widgets as form_widgets | ||
|
||
|
||
class PasswordWithToggleInput(form_widgets.PasswordInput): | ||
template_name = 'ui/widget-password+toggle.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
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 |
---|---|---|
|
@@ -10,5 +10,5 @@ factory-boy==3.2.0 | |
flake8==6.1.0 | ||
isort==5.12.0 | ||
pre-commit==3.3.3 | ||
pyquery==1.4.3 | ||
pyquery==2.0.0 | ||
sqlparse>=0.2.4 |
Oops, something went wrong.