diff --git a/TODO b/TODO
index c7e7495..556051d 100644
--- a/TODO
+++ b/TODO
@@ -1,6 +1,6 @@
-Article
- public
- roles who can access it
+Polls (Entity already exists)
+Groups (Entity already exists)
+Article check if public
UserForumViewed
it should contain records that show the last viewed post in each forum topic
@@ -35,18 +35,6 @@ ForumPost
edit count
text
-Vote
- id
- creator
- created at
- active
- text
- others can add new answers
- answers
- id
- creator
- text
-
Library
id
owner
@@ -58,7 +46,7 @@ Library
borrower returned
commentable
-Program
+Event
id
creator
created at
@@ -68,34 +56,15 @@ Program
start time
end time (may be null)
description
+ location
commentable
-Document
- id
- creator
- created at
- last edited by
- last edited timestamp
- last edit reason
- title
- slug
- text
- group - nullable, onetomany
-
PrivateChatMessage
id
from user
to user
timestamp
-Group
- id
- name
- created by
- creation time
- leader
- members
-
GroupChatMessage
id
from user
diff --git a/app/config/routing.yml b/app/config/routing.yml
index 81455ae..d77dd32 100644
--- a/app/config/routing.yml
+++ b/app/config/routing.yml
@@ -1,16 +1,15 @@
KekRozsakAdminBundle:
- resource: "@KekRozsakAdminBundle/Resources/config/routing.yml"
- prefix: /admin
+ resource: "@KekRozsakAdminBundle/Controller/DefaultController.php"
+ type: annotation
KekRozsakSecurityBundle:
- resource: "@KekRozsakSecurityBundle/Resources/config/routing.yml"
- prefix: /
+ resource: "@KekRozsakSecurityBundle/Controller/DefaultController.php"
+ type: annotation
-KekRozsakFrontBundle:
- resource: "@KekRozsakFrontBundle/Resources/config/routing.yml"
- prefix: /
+KekRozsakFrontBundle_Default:
+ resource: "@KekRozsakFrontBundle/Controller/DefaultController.php"
+ type: annotation
-# Internal routing configuration to handle ESI
-#_internal:
-# resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
-# prefix: /_internal
+KekRozsakFrontBundle_Forum:
+ resource: "@KekRozsakFrontBundle/Controller/ForumController.php"
+ type: annotation
diff --git a/src/KekRozsak/AdminBundle/Controller/DefaultController.php b/src/KekRozsak/AdminBundle/Controller/DefaultController.php
index f75b1eb..31fccad 100644
--- a/src/KekRozsak/AdminBundle/Controller/DefaultController.php
+++ b/src/KekRozsak/AdminBundle/Controller/DefaultController.php
@@ -2,12 +2,23 @@
namespace KekRozsak\AdminBundle\Controller;
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
+/**
+ * @Route("/admin")
+ */
class DefaultController extends Controller
{
- public function manageRegsAction($name)
- {
- return $this->render('KekRozsakAdminBundle:Default:manage_regs.html.twig');
- }
+ /**
+ * @Route("/jelentkezok", name="KekRozsakAdminBundle_manage_reg")
+ */
+ public function manageRegsAction()
+ {
+ $users = $this->getDoctrine()->getEntityManager()->createQuery('SELECT u FROM KekRozsakFrontBundle:User u WHERE u.acceptedBy IS NULL')->getResult();
+
+ return $this->render('KekRozsakAdminBundle:Default:manage_regs.html.twig', array (
+ 'users' => $users,
+ ));
+ }
}
diff --git a/src/KekRozsak/AdminBundle/DependencyInjection/KekRozsakAdminExtension.php b/src/KekRozsak/AdminBundle/DependencyInjection/KekRozsakAdminExtension.php
index 7b2feee..62362ba 100644
--- a/src/KekRozsak/AdminBundle/DependencyInjection/KekRozsakAdminExtension.php
+++ b/src/KekRozsak/AdminBundle/DependencyInjection/KekRozsakAdminExtension.php
@@ -22,7 +22,7 @@ class KekRozsakAdminExtension extends Extension
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
- $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
- $loader->load('services.yml');
+ $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
+ $loader->load('services.xml');
}
}
diff --git a/src/KekRozsak/AdminBundle/Resources/config/services.xml b/src/KekRozsak/AdminBundle/Resources/config/services.xml
new file mode 100644
index 0000000..6800790
--- /dev/null
+++ b/src/KekRozsak/AdminBundle/Resources/config/services.xml
@@ -0,0 +1,4 @@
+
+
+
Felhasználónév | +E-mail cím | +Fórum-név | +Regisztráció ideje | +|
{{ user.username }} | +{{ user.email }} | +{{ user.displayName }} | +{{ user.registeredAt|date('Y-m-d H:i') }} | ++ + | +