You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
1014 B
16 lines
1014 B
{{ myform }}
|
|
{% for field in myform %}
|
|
<div class="form-group">
|
|
|
|
{% if field.html_name == "user" %}
|
|
<input type="hidden" name='user' value="{{user.id}}">
|
|
{% else %}
|
|
{% if field.html_name == "description" %}
|
|
{% else %}
|
|
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
{{field }}
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
<button type="submit" class="btn btn-primary" name="{{ modelname }}Button" onclick="test()">Submit</button> |