public function indexAction(Request $request)
    {
        $response = $this->getCacheTimeKeeper()->getResponse('AnimeDbCatalogBundle:Label');
        // response was not modified for this request
        if ($response->isNotModified($request)) {
            return $response;
        }

        /* @var $rep Label */
        $rep = $this->getDoctrine()->getManager()->getRepository('AnimeDbCatalogBundle:Label');

        $form = $this->createForm('settings_labels', ['labels' => $rep->findAll()])
            ->handleRequest($request);
        if ($form->isValid()) {
            $rep->updateListLabels(new ArrayCollection($form->getData()['labels']));

            return $this->redirect($this->generateUrl('label'));
        }

        return $this->render('AnimeDbCatalogBundle:Label:index.html.twig', [
            'form' => $form->createView(),
        ], $response);
    }