i have a problem understanding the form component in Symfony 2, first I want to customize my form with some bootstrap classes but the problem is I don't know how, because in the twig template there's only these lines
{% extends 'Bundle::layout.html.twig' %}
{% block content -%}
<div class="panel-heading"> <h3>Category</h3></div>
<div class="panel-body">
{{ form(edit_form) }}
<ul class="record_actions">
<li>
<a href="{{ path('category') }}">
Back to the list
</a>
</li>
<li>{{ form(delete_form) }}</li>
</ul>
</div>
{% endblock %}
for instance I want to change the form to something like this using bootstrap
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">Category </div>
<div class="panel-body">
<form class="form-horizontal">
<div class="form-group">
<label for="Name" class="control-label col-xs-2"> CategoryName</label>
<div class="col-xs-6">
<input type="text" class="form-control" required="" id="Name" placeholder="Category name" >
</div>
</div>
<div class="form-group">
<div class="col-xs-offset-2 col-xs-10">
<button type="submit" class="btn btn-primary">Edit</button>
</div>
</div>
</form>
form_div_layout.html.twigin twig you might edit it thereform_functions symfony.com/doc/current/reference/forms/twig_reference.html