Skip to content

Commit

Permalink
Trazendo cada campo do formulario para estilizar com bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
6abi committed Jun 29, 2021
1 parent ac17d4e commit 9713949
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
<section class="col-8">
<form action="{% url 'minha_consulta' %}" method="post">
{% csrf_token %}
{{ form }}
{% for field in form.visible_fields %}
<div class="form-group">
<label for="{{field.id_for_label}}">{{field.label}}</label>
{{field}}
</div>
{% endfor %}
<input type="submit" value="Ok" class="btn btn-success">
</form>
</section>
Expand Down

0 comments on commit 9713949

Please sign in to comment.