I forgot to leave, as I render the input

                        {% elif field.field.widget.input_type in "file" %}
                            <div class="file-field input-field">
                                {{ field.errors }}
                                <div class="btn">
                                    <span>{{ field.label }}</span>
                                    {{ field }}
                                </div>
                                {% if field.help_text %}
                                    <p class="help">{{ field.help_text|safe 
}}</p>
                                {% endif %}
                            </div>

El viernes, 7 de septiembre de 2018, 16:45:37 (UTC-5), Jorge Cadena 
escribió:
>
> I want to modify or format the html generators by the input type="file".
>
> I want to give it its own style, with the same structure as the html of 
> the input type="file", of the admin
>
>
> but:
>
>
>
> I'm rendering the form, manually, to add materializecss styles
>
>
> https://docs.djangoproject.com/en/2.1/topics/forms/#looping-over-the-form-s-fields
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4eb2727a-4826-42e2-b308-931d9eb9c4ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to