Allow passing different css classes to the form template

This commit is contained in:
Roberto Rosario
2015-01-08 00:43:01 -04:00
parent 57a62bdfc1
commit 58d1a0afa1

View File

@@ -20,9 +20,9 @@
<div class="inner">
{% endif %}
{% if form.is_multipart %}
<form name="{{ form.prefix }}" enctype="multipart/form-data" method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="form">
<form name="{{ form.prefix }}" enctype="multipart/form-data" method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="{{ form_class|default:'form' }}">
{% else %}
<form name="{{ form.prefix }}" method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="form">
<form name="{{ form.prefix }}" method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="{{ form_class|default:'form' }}">
{% endif %}
{{ wizard.management_form }}