Skip to content

Commit

Permalink
django-crispy-forms#118: Changed indentations to reduce git diff
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Jan 2, 2024
1 parent f6d7bcb commit 2c83b51
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions crispy_tailwind/templates/tailwind/layout/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
{% load l10n %}

<div class="relative">
<select class="{% if field.errors %}border border-red-500 {% endif %}{% if field.field.disabled %}bg-gray-100{% else %}bg-white{% endif %} focus:outline-none border border-gray-300 rounded-lg py-2 px-4 block w-full appearance-none leading-normal text-gray-700"
name="{{ field.html_name }}" {{ field.field.widget.attrs|flatatt }}
{% if field.field.disabled %}disabled{% endif %}>
{% for value, label in field.field.choices %}
{% include "tailwind/layout/select_option.html" with value=value label=label %}
{% endfor %}
</select>
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/>
</svg>
</div>
<select class="{% if field.errors %}border border-red-500 {% endif %}{% if field.field.disabled %}bg-gray-100{% else %}bg-white{% endif %} focus:outline-none border border-gray-300 rounded-lg py-2 px-4 block w-full appearance-none leading-normal text-gray-700"
name="{{ field.html_name }}" {{ field.field.widget.attrs|flatatt }}
{% if field.field.disabled %}disabled{% endif %}>
{% for value, label in field.field.choices %}
{% include "tailwind/layout/select_option.html" with value=value label=label %}
{% endfor %}
</select>
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>
</div>
</div>

0 comments on commit 2c83b51

Please sign in to comment.