-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into abog854/master
- Loading branch information
Showing
24 changed files
with
314 additions
and
39 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
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,31 @@ | ||
{% load widget_tweaks %} | ||
{% if field|field_type == "booleanfield" %} | ||
{% if field.errors %} | ||
{{ field|add_class:"btn-check is-invalid" }} | ||
{% else %} | ||
{{ field|add_class:"btn-check" }} | ||
{% endif %} | ||
<label for="id_{{ field.name }}" class="btn btn-outline-light btn-no-hover">{{ field.label }}</label> | ||
{% elif 'choice' in field|field_type %} | ||
{% if field.errors %} | ||
{{ field|add_class:"form-select is-invalid" }} | ||
{% else %} | ||
{{ field|add_class:"form-select" }} | ||
{% endif %} | ||
{% else %} | ||
{% if field.errors %} | ||
{{ field|add_class:"form-control is-invalid" }} | ||
{% else %} | ||
{{ field|add_class:"form-control" }} | ||
{% endif %} | ||
{% endif %} | ||
{% if field.help_text %} | ||
<div class="help-block"> | ||
<small>{{ field.help_text }}</small> | ||
</div> | ||
{% endif %} | ||
{% if field.errors %} | ||
<div class="invalid-feedback"> | ||
{% for error in field.errors %}{{ error }}{% endfor %} | ||
</div> | ||
{% endif %} |
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,11 @@ | ||
{% with id=widget.attrs.id %} | ||
<div {% if id %}id="{{ id }}"{% endif %} class="pill-container"> | ||
{% for group, options, index in widget.optgroups %} | ||
{% for option in options %} | ||
{% if option.value != '' %} | ||
{% include option.template_name with widget=option %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} | ||
</div> | ||
{% endwith %} |
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,3 @@ | ||
{% include "django/forms/widgets/input.html" %} | ||
<label {% if widget.attrs.id %}for="{{ widget.attrs.id }}"{% endif %} | ||
class="btn btn-outline-light btn-no-hover">{{ widget.label }}</label> |
Oops, something went wrong.