diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-08-12 10:14:44 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-08-12 10:14:44 +0200 |
commit | 496f21e6faed1d06623221dabb35d1f3ce8fc8c2 (patch) | |
tree | 8920beb5cfac2ffbfe11e1852a9d814338646b33 /src/Wallabag/CoreBundle/Controller | |
parent | 930334cd6d486843b536412391a549815efd038e (diff) | |
parent | 053b9568b2e3d032720d405bc1c2b71eccb36714 (diff) | |
download | wallabag-496f21e6faed1d06623221dabb35d1f3ce8fc8c2.tar.gz wallabag-496f21e6faed1d06623221dabb35d1f3ce8fc8c2.tar.zst wallabag-496f21e6faed1d06623221dabb35d1f3ce8fc8c2.zip |
Merge pull request #1319 from wallabag/v2-form-header
add new post form in material header
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 8894690c..6944a686 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -18,11 +18,11 @@ class EntryController extends Controller | |||
18 | /** | 18 | /** |
19 | * @param Request $request | 19 | * @param Request $request |
20 | * | 20 | * |
21 | * @Route("/new", name="new_entry") | 21 | * @Route("/new-entry", name="new_entry") |
22 | * | 22 | * |
23 | * @return \Symfony\Component\HttpFoundation\Response | 23 | * @return \Symfony\Component\HttpFoundation\Response |
24 | */ | 24 | */ |
25 | public function addEntryAction(Request $request) | 25 | public function addEntryFormAction(Request $request) |
26 | { | 26 | { |
27 | $entry = new Entry($this->getUser()); | 27 | $entry = new Entry($this->getUser()); |
28 | 28 | ||
@@ -48,12 +48,24 @@ class EntryController extends Controller | |||
48 | return $this->redirect($this->generateUrl('homepage')); | 48 | return $this->redirect($this->generateUrl('homepage')); |
49 | } | 49 | } |
50 | 50 | ||
51 | return $this->render('WallabagCoreBundle:Entry:new.html.twig', array( | 51 | return $this->render('WallabagCoreBundle:Entry:new_form.html.twig', array( |
52 | 'form' => $form->createView(), | 52 | 'form' => $form->createView(), |
53 | )); | 53 | )); |
54 | } | 54 | } |
55 | 55 | ||
56 | /** | 56 | /** |
57 | * @param Request $request | ||
58 | * | ||
59 | * @Route("/new", name="new") | ||
60 | * | ||
61 | * @return \Symfony\Component\HttpFoundation\Response | ||
62 | */ | ||
63 | public function addEntryAction(Request $request) | ||
64 | { | ||
65 | return $this->render('WallabagCoreBundle:Entry:new.html.twig'); | ||
66 | } | ||
67 | |||
68 | /** | ||
57 | * Edit an entry content. | 69 | * Edit an entry content. |
58 | * | 70 | * |
59 | * @param Request $request | 71 | * @param Request $request |