title: Display symfony form on click
body: <p>I want to make a comment section and I want to have a dynamic reply button, so that after it is clicked, form shows below comment that I want to replay to. I am calling a method with symfony form <code>{{render(controller('BlogBundle:Comment:new',{'blog_id' : BlogPost.id }))}}</code> so It`s always displayed in same place. But when I want to replay to a comment, I want to be able to display the form with button click, can I do that by using the same form that I used for the first task ? because I need to have it hidden by default.</p>
  
  <p>This is controller that I am calling now, for displaying the form</p>
  
  <pre><code>public function newAction($blog_id)
  {
      $comment = new Comment();
      $comment-&gt;setBlog($blog_id);
      $form =  $this-&gt;createForm(CommentType::class, $comment);
  
      return $this-&gt;render('BlogBundle:Default:form.html.twig',array(
          'form' =&gt; $form-&gt;createView(),
          'comment' =&gt; $comment
          ));
  }
  </code></pre>
  
  <p>This is my form </p>
  
  <pre><code>class CommentType extends AbstractType
  {
      /**
       * {@inheritdoc}
       */
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          $builder
          -&gt;add('name')
          -&gt;add('text')
          -&gt;add('send', SubmitType::class, array(
              'attr' =&gt; array('class' =&gt; 'send')));
      }
  }
  </code></pre>
  
  <p>And just for button displaying I am doing this</p>
  
  <pre><code>{% for comment in comments %}
      {{comment.name}} &lt;div id = "buttonDisplayForm"&gt;&lt;button type="button" class="btn btn-primary"&gt;Reply&lt;/button&gt;&lt;/div&gt;
      &lt;p&gt;{{comment.text}}&lt;/p&gt;
  
  {% endfor %}
  </code></pre>
  
  <p>But I need to somehow display form below <code>&lt;p&gt;{{comment.text}}&lt;/p&gt;</code> by clicking on button.</p>