]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/TagController.php
Add RenameForm as tag list view parameters.
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / TagController.php
index 70b273e0168052cb00fab9193ec7cf4b5036c1bd..a041510d0b4777acb99dcd574b35f8c51c9c55bb 100644 (file)
@@ -88,8 +88,14 @@ class TagController extends Controller
         $tags = $this->get('wallabag_core.tag_repository')
             ->findAllFlatTagsWithNbEntries($this->getUser()->getId());
 
+        $renameForms = [];
+        foreach ($tags as $tag) {
+            $renameForms[$tag['id']] = $this->createForm(RenameTagType::class, new Tag())->createView();
+        }
+
         return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [
             'tags' => $tags,
+            'renameForms' => $renameForms,
         ]);
     }