Brak opisu

field_nowrap.html 652B

1234567891011121314151617
  1. {% load crispy_forms_field %}
  2. <div id="div_{{ field.auto_id }}">
  3. {% if field.label %}
  4. <label for="{{ field.id_for_label }}" class="block text-gray-700 text-sm font-bold mb-2">{{ field.label }}</label>
  5. {% endif %}
  6. <div class="relative">
  7. {% crispy_field field 'class' 'bg-white focus:outline-none border border-gray-300 rounded-lg py-2 px-4 block w-full appearance-none leading-normal text-gray-700' %}
  8. </div>
  9. {% if field.errors %}
  10. <div class="text-red-600 text-sm mt-1">{{ field.errors }}</div>
  11. {% endif %}
  12. {% if field.help_text %}
  13. <p class="text-gray-500 text-sm mt-1">{{ field.help_text|safe }}</p>
  14. {% endif %}
  15. </div>