mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-04-05 18:21:47 +00:00
Modified configs so that templates are rendered. Functionality and styling are NOT complete (need to change css framework)
This commit is contained in:
15
assets/templates/helpers/render_field.html
Normal file
15
assets/templates/helpers/render_field.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% load widget_tweaks %}
|
||||
|
||||
<div class="input-field col {{ width|default:'s12' }}">
|
||||
{% if css %}
|
||||
{% render_field field|add_class:css %}
|
||||
{% elif disable_if_filled and field.value %}
|
||||
{% render_field field|attr:'disabled' %}
|
||||
{% elif css and disable_if_filled %}
|
||||
{% render_field field|add_class:css|attr:'disabled' %}
|
||||
{% else %}
|
||||
{{ field }}
|
||||
{% endif %}
|
||||
<label for="{{ field.id_for_label }}">{{ label|default:field.label }}</label>
|
||||
<span class="helper-text" data-error="{{ field.errors.text }}"></span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user