forked from Uninett/nav
-
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.
Merge pull request Uninett#3182 from Uninett/uncrispify/add-non-crisp…
…y-checkbox Add non-crispy checkbox
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 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
11 changes: 11 additions & 0 deletions
11
python/nav/web/templates/custom_crispy_templates/form_checkbox.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,11 @@ | ||
<div id="div_{{ field.auto_id }}" class="ctrlHolder{% if field.errors %} error{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}"> | ||
<label for="{{ field.id_for_label }}"> | ||
{{ field.label}}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %} | ||
{{ field }} | ||
</label> | ||
{% for error in field.errors %} | ||
<small id="error_{{ forloop.counter }}_{{ field.auto_id }}" class="errorField"> | ||
{{ error }} | ||
</small> | ||
{% endfor %} | ||
</div> |