From 82386d8630bf5e23cffad3cf3643fcd00835ef50 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Tue, 19 Mar 2013 21:35:02 +0100 Subject: Fix bug #33 : possibilité d'assigner directement la catégorie à un flux lors de son ajout + correction design MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/configureController.php | 3 +++ app/controllers/feedController.php | 2 ++ app/layout/aside_feed.phtml | 21 ++++++++++++++++++++- public/theme/base.css | 16 +++++++++++++--- 4 files changed, 38 insertions(+), 4 deletions(-) diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php index b0fd4a8f9..243c155f9 100755 --- a/app/controllers/configureController.php +++ b/app/controllers/configureController.php @@ -61,6 +61,9 @@ class configureController extends ActionController { } public function feedAction () { + $catDAO = new CategoryDAO (); + $this->view->categories = $catDAO->listCategories (); + $feedDAO = new FeedDAO (); $this->view->feeds = $feedDAO->listFeeds (); diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php index 622adb96f..e16161842 100755 --- a/app/controllers/feedController.php +++ b/app/controllers/feedController.php @@ -15,10 +15,12 @@ class feedController extends ActionController { } else { if (Request::isPost ()) { $url = Request::param ('url_rss'); + $cat = Request::param ('category'); $params = array (); try { $feed = new Feed ($url); + $feed->_category ($cat); $feed->load (); $feedDAO = new FeedDAO (); diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index 71603c8ab..30fa8c994 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -1,9 +1,28 @@ -