Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/.gitignore b/.gitignore
- old mode 100644
- new mode 100755
- index 6ba1033..c0e55f9
- --- a/.gitignore
- +++ b/.gitignore
- @@ -4,4 +4,9 @@
- /app/logs/*
- /vendor/
- /app/config/parameters.ini
- +.buildpath
- +.project
- +.settings/org.eclipse.php.core.prefs
- /.idea
- +/.project
- +/.settings/*
- diff --git a/src/AQS/MprotBundle/Controller/BusinessClassificationsController.php b/src/AQS/MprotBundle/Controller/BusinessClassificationsController.php
- new file mode 100644
- index 0000000..7f96adc
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Controller/BusinessClassificationsController.php
- @@ -0,0 +1,82 @@
- +<?php
- +/**
- + * @author Kshema Vargheese <kvargheese@aetherquest.com>
- + */
- +namespace AQS\MprotBundle\Controller;
- +
- +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- +use Symfony\Component\HttpFoundation\RedirectResponse;
- +use Symfony\Component\HttpFoundation\Request;
- +use AQS\MprotBundle\Entity\BusinessClassification;
- +
- +// these import the "@Route" and "@Template" annotations
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
- +
- +
- +class BusinessClassificationsController extends Controller
- +{
- + /**
- + * @Route("/", name="businessClassifications_index")
- + * @Template()
- + */
- + public function indexAction(Request $request)
- + {
- + $businessClassifications = $this->getDoctrine()->getRepository('AQSMprotBundle:BusinessClassification')->findAll();
- + return array('businessClassifications' => $businessClassifications);
- + }
- +
- +
- + /**
- + * @Route("/add", name="businessClassifications_add")
- + * @Template()
- + */
- + public function addAction(Request $request)
- + {
- + $developmentAssistanceKeyword = new BusinessClassification();
- + $form = $this->_getForm($developmentAssistanceKeyword);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->persist($developmentAssistanceKeyword);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Business Classification Added Successfully');
- + return $this->redirect($this->generateUrl('businessClassifications_index'));
- + }
- + }
- + return array('form' => $form->createView());
- + }
- +
- + /**
- + * @Route("/edit/{id}", name="businessClassifications_edit")
- + * @Template()
- + */
- + public function editAction($id, Request $request)
- + {
- + $businessClassification = $this->getDoctrine()->getRepository('AQSMprotBundle:BusinessClassification')->findOneById($id);
- + if (!$businessClassification) {
- + throw $this->createNotFoundException('No Business Classifications Found');
- + }
- + $form = $this->_getForm($businessClassification);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Business Classification Edited Successfully');
- + return $this->redirect($this->generateUrl('businessClassifications_index'));
- + }
- + }
- +
- + return array('form' => $form->createView(), 'businessClassification' => $businessClassification);
- + }
- +
- + protected function _getForm($businessClassification) {
- + $form = $this->createFormBuilder($businessClassification)
- + ->add('classification', 'text', array('label' => 'Classification'))
- + ->add('active', 'checkbox', array('label' => 'Active'))
- + ->getForm();
- + return $form;
- + }
- +}
- diff --git a/src/AQS/MprotBundle/Controller/ContractingOfficersController.php b/src/AQS/MprotBundle/Controller/ContractingOfficersController.php
- new file mode 100644
- index 0000000..7b5809d
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Controller/ContractingOfficersController.php
- @@ -0,0 +1,106 @@
- +<?php
- +/**
- + * @author Kshema Vargheese <kvargheese@aetherquest.com>
- + */
- +namespace AQS\MprotBundle\Controller;
- +
- +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- +use Symfony\Component\HttpFoundation\RedirectResponse;
- +use Symfony\Component\HttpFoundation\Request;
- +use AQS\MprotBundle\Entity\ContractingOfficer;
- +
- +// these import the "@Route" and "@Template" annotations
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
- +
- +
- +class ContractingOfficersController extends Controller
- +{
- + /**
- + * @Route("/", name="contractingOfficers_index")
- + * @Template()
- + */
- + public function indexAction(Request $request)
- + {
- + $contractingOfficers = $this->getDoctrine()->getRepository('AQSMprotBundle:ContractingOfficer')->findAll();
- + return array('contractingOfficers' => $contractingOfficers);
- + }
- +
- +
- + /**
- + * @Route("/add", name="contractingOfficers_add")
- + * @Template()
- + */
- + public function addAction(Request $request)
- + {
- + $contractingOfficer = new contractingOfficer();
- + $form = $this->_getForm($contractingOfficer);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->persist($contractingOfficer);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Contracting Officer Added Successfully');
- + return $this->redirect($this->generateUrl('contractingOfficers_index'));
- + }
- + }
- + return array('form' => $form->createView());
- + }
- +
- + /**
- + * @Route("/edit/{id}", name="contractingOfficers_edit")
- + * @Template()
- + */
- + public function editAction($id, Request $request)
- + {
- + $contractingOfficer = $this->getDoctrine()->getRepository('AQSMprotBundle:ContractingOfficer')->findOneById($id);
- + if (!$contractingOfficer) {
- + throw $this->createNotFoundException('No Contracting Officer Found');
- + }
- + $form = $this->_getForm($contractingOfficer);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Contracting Officer Edited Successfully');
- + return $this->redirect($this->generateUrl('contractingOfficers_index'));
- + }
- + }
- +
- + return array('form' => $form->createView(), 'contractingOfficer' => $contractingOfficer);
- + }
- +
- + /**
- + * @Route("/delete/{id}", name="contractingOfficers_delete")
- + * @Template()
- + */
- + public function deleteAction($id)
- + {
- + $contractingOfficer = $this->getDoctrine()->getRepository('AQSMprotBundle:ContractingOfficer')->findOneById($id);
- + if (!$contractingOfficer) {
- + throw $this->createNotFoundException('No Contracting Officer Found');
- + } else {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->remove($contractingOfficer);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Contracting Officer Deleted Successfully');
- + return $this->redirect($this->generateUrl('contractingOfficers_index'));
- + }
- +
- + return array();
- + }
- + protected function _getForm($contractingOfficer) {
- + $form = $this->createFormBuilder($contractingOfficer)
- + ->add('firstName', 'text', array('label' => 'First Name'))
- + ->add('lastName', 'text', array('label' => 'Last Name'))
- + ->add('office', 'text', array('label' => 'Office'))
- + ->add('title', 'text', array('label' => 'Business Title'))
- + ->add('phone', 'text', array('label' => 'Phone'))
- + ->add('email', 'email', array('label' => 'Email'))
- + ->add('status', 'checkbox', array('label' => 'Status'))
- + ->getForm();
- + return $form;
- + }
- +}
- diff --git a/src/AQS/MprotBundle/Controller/DevelopmentAssistanceKeywordsController.php b/src/AQS/MprotBundle/Controller/DevelopmentAssistanceKeywordsController.php
- new file mode 100644
- index 0000000..f667e7a
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Controller/DevelopmentAssistanceKeywordsController.php
- @@ -0,0 +1,82 @@
- +<?php
- +/**
- + * @author Kshema Vargheese <kvargheese@aetherquest.com>
- + */
- +namespace AQS\MprotBundle\Controller;
- +
- +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- +use Symfony\Component\HttpFoundation\RedirectResponse;
- +use Symfony\Component\HttpFoundation\Request;
- +use AQS\MprotBundle\Entity\DevelopmentAssistanceKeywords;
- +
- +// these import the "@Route" and "@Template" annotations
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
- +
- +
- +class DevelopmentAssistanceKeywordsController extends Controller
- +{
- + /**
- + * @Route("/", name="developmentAssistanceKeywords_index")
- + * @Template()
- + */
- + public function indexAction(Request $request)
- + {
- + $developmentAssistanceKeywords = $this->getDoctrine()->getRepository('AQSMprotBundle:DevelopmentAssistanceKeywords')->findAll();
- + return array('developmentAssistanceKeywords' => $developmentAssistanceKeywords);
- + }
- +
- +
- + /**
- + * @Route("/add", name="developmentAssistanceKeywords_add")
- + * @Template()
- + */
- + public function addAction(Request $request)
- + {
- + $developmentAssistanceKeyword = new DevelopmentAssistanceKeywords();
- + $form = $this->_getForm($developmentAssistanceKeyword);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->persist($developmentAssistanceKeyword);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Development Assistance Keyword Added Successfully');
- + return $this->redirect($this->generateUrl('developmentAssistanceKeywords_index'));
- + }
- + }
- + return array('form' => $form->createView());
- + }
- +
- + /**
- + * @Route("/edit/{id}", name="developmentAssistanceKeywords_edit")
- + * @Template()
- + */
- + public function editAction($id, Request $request)
- + {
- + $developmentAssistanceKeyword = $this->getDoctrine()->getRepository('AQSMprotBundle:DevelopmentAssistanceKeywords')->findOneById($id);
- + if (!$developmentAssistanceKeyword) {
- + throw $this->createNotFoundException('No Development Assistance Keyword Found');
- + }
- + $form = $this->_getForm($developmentAssistanceKeyword);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Development Assistance Keyword Edited Successfully');
- + return $this->redirect($this->generateUrl('developmentAssistanceKeywords_index'));
- + }
- + }
- +
- + return array('form' => $form->createView(), 'developmentAssistanceKeyword' => $developmentAssistanceKeyword);
- + }
- +
- + protected function _getForm($developmentAssistanceKeyword) {
- + $form = $this->createFormBuilder($developmentAssistanceKeyword)
- + ->add('keyword', 'text', array('label' => 'Keyword'))
- + ->add('active', 'checkbox', array('label' => 'Active'))
- + ->getForm();
- + return $form;
- + }
- +}
- diff --git a/src/AQS/MprotBundle/Controller/DocumentTypesController.php b/src/AQS/MprotBundle/Controller/DocumentTypesController.php
- new file mode 100644
- index 0000000..14229e7
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Controller/DocumentTypesController.php
- @@ -0,0 +1,100 @@
- +<?php
- +/**
- + * @author Kshema Vargheese <kvargheese@aetherquest.com>
- + */
- +namespace AQS\MprotBundle\Controller;
- +
- +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- +use Symfony\Component\HttpFoundation\RedirectResponse;
- +use Symfony\Component\HttpFoundation\Request;
- +use AQS\MprotBundle\Entity\DocumentType;
- +
- +// these import the "@Route" and "@Template" annotations
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
- +
- +
- +class DocumentTypesController extends Controller
- +{
- + /**
- + * @Route("/", name="documentTypes_index")
- + * @Template()
- + */
- + public function indexAction(Request $request)
- + {
- + $documentTypes = $this->getDoctrine()->getRepository('AQSMprotBundle:DocumentType')->findAll();
- + return array('documentTypes' => $documentTypes);
- + }
- +
- +
- + /**
- + * @Route("/add", name="documentTypes_add")
- + * @Template()
- + */
- + public function addAction(Request $request)
- + {
- + $documentType = new DocumentType();
- + $form = $this->_getForm($documentType);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->persist($documentType);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Document Type Added Successfully');
- + return $this->redirect($this->generateUrl('documentTypes_index'));
- + }
- + }
- + return array('form' => $form->createView());
- + }
- +
- + /**
- + * @Route("/edit/{id}", name="documentTypes_edit")
- + * @Template()
- + */
- + public function editAction($id, Request $request)
- + {
- + $documentType = $this->getDoctrine()->getRepository('AQSMprotBundle:DocumentType')->findOneById($id);
- + if (!$documentType) {
- + throw $this->createNotFoundException('No Document Type Found');
- + }
- + $form = $this->_getForm($documentType);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Document Type Edited Successfully');
- + return $this->redirect($this->generateUrl('documentTypes_index'));
- + }
- + }
- +
- + return array('form' => $form->createView(), 'documentType' => $documentType);
- + }
- +
- + /**
- + * @Route("/delete/{id}", name="documentTypes_delete")
- + * @Template()
- + */
- + public function deleteAction($id)
- + {
- + $documentType = $this->getDoctrine()->getRepository('AQSMprotBundle:DocumentType')->findOneById($id);
- + if (!$documentType) {
- + throw $this->createNotFoundException('No Document Type Found');
- + } else {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->remove($documentType);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Document Type Deleted Successfully');
- + return $this->redirect($this->generateUrl('documentTypes_index'));
- + }
- +
- + return array();
- + }
- + protected function _getForm($user) {
- + $form = $this->createFormBuilder($user)
- + ->add('documentType', 'text', array('label' => 'Document Type'))
- + ->getForm();
- + return $form;
- + }
- +}
- diff --git a/src/AQS/MprotBundle/Controller/NotificationsController.php b/src/AQS/MprotBundle/Controller/NotificationsController.php
- new file mode 100644
- index 0000000..1da1602
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Controller/NotificationsController.php
- @@ -0,0 +1,104 @@
- +<?php
- +/**
- + * @author Kshema Vargheese <kvargheese@aetherquest.com>
- + */
- +namespace AQS\MprotBundle\Controller;
- +
- +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- +use Symfony\Component\HttpFoundation\RedirectResponse;
- +use Symfony\Component\HttpFoundation\Request;
- +use AQS\MprotBundle\Entity\Notification;
- +
- +// these import the "@Route" and "@Template" annotations
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
- +
- +
- +class NotificationsController extends Controller
- +{
- + /**
- + * @Route("/", name="notifications_index")
- + * @Template()
- + */
- + public function indexAction(Request $request)
- + {
- + $notifications = $this->getDoctrine()->getRepository('AQSMprotBundle:Notification')->findAll();
- + return array('notifications' => $notifications);
- + }
- +
- +
- + /**
- + * @Route("/add", name="notifications_add")
- + * @Template()
- + */
- + public function addAction(Request $request)
- + {
- + $notification = new Notification();
- + $form = $this->_getForm($notification);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->persist($notification);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Notification Added Successfully');
- + return $this->redirect($this->generateUrl('notifications_index'));
- + }
- + }
- + return array('form' => $form->createView());
- + }
- +
- + /**
- + * @Route("/edit/{id}", name="notifications_edit")
- + * @Template()
- + */
- + public function editAction($id, Request $request)
- + {
- + $notification = $this->getDoctrine()->getRepository('AQSMprotBundle:Notification')->findOneById($id);
- + if (!$notification) {
- + throw $this->createNotFoundException('No Notification Found');
- + }
- + $form = $this->_getForm($notification);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Notification Edited Successfully');
- + return $this->redirect($this->generateUrl('notifications_index'));
- + }
- + }
- +
- + return array('form' => $form->createView(), 'notification' => $notification);
- + }
- +
- + /**
- + * @Route("/delete/{id}", name="notifications_delete")
- + * @Template()
- + */
- + public function deleteAction($id)
- + {
- + $notification = $this->getDoctrine()->getRepository('AQSMprotBundle:Notification')->findOneById($id);
- + if (!$notification) {
- + throw $this->createNotFoundException('No Notification Found');
- + } else {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->remove($notification);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'Notification Deleted Successfully');
- + return $this->redirect($this->generateUrl('notifications_index'));
- + }
- +
- + return array();
- + }
- + protected function _getForm($notification) {
- + $form = $this->createFormBuilder($notification)
- + ->add('subject', 'text', array('label' => 'Subject'))
- + ->add('cc', 'text', array('label' => 'CC'))
- + ->add('bcc', 'text', array('label' => 'BCC'))
- + ->add('email', 'email', array('label' => 'Email'))
- + ->add('message', 'textarea', array('label' => 'Message'))
- + ->getForm();
- + return $form;
- + }
- +}
- diff --git a/src/AQS/MprotBundle/Controller/UserController.php b/src/AQS/MprotBundle/Controller/UserController.php
- new file mode 100644
- index 0000000..a3f6581
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Controller/UserController.php
- @@ -0,0 +1,104 @@
- +<?php
- +/**
- + * @author Kshema Vargheese <kvargheese@aetherquest.com>
- + */
- +namespace AQS\MprotBundle\Controller;
- +
- +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- +use Symfony\Component\HttpFoundation\RedirectResponse;
- +use Symfony\Component\HttpFoundation\Request;
- +use AQS\MprotBundle\Entity\User;
- +
- +// these import the "@Route" and "@Template" annotations
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
- +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
- +
- +
- +class UserController extends Controller
- +{
- + /**
- + * @Route("/", name="user_index")
- + * @Template()
- + */
- + public function indexAction(Request $request)
- + {
- + $users = $this->getDoctrine()->getRepository('AQSMprotBundle:User')->findAll();
- + return array('users' => $users);
- + }
- +
- +
- + /**
- + * @Route("/add", name="user_add")
- + * @Template()
- + */
- + public function addAction(Request $request)
- + {
- + $user = new User();
- + $form = $this->_getForm($user);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->persist($user);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'User Added Successfully');
- + return $this->redirect($this->generateUrl('user_index'));
- + }
- + }
- + return array('form' => $form->createView());
- + }
- +
- + /**
- + * @Route("/edit/{id}", name="user_edit")
- + * @Template()
- + */
- + public function editAction($id, Request $request)
- + {
- + $user = $this->getDoctrine()->getRepository('AQSMprotBundle:User')->findOneById($id);
- + if (!$user) {
- + throw $this->createNotFoundException('No User Found');
- + }
- + $form = $this->_getForm($user);
- + if ($request->getMethod() == 'POST') {
- + $form->bindRequest($request);
- + if ($form->isValid()) {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->flush();
- + $this->get('session')->setFlash('success', 'User Edited Successfully');
- + return $this->redirect($this->generateUrl('user_index'));
- + }
- + }
- +
- + return array('form' => $form->createView(), 'user' => $user);
- + }
- +
- + /**
- + * @Route("/delete/{id}", name="user_delete")
- + * @Template()
- + */
- + public function deleteAction($id)
- + {
- + $user = $this->getDoctrine()->getRepository('AQSMprotBundle:User')->findOneById($id);
- + if (!$user) {
- + throw $this->createNotFoundException('No User Found');
- + } else {
- + $em = $this->getDoctrine()->getEntityManager();
- + $em->remove($user);
- + $em->flush();
- + $this->get('session')->setFlash('success', 'User Deleted Successfully');
- + return $this->redirect($this->generateUrl('user_index'));
- + }
- +
- + return array();
- + }
- + protected function _getForm($user) {
- + $form = $this->createFormBuilder($user)
- + ->add('firstName', 'text', array('label' => 'First Name'))
- + ->add('lastName', 'text', array('label' => 'Last Name'))
- + ->add('email', 'email', array('label' => 'Email'))
- + ->add('title', 'text', array('label' => 'Business Title'))
- + ->add('password', 'password', array('label' => 'Password'))
- + ->getForm();
- + return $form;
- + }
- +}
- diff --git a/src/AQS/MprotBundle/Entity/Agreement.php b/src/AQS/MprotBundle/Entity/Agreement.php
- index 11dba03..d9900ab 100644
- --- a/src/AQS/MprotBundle/Entity/Agreement.php
- +++ b/src/AQS/MprotBundle/Entity/Agreement.php
- @@ -43,9 +43,9 @@ class Agreement
- private $original_expiration;
- /**
- - * @var int $agreement_length
- + * @var integer $agreement_length
- *
- - * @ORM\Column(name="agreement_length", type="int")
- + * @ORM\Column(name="agreement_length", type="integer")
- */
- private $agreement_length;
- @@ -57,23 +57,23 @@ class Agreement
- private $intended_results;
- /**
- - * @var int $development_description
- + * @var integer $development_description
- *
- - * @ORM\Column(name="development_description", type="int")
- + * @ORM\Column(name="development_description", type="integer")
- */
- private $development_description;
- /**
- - * @var int $officer
- + * @var integer $officer
- *
- - * @ORM\Column(name="officer", type="int")
- + * @ORM\Column(name="officer", type="integer")
- */
- private $officer;
- /**
- - * @var int $contract_num
- + * @var integer $contract_num
- *
- - * @ORM\Column(name="contract_num", type="int")
- + * @ORM\Column(name="contract_num", type="integer")
- */
- private $contract_num;
- @@ -85,16 +85,16 @@ class Agreement
- private $doe_facility;
- /**
- - * @var int $mentor
- + * @var integer $mentor
- *
- - * @ORM\Column(name="mentor", type="int")
- + * @ORM\Column(name="mentor", type="integer")
- */
- private $mentor;
- /**
- - * @var int $protege
- + * @var integer $protege
- *
- - * @ORM\Column(name="protege", type="int")
- + * @ORM\Column(name="protege", type="integer")
- */
- private $protege;
- @@ -172,9 +172,9 @@ class Agreement
- /**
- * Set agreement_length
- *
- - * @param int $agreementLength
- + * @param integer $agreementLength
- */
- - public function setAgreementLength(\int $agreementLength)
- + public function setAgreementLength(\integer $agreementLength)
- {
- $this->agreement_length = $agreementLength;
- }
- @@ -182,7 +182,7 @@ class Agreement
- /**
- * Get agreement_length
- *
- - * @return int
- + * @return integer
- */
- public function getAgreementLength()
- {
- @@ -212,9 +212,9 @@ class Agreement
- /**
- * Set development_description
- *
- - * @param int $developmentDescription
- + * @param integer $developmentDescription
- */
- - public function setDevelopmentDescription(\int $developmentDescription)
- + public function setDevelopmentDescription(\integer $developmentDescription)
- {
- $this->development_description = $developmentDescription;
- }
- @@ -222,7 +222,7 @@ class Agreement
- /**
- * Get development_description
- *
- - * @return int
- + * @return integer
- */
- public function getDevelopmentDescription()
- {
- @@ -232,9 +232,9 @@ class Agreement
- /**
- * Set officer
- *
- - * @param int $officer
- + * @param integer $officer
- */
- - public function setOfficer(\int $officer)
- + public function setOfficer(\integer $officer)
- {
- $this->officer = $officer;
- }
- @@ -242,7 +242,7 @@ class Agreement
- /**
- * Get officer
- *
- - * @return int
- + * @return integer
- */
- public function getOfficer()
- {
- @@ -252,9 +252,9 @@ class Agreement
- /**
- * Set contract_num
- *
- - * @param int $contractNum
- + * @param integer $contractNum
- */
- - public function setContractNum(\int $contractNum)
- + public function setContractNum(\integer $contractNum)
- {
- $this->contract_num = $contractNum;
- }
- @@ -262,7 +262,7 @@ class Agreement
- /**
- * Get contract_num
- *
- - * @return int
- + * @return integer
- */
- public function getContractNum()
- {
- @@ -292,9 +292,9 @@ class Agreement
- /**
- * Set mentor
- *
- - * @param int $mentor
- + * @param integer $mentor
- */
- - public function setMentor(\int $mentor)
- + public function setMentor(\integer $mentor)
- {
- $this->mentor = $mentor;
- }
- @@ -302,7 +302,7 @@ class Agreement
- /**
- * Get mentor
- *
- - * @return int
- + * @return integer
- */
- public function getMentor()
- {
- @@ -312,9 +312,9 @@ class Agreement
- /**
- * Set protege
- *
- - * @param int $protege
- + * @param integer $protege
- */
- - public function setProtege(\int $protege)
- + public function setProtege(\integer $protege)
- {
- $this->protege = $protege;
- }
- @@ -322,7 +322,7 @@ class Agreement
- /**
- * Get protege
- *
- - * @return int
- + * @return integer
- */
- public function getProtege()
- {
- diff --git a/src/AQS/MprotBundle/Entity/BusinessClassification.php b/src/AQS/MprotBundle/Entity/BusinessClassification.php
- new file mode 100644
- index 0000000..fa47429
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/BusinessClassification.php
- @@ -0,0 +1,92 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\BusinessClassification
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class BusinessClassification
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var string $classification
- + *
- + * @ORM\Column(name="classification", type="string")
- + */
- + private $classification;
- +
- + /**
- + * @var smallint $active
- + *
- + * @ORM\Column(name="active", type="smallint")
- + */
- + private $active;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set classification
- + *
- + * @param string $classification
- + */
- + public function setClassification($classification)
- + {
- + $this->classification = $classification;
- + }
- +
- + /**
- + * Get classification
- + *
- + * @return string
- + */
- + public function getClassification()
- + {
- + return $this->classification;
- + }
- +
- + /**
- + * Set active
- + *
- + * @param smallint $active
- + */
- + public function setActive($active)
- + {
- + $this->active = $active;
- + }
- +
- + /**
- + * Get active
- + *
- + * @return smallint
- + */
- + public function getActive()
- + {
- + if (!is_null($this->active)) {
- + return (bool)$this->active;
- + } else {
- + return $this->active;
- + }
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/ContractingOfficer.php b/src/AQS/MprotBundle/Entity/ContractingOfficer.php
- index 6f44011..e4d538f 100644
- --- a/src/AQS/MprotBundle/Entity/ContractingOfficer.php
- +++ b/src/AQS/MprotBundle/Entity/ContractingOfficer.php
- @@ -43,24 +43,18 @@ class ContractingOfficer
- private $office;
- /**
- - * @var $phone
- + * @var string $phone
- *
- - * @ORM\Column(name="phone", type="")
- + * @ORM\Column(name="phone", type="string", length=255)
- */
- private $phone;
- /**
- - * @var string $string(20)
- - *
- - * @ORM\Column(name="string(20)", type="string")
- - */
- - private $string(20);
- -
- - /**
- * @var smallint $status
- *
- * @ORM\Column(name="status", type="smallint")
- */
- +
- private $status;
- /**
- @@ -78,14 +72,6 @@ class ContractingOfficer
- private $title;
- /**
- - * @var string $password
- - *
- - * @ORM\Column(name="password", type="string", length=255)
- - */
- - private $password;
- -
- -
- - /**
- * Get id
- *
- * @return integer
- @@ -180,21 +166,7 @@ class ContractingOfficer
- *
- * @param string $string(20)
- */
- - public function setString(20)($string(20))
- - {
- - $this->string(20) = $string(20);
- - }
- -
- - /**
- - * Get string(20)
- - *
- - * @return string
- - */
- - public function getString(20)()
- - {
- - return $this->string(20);
- - }
- -
- +
- /**
- * Set status
- *
- @@ -212,7 +184,11 @@ class ContractingOfficer
- */
- public function getStatus()
- {
- - return $this->status;
- + if (!is_null($this->status)) {
- + return (bool)$this->status;
- + } else {
- + return $this->status;
- + }
- }
- /**
- @@ -254,24 +230,4 @@ class ContractingOfficer
- {
- return $this->title;
- }
- -
- - /**
- - * Set password
- - *
- - * @param string $password
- - */
- - public function setPassword($password)
- - {
- - $this->password = $password;
- - }
- -
- - /**
- - * Get password
- - *
- - * @return string
- - */
- - public function getPassword()
- - {
- - return $this->password;
- - }
- }
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/ContractingOfficerLookup.php b/src/AQS/MprotBundle/Entity/ContractingOfficerLookup.php
- new file mode 100644
- index 0000000..91cf5b3
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/ContractingOfficerLookup.php
- @@ -0,0 +1,115 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\ContractingOfficerLookup
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class ContractingOfficerLookup
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var integer $contractingOfficerId
- + *
- + * @ORM\Column(name="contractingOfficerId", type="integer")
- + */
- + private $contractingOfficerId;
- +
- + /**
- + * @var integer $mentorId
- + *
- + * @ORM\Column(name="mentorId", type="integer")
- + */
- + private $mentorId;
- +
- + /**
- + * @var integer $protegeID
- + *
- + * @ORM\Column(name="protegeID", type="integer")
- + */
- + private $protegeID;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set contractingOfficerId
- + *
- + * @param integer $contractingOfficerId
- + */
- + public function setContractingOfficerId($contractingOfficerId)
- + {
- + $this->contractingOfficerId = $contractingOfficerId;
- + }
- +
- + /**
- + * Get contractingOfficerId
- + *
- + * @return integer
- + */
- + public function getContractingOfficerId()
- + {
- + return $this->contractingOfficerId;
- + }
- +
- + /**
- + * Set mentorId
- + *
- + * @param integer $mentorId
- + */
- + public function setMentorId($mentorId)
- + {
- + $this->mentorId = $mentorId;
- + }
- +
- + /**
- + * Get mentorId
- + *
- + * @return integer
- + */
- + public function getMentorId()
- + {
- + return $this->mentorId;
- + }
- +
- + /**
- + * Set protegeID
- + *
- + * @param integer $protegeID
- + */
- + public function setProtegeID($protegeID)
- + {
- + $this->protegeID = $protegeID;
- + }
- +
- + /**
- + * Get protegeID
- + *
- + * @return integer
- + */
- + public function getProtegeID()
- + {
- + return $this->protegeID;
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/DevelopmentAssistanceKeywords.php b/src/AQS/MprotBundle/Entity/DevelopmentAssistanceKeywords.php
- new file mode 100644
- index 0000000..831a396
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/DevelopmentAssistanceKeywords.php
- @@ -0,0 +1,92 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\DevelopmentAssistanceKeywords
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class DevelopmentAssistanceKeywords
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var string $keyword
- + *
- + * @ORM\Column(name="keyword", type="string")
- + */
- + private $keyword;
- +
- + /**
- + * @var smallint $active
- + *
- + * @ORM\Column(name="active", type="smallint")
- + */
- + private $active;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set keyword
- + *
- + * @param string $keyword
- + */
- + public function setKeyword($keyword)
- + {
- + $this->keyword = $keyword;
- + }
- +
- + /**
- + * Get keyword
- + *
- + * @return string
- + */
- + public function getKeyword()
- + {
- + return $this->keyword;
- + }
- +
- + /**
- + * Set active
- + *
- + * @param smallint $active
- + */
- + public function setActive($active)
- + {
- + $this->active = $active;
- + }
- +
- + /**
- + * Get active
- + *
- + * @return smallint
- + */
- + public function getActive()
- + {
- + if (!is_null($this->active)) {
- + return (bool)$this->active;
- + } else {
- + return $this->active;
- + }
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/Document.php b/src/AQS/MprotBundle/Entity/Document.php
- new file mode 100644
- index 0000000..4e12820
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/Document.php
- @@ -0,0 +1,223 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\Document
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class Document
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var string $docTitle
- + *
- + * @ORM\Column(name="docTitle", type="string", length=255)
- + */
- + private $docTitle;
- +
- + /**
- + * @var string $docType
- + *
- + * @ORM\Column(name="docType", type="string", length=50)
- + */
- + private $docType;
- +
- + /**
- + * @var datetime $dateUploaded
- + *
- + * @ORM\Column(name="dateUploaded", type="datetime")
- + */
- + private $dateUploaded;
- +
- + /**
- + * @var string $uploadedBy
- + *
- + * @ORM\Column(name="uploadedBy", type="string", length=50)
- + */
- + private $uploadedBy;
- +
- + /**
- + * @var integer $aggreementID
- + *
- + * @ORM\Column(name="aggreementID", type="integer")
- + */
- + private $aggreementID;
- +
- + /**
- + * @var datetime $created_date
- + *
- + * @ORM\Column(name="created_date", type="datetime")
- + */
- + private $created_date;
- +
- + /**
- + * @var datetime $modified_date
- + *
- + * @ORM\Column(name="modified_date", type="datetime")
- + */
- + private $modified_date;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set docTitle
- + *
- + * @param string $docTitle
- + */
- + public function setDocTitle($docTitle)
- + {
- + $this->docTitle = $docTitle;
- + }
- +
- + /**
- + * Get docTitle
- + *
- + * @return string
- + */
- + public function getDocTitle()
- + {
- + return $this->docTitle;
- + }
- +
- + /**
- + * Set docType
- + *
- + * @param string $docType
- + */
- + public function setDocType($docType)
- + {
- + $this->docType = $docType;
- + }
- +
- + /**
- + * Get docType
- + *
- + * @return string
- + */
- + public function getDocType()
- + {
- + return $this->docType;
- + }
- +
- + /**
- + * Set dateUploaded
- + *
- + * @param datetime $dateUploaded
- + */
- + public function setDateUploaded($dateUploaded)
- + {
- + $this->dateUploaded = $dateUploaded;
- + }
- +
- + /**
- + * Get dateUploaded
- + *
- + * @return datetime
- + */
- + public function getDateUploaded()
- + {
- + return $this->dateUploaded;
- + }
- +
- + /**
- + * Set uploadedBy
- + *
- + * @param string $uploadedBy
- + */
- + public function setUploadedBy($uploadedBy)
- + {
- + $this->uploadedBy = $uploadedBy;
- + }
- +
- + /**
- + * Get uploadedBy
- + *
- + * @return string
- + */
- + public function getUploadedBy()
- + {
- + return $this->uploadedBy;
- + }
- +
- + /**
- + * Set aggreementID
- + *
- + * @param integer $aggreementID
- + */
- + public function setAggreementID($aggreementID)
- + {
- + $this->aggreementID = $aggreementID;
- + }
- +
- + /**
- + * Get aggreementID
- + *
- + * @return integer
- + */
- + public function getAggreementID()
- + {
- + return $this->aggreementID;
- + }
- +
- + /**
- + * Set created_date
- + *
- + * @param datetime $createdDate
- + */
- + public function setCreatedDate($createdDate)
- + {
- + $this->created_date = $createdDate;
- + }
- +
- + /**
- + * Get created_date
- + *
- + * @return datetime
- + */
- + public function getCreatedDate()
- + {
- + return $this->created_date;
- + }
- +
- + /**
- + * Set modified_date
- + *
- + * @param datetime $modifiedDate
- + */
- + public function setModifiedDate($modifiedDate)
- + {
- + $this->modified_date = $modifiedDate;
- + }
- +
- + /**
- + * Get modified_date
- + *
- + * @return datetime
- + */
- + public function getModifiedDate()
- + {
- + return $this->modified_date;
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/DocumentType.php b/src/AQS/MprotBundle/Entity/DocumentType.php
- new file mode 100644
- index 0000000..2b69ebd
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/DocumentType.php
- @@ -0,0 +1,61 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\DocumentType
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class DocumentType
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var string $documentType
- + *
- + * @ORM\Column(name="documentType", type="string")
- + */
- + private $documentType;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set documentType
- + *
- + * @param string $documentType
- + */
- + public function setDocumentType($documentType)
- + {
- + $this->documentType = $documentType;
- + }
- +
- + /**
- + * Get documentType
- + *
- + * @return string
- + */
- + public function getDocumentType()
- + {
- + return $this->documentType;
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/DocumentTypeRepository.php b/src/AQS/MprotBundle/Entity/DocumentTypeRepository.php
- new file mode 100644
- index 0000000..1740ca2
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/DocumentTypeRepository.php
- @@ -0,0 +1,19 @@
- +<?php
- +/**
- + * @author Kshema Vargheese <kvargheese@aetherquest.com>
- + */
- +namespace AQS\MprotBundle\Entity;
- +use Doctrine\ORM\EntityRepository;
- +
- +class DocumentTypeRepository extends EntityRepository
- +{
- + /**
- + * @static
- + * @return AppRepositoryUserRepository
- + */
- + public static function get ()
- + {
- + $em = Registry::getInstance()->get('em');
- + return $em->getRepository('DocumentType');
- + }
- +}
- diff --git a/src/AQS/MprotBundle/Entity/Extension.php b/src/AQS/MprotBundle/Entity/Extension.php
- new file mode 100644
- index 0000000..ccae3ad
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/Extension.php
- @@ -0,0 +1,304 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\Extension
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class Extension
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var datetime $dateRequested
- + *
- + * @ORM\Column(name="dateRequested", type="datetime")
- + */
- + private $dateRequested;
- +
- + /**
- + * @var string $status
- + *
- + * @ORM\Column(name="status", type="string", length=20)
- + */
- + private $status;
- +
- + /**
- + * @var datetime $decisionDate
- + *
- + * @ORM\Column(name="decisionDate", type="datetime")
- + */
- + private $decisionDate;
- +
- + /**
- + * @var datetime $endDate
- + *
- + * @ORM\Column(name="endDate", type="datetime")
- + */
- + private $endDate;
- +
- + /**
- + * @var text $purpose
- + *
- + * @ORM\Column(name="purpose", type="text")
- + */
- + private $purpose;
- +
- + /**
- + * @var integer $requestNumber
- + *
- + * @ORM\Column(name="requestNumber", type="integer")
- + */
- + private $requestNumber;
- +
- + /**
- + * @var text $disapprovedReason
- + *
- + * @ORM\Column(name="disapprovedReason", type="text")
- + */
- + private $disapprovedReason;
- +
- + /**
- + * @var integer $agreementID
- + *
- + * @ORM\Column(name="agreementID", type="integer")
- + */
- + private $agreementID;
- +
- + /**
- + * @var datetime $created_date
- + *
- + * @ORM\Column(name="created_date", type="datetime")
- + */
- + private $created_date;
- +
- + /**
- + * @var datetime $modified_date
- + *
- + * @ORM\Column(name="modified_date", type="datetime")
- + */
- + private $modified_date;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set dateRequested
- + *
- + * @param datetime $dateRequested
- + */
- + public function setDateRequested($dateRequested)
- + {
- + $this->dateRequested = $dateRequested;
- + }
- +
- + /**
- + * Get dateRequested
- + *
- + * @return datetime
- + */
- + public function getDateRequested()
- + {
- + return $this->dateRequested;
- + }
- +
- + /**
- + * Set status
- + *
- + * @param string $status
- + */
- + public function setStatus($status)
- + {
- + $this->status = $status;
- + }
- +
- + /**
- + * Get status
- + *
- + * @return string
- + */
- + public function getStatus()
- + {
- + return $this->status;
- + }
- +
- + /**
- + * Set decisionDate
- + *
- + * @param datetime $decisionDate
- + */
- + public function setDecisionDate($decisionDate)
- + {
- + $this->decisionDate = $decisionDate;
- + }
- +
- + /**
- + * Get decisionDate
- + *
- + * @return datetime
- + */
- + public function getDecisionDate()
- + {
- + return $this->decisionDate;
- + }
- +
- + /**
- + * Set endDate
- + *
- + * @param datetime $endDate
- + */
- + public function setEndDate($endDate)
- + {
- + $this->endDate = $endDate;
- + }
- +
- + /**
- + * Get endDate
- + *
- + * @return datetime
- + */
- + public function getEndDate()
- + {
- + return $this->endDate;
- + }
- +
- + /**
- + * Set purpose
- + *
- + * @param text $purpose
- + */
- + public function setPurpose($purpose)
- + {
- + $this->purpose = $purpose;
- + }
- +
- + /**
- + * Get purpose
- + *
- + * @return text
- + */
- + public function getPurpose()
- + {
- + return $this->purpose;
- + }
- +
- + /**
- + * Set requestNumber
- + *
- + * @param integer $requestNumber
- + */
- + public function setRequestNumber($requestNumber)
- + {
- + $this->requestNumber = $requestNumber;
- + }
- +
- + /**
- + * Get requestNumber
- + *
- + * @return integer
- + */
- + public function getRequestNumber()
- + {
- + return $this->requestNumber;
- + }
- +
- + /**
- + * Set disapprovedReason
- + *
- + * @param text $disapprovedReason
- + */
- + public function setDisapprovedReason($disapprovedReason)
- + {
- + $this->disapprovedReason = $disapprovedReason;
- + }
- +
- + /**
- + * Get disapprovedReason
- + *
- + * @return text
- + */
- + public function getDisapprovedReason()
- + {
- + return $this->disapprovedReason;
- + }
- +
- + /**
- + * Set agreementID
- + *
- + * @param integer $agreementID
- + */
- + public function setAgreementID($agreementID)
- + {
- + $this->agreementID = $agreementID;
- + }
- +
- + /**
- + * Get agreementID
- + *
- + * @return integer
- + */
- + public function getAgreementID()
- + {
- + return $this->agreementID;
- + }
- +
- + /**
- + * Set created_date
- + *
- + * @param datetime $createdDate
- + */
- + public function setCreatedDate($createdDate)
- + {
- + $this->created_date = $createdDate;
- + }
- +
- + /**
- + * Get created_date
- + *
- + * @return datetime
- + */
- + public function getCreatedDate()
- + {
- + return $this->created_date;
- + }
- +
- + /**
- + * Set modified_date
- + *
- + * @param datetime $modifiedDate
- + */
- + public function setModifiedDate($modifiedDate)
- + {
- + $this->modified_date = $modifiedDate;
- + }
- +
- + /**
- + * Get modified_date
- + *
- + * @return datetime
- + */
- + public function getModifiedDate()
- + {
- + return $this->modified_date;
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/Mentor.php b/src/AQS/MprotBundle/Entity/Mentor.php
- new file mode 100644
- index 0000000..2e71662
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/Mentor.php
- @@ -0,0 +1,223 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\Mentor
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class Mentor
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var string $company
- + *
- + * @ORM\Column(name="company", type="string", length=50)
- + */
- + private $company;
- +
- + /**
- + * @var string $firstName
- + *
- + * @ORM\Column(name="firstName", type="string", length=50)
- + */
- + private $firstName;
- +
- + /**
- + * @var string $lastName
- + *
- + * @ORM\Column(name="lastName", type="string", length=50)
- + */
- + private $lastName;
- +
- + /**
- + * @var integer $phone
- + *
- + * @ORM\Column(name="phone", type="integer", length=10)
- + */
- + private $phone;
- +
- + /**
- + * @var string $email
- + *
- + * @ORM\Column(name="email", type="string", length=100)
- + */
- + private $email;
- +
- + /**
- + * @var datetime $created_date
- + *
- + * @ORM\Column(name="created_date", type="datetime")
- + */
- + private $created_date;
- +
- + /**
- + * @var datetime $modified_date
- + *
- + * @ORM\Column(name="modified_date", type="datetime")
- + */
- + private $modified_date;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set company
- + *
- + * @param string $company
- + */
- + public function setCompany($company)
- + {
- + $this->company = $company;
- + }
- +
- + /**
- + * Get company
- + *
- + * @return string
- + */
- + public function getCompany()
- + {
- + return $this->company;
- + }
- +
- + /**
- + * Set firstName
- + *
- + * @param string $firstName
- + */
- + public function setFirstName($firstName)
- + {
- + $this->firstName = $firstName;
- + }
- +
- + /**
- + * Get firstName
- + *
- + * @return string
- + */
- + public function getFirstName()
- + {
- + return $this->firstName;
- + }
- +
- + /**
- + * Set lastName
- + *
- + * @param string $lastName
- + */
- + public function setLastName($lastName)
- + {
- + $this->lastName = $lastName;
- + }
- +
- + /**
- + * Get lastName
- + *
- + * @return string
- + */
- + public function getLastName()
- + {
- + return $this->lastName;
- + }
- +
- + /**
- + * Set phone
- + *
- + * @param integer $phone
- + */
- + public function setPhone($phone)
- + {
- + $this->phone = $phone;
- + }
- +
- + /**
- + * Get phone
- + *
- + * @return integer
- + */
- + public function getPhone()
- + {
- + return $this->phone;
- + }
- +
- + /**
- + * Set email
- + *
- + * @param string $email
- + */
- + public function setEmail($email)
- + {
- + $this->email = $email;
- + }
- +
- + /**
- + * Get email
- + *
- + * @return string
- + */
- + public function getEmail()
- + {
- + return $this->email;
- + }
- +
- + /**
- + * Set created_date
- + *
- + * @param datetime $createdDate
- + */
- + public function setCreatedDate($createdDate)
- + {
- + $this->created_date = $createdDate;
- + }
- +
- + /**
- + * Get created_date
- + *
- + * @return datetime
- + */
- + public function getCreatedDate()
- + {
- + return $this->created_date;
- + }
- +
- + /**
- + * Set modified_date
- + *
- + * @param datetime $modifiedDate
- + */
- + public function setModifiedDate($modifiedDate)
- + {
- + $this->modified_date = $modifiedDate;
- + }
- +
- + /**
- + * Get modified_date
- + *
- + * @return datetime
- + */
- + public function getModifiedDate()
- + {
- + return $this->modified_date;
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/Notification.php b/src/AQS/MprotBundle/Entity/Notification.php
- index 22f2949..2ab5450 100644
- --- a/src/AQS/MprotBundle/Entity/Notification.php
- +++ b/src/AQS/MprotBundle/Entity/Notification.php
- @@ -50,13 +50,6 @@ class Notification
- private $email;
- /**
- - * @var string $title
- - *
- - * @ORM\Column(name="title", type="string", length=255)
- - */
- - private $title;
- -
- - /**
- * @var text $message
- *
- * @ORM\Column(name="message", type="text")
- @@ -154,25 +147,6 @@ class Notification
- return $this->email;
- }
- - /**
- - * Set title
- - *
- - * @param string $title
- - */
- - public function setTitle($title)
- - {
- - $this->title = $title;
- - }
- -
- - /**
- - * Get title
- - *
- - * @return string
- - */
- - public function getTitle()
- - {
- - return $this->title;
- - }
- /**
- * Set message
- diff --git a/src/AQS/MprotBundle/Entity/ProgressReport.php b/src/AQS/MprotBundle/Entity/ProgressReport.php
- new file mode 100644
- index 0000000..52a7d57
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/ProgressReport.php
- @@ -0,0 +1,196 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\ProgressReport
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class ProgressReport
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var date $dueDate
- + *
- + * @ORM\Column(name="dueDate", type="date")
- + */
- + private $dueDate;
- +
- + /**
- + * @var string $status
- + *
- + * @ORM\Column(name="status", type="string", length=20)
- + */
- + private $status;
- +
- + /**
- + * @var date $submissionDate
- + *
- + * @ORM\Column(name="submissionDate", type="date")
- + */
- + private $submissionDate;
- +
- + /**
- + * @var integer $daysOverdue
- + *
- + * @ORM\Column(name="daysOverdue", type="integer")
- + */
- + private $daysOverdue;
- +
- + /**
- + * @var string $reportFile
- + *
- + * @ORM\Column(name="reportFile", type="string")
- + */
- + private $reportFile;
- +
- + /**
- + * @var integer $agreementID
- + *
- + * @ORM\Column(name="agreementID", type="integer")
- + */
- + private $agreementID;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set dueDate
- + *
- + * @param date $dueDate
- + */
- + public function setDueDate($dueDate)
- + {
- + $this->dueDate = $dueDate;
- + }
- +
- + /**
- + * Get dueDate
- + *
- + * @return date
- + */
- + public function getDueDate()
- + {
- + return $this->dueDate;
- + }
- +
- + /**
- + * Set status
- + *
- + * @param string $status
- + */
- + public function setStatus($status)
- + {
- + $this->status = $status;
- + }
- +
- + /**
- + * Get status
- + *
- + * @return string
- + */
- + public function getStatus()
- + {
- + return $this->status;
- + }
- +
- + /**
- + * Set submissionDate
- + *
- + * @param date $submissionDate
- + */
- + public function setSubmissionDate($submissionDate)
- + {
- + $this->submissionDate = $submissionDate;
- + }
- +
- + /**
- + * Get submissionDate
- + *
- + * @return date
- + */
- + public function getSubmissionDate()
- + {
- + return $this->submissionDate;
- + }
- +
- + /**
- + * Set daysOverdue
- + *
- + * @param integer $daysOverdue
- + */
- + public function setDaysOverdue($daysOverdue)
- + {
- + $this->daysOverdue = $daysOverdue;
- + }
- +
- + /**
- + * Get daysOverdue
- + *
- + * @return integer
- + */
- + public function getDaysOverdue()
- + {
- + return $this->daysOverdue;
- + }
- +
- + /**
- + * Set reportFile
- + *
- + * @param string $reportFile
- + */
- + public function setReportFile($reportFile)
- + {
- + $this->reportFile = $reportFile;
- + }
- +
- + /**
- + * Get reportFile
- + *
- + * @return string
- + */
- + public function getReportFile()
- + {
- + return $this->reportFile;
- + }
- +
- + /**
- + * Set agreementID
- + *
- + * @param integer $agreementID
- + */
- + public function setAgreementID($agreementID)
- + {
- + $this->agreementID = $agreementID;
- + }
- +
- + /**
- + * Get agreementID
- + *
- + * @return integer
- + */
- + public function getAgreementID()
- + {
- + return $this->agreementID;
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/Protege.php b/src/AQS/MprotBundle/Entity/Protege.php
- new file mode 100644
- index 0000000..221f539
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/Protege.php
- @@ -0,0 +1,250 @@
- +<?php
- +
- +namespace AQS\MprotBundle\Entity;
- +
- +use Doctrine\ORM\Mapping as ORM;
- +
- +/**
- + * AQS\MprotBundle\Entity\Protege
- + *
- + * @ORM\Table()
- + * @ORM\Entity
- + */
- +class Protege
- +{
- + /**
- + * @var integer $id
- + *
- + * @ORM\Column(name="id", type="integer")
- + * @ORM\Id
- + * @ORM\GeneratedValue(strategy="AUTO")
- + */
- + private $id;
- +
- + /**
- + * @var string $company
- + *
- + * @ORM\Column(name="company", type="string", length=50)
- + */
- + private $company;
- +
- + /**
- + * @var string $firstName
- + *
- + * @ORM\Column(name="firstName", type="string", length=50)
- + */
- + private $firstName;
- +
- + /**
- + * @var string $lastName
- + *
- + * @ORM\Column(name="lastName", type="string", length=50)
- + */
- + private $lastName;
- +
- + /**
- + * @var string $businessTitle
- + *
- + * @ORM\Column(name="businessTitle", type="string", length=50)
- + */
- + private $businessTitle;
- +
- + /**
- + * @var integer $phone
- + *
- + * @ORM\Column(name="phone", type="integer", length=10)
- + */
- + private $phone;
- +
- + /**
- + * @var string $email
- + *
- + * @ORM\Column(name="email", type="string", length=100)
- + */
- + private $email;
- +
- + /**
- + * @var datetime $created_date
- + *
- + * @ORM\Column(name="created_date", type="datetime")
- + */
- + private $created_date;
- +
- + /**
- + * @var datetime $modified_date
- + *
- + * @ORM\Column(name="modified_date", type="datetime")
- + */
- + private $modified_date;
- +
- +
- + /**
- + * Get id
- + *
- + * @return integer
- + */
- + public function getId()
- + {
- + return $this->id;
- + }
- +
- + /**
- + * Set company
- + *
- + * @param string $company
- + */
- + public function setCompany($company)
- + {
- + $this->company = $company;
- + }
- +
- + /**
- + * Get company
- + *
- + * @return string
- + */
- + public function getCompany()
- + {
- + return $this->company;
- + }
- +
- + /**
- + * Set firstName
- + *
- + * @param string $firstName
- + */
- + public function setFirstName($firstName)
- + {
- + $this->firstName = $firstName;
- + }
- +
- + /**
- + * Get firstName
- + *
- + * @return string
- + */
- + public function getFirstName()
- + {
- + return $this->firstName;
- + }
- +
- + /**
- + * Set lastName
- + *
- + * @param string $lastName
- + */
- + public function setLastName($lastName)
- + {
- + $this->lastName = $lastName;
- + }
- +
- + /**
- + * Get lastName
- + *
- + * @return string
- + */
- + public function getLastName()
- + {
- + return $this->lastName;
- + }
- +
- + /**
- + * Set businessTitle
- + *
- + * @param string $businessTitle
- + */
- + public function setBusinessTitle($businessTitle)
- + {
- + $this->businessTitle = $businessTitle;
- + }
- +
- + /**
- + * Get businessTitle
- + *
- + * @return string
- + */
- + public function getBusinessTitle()
- + {
- + return $this->businessTitle;
- + }
- +
- + /**
- + * Set phone
- + *
- + * @param integer $phone
- + */
- + public function setPhone($phone)
- + {
- + $this->phone = $phone;
- + }
- +
- + /**
- + * Get phone
- + *
- + * @return integer
- + */
- + public function getPhone()
- + {
- + return $this->phone;
- + }
- +
- + /**
- + * Set email
- + *
- + * @param string $email
- + */
- + public function setEmail($email)
- + {
- + $this->email = $email;
- + }
- +
- + /**
- + * Get email
- + *
- + * @return string
- + */
- + public function getEmail()
- + {
- + return $this->email;
- + }
- +
- + /**
- + * Set created_date
- + *
- + * @param datetime $createdDate
- + */
- + public function setCreatedDate($createdDate)
- + {
- + $this->created_date = $createdDate;
- + }
- +
- + /**
- + * Get created_date
- + *
- + * @return datetime
- + */
- + public function getCreatedDate()
- + {
- + return $this->created_date;
- + }
- +
- + /**
- + * Set modified_date
- + *
- + * @param datetime $modifiedDate
- + */
- + public function setModifiedDate($modifiedDate)
- + {
- + $this->modified_date = $modifiedDate;
- + }
- +
- + /**
- + * Get modified_date
- + *
- + * @return datetime
- + */
- + public function getModifiedDate()
- + {
- + return $this->modified_date;
- + }
- +}
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Entity/UserRepository.php b/src/AQS/MprotBundle/Entity/UserRepository.php
- new file mode 100644
- index 0000000..3a28614
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Entity/UserRepository.php
- @@ -0,0 +1,19 @@
- +<?php
- +/**
- + * @author Kshema Vargheese <kvargheese@aetherquest.com>
- + */
- +namespace AQS\MprotBundle\Entity;
- +use Doctrine\ORM\EntityRepository;
- +
- +class UserRepository extends EntityRepository
- +{
- + /**
- + * @static
- + * @return AppRepositoryUserRepository
- + */
- + public static function get ()
- + {
- + $em = Registry::getInstance()->get('em');
- + return $em->getRepository('User');
- + }
- +}
- diff --git a/src/AQS/MprotBundle/Resources/config/routing.yml b/src/AQS/MprotBundle/Resources/config/routing.yml
- index c54039f..819b56e 100644
- --- a/src/AQS/MprotBundle/Resources/config/routing.yml
- +++ b/src/AQS/MprotBundle/Resources/config/routing.yml
- @@ -1,3 +1,27 @@
- AQSMprotBundle_homepage:
- pattern: /
- defaults: { _controller: AQSMprotBundle:Default:index }
- +_user:
- + resource: "@AQSMprotBundle/Controller/UserController.php"
- + type: annotation
- + prefix: admin/user
- +_documentTypes:
- + resource: "@AQSMprotBundle/Controller/DocumentTypesController.php"
- + type: annotation
- + prefix: admin/documentTypes
- +_developmentAssistanceKeywords:
- + resource: "@AQSMprotBundle/Controller/DevelopmentAssistanceKeywordsController.php"
- + type: annotation
- + prefix: admin/developmentAssistanceKeywords
- +_businessClassifications:
- + resource: "@AQSMprotBundle/Controller/BusinessClassificationsController.php"
- + type: annotation
- + prefix: admin/businessClassifications
- +_contractingOfficers:
- + resource: "@AQSMprotBundle/Controller/ContractingOfficersController.php"
- + type: annotation
- + prefix: admin/contractingOfficers
- +_notifications:
- + resource: "@AQSMprotBundle/Controller/NotificationsController.php"
- + type: annotation
- + prefix: admin/notifications
- \ No newline at end of file
- diff --git a/src/AQS/MprotBundle/Resources/views/BusinessClassifications/add.html.twig b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/add.html.twig
- new file mode 100644
- index 0000000..520a173
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/add.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('businessClassifications_add') }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/BusinessClassifications/edit.html.twig b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/edit.html.twig
- new file mode 100644
- index 0000000..096efaf
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/edit.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('businessClassifications_edit', { 'id': businessClassification.id }) }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/BusinessClassifications/index.html.twig b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/index.html.twig
- new file mode 100644
- index 0000000..dd22e1d
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/index.html.twig
- @@ -0,0 +1,27 @@
- +<div class='message'>
- + {{ app.session.flash('success') }}
- +</div>
- +<table border='1'>
- + <tr>
- + <th>Buttons</th>
- + <th>Development Assistance Keyword</th>
- + <th>Active</th>
- + </tr>
- + {% for businessClassification in businessClassifications %}
- + <tr>
- + <td>
- + <a href="{{ path('businessClassifications_edit', { 'id': businessClassification.id }) }}">Edit</a>
- + </td>
- + <td>{{businessClassification.classification}}</td>
- + {% if businessClassification.active %}
- + <td>Yes</td>
- + {% else %}
- + <td>No</td>
- + {% endif %}
- + </tr>
- + {% endfor %}
- +</table>
- +
- +<div>
- + <input type="button" value="Add Business Classification" id="add_button" onclick='window.location.href = "{{ path('businessClassifications_add')}}"'/>
- +</div>
- diff --git a/src/AQS/MprotBundle/Resources/views/ContractingOfficers/add.html.twig b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/add.html.twig
- new file mode 100644
- index 0000000..a544727
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/add.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('contractingOfficers_add') }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/ContractingOfficers/edit.html.twig b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/edit.html.twig
- new file mode 100644
- index 0000000..673f53b
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/edit.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('contractingOfficers_edit', { 'id': contractingOfficer.id }) }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/ContractingOfficers/index.html.twig b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/index.html.twig
- new file mode 100644
- index 0000000..82a5872
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/index.html.twig
- @@ -0,0 +1,37 @@
- +<div class='message'>
- + {{ app.session.flash('success') }}
- +</div>
- +<table border='1'>
- + <tr>
- + <th>Buttons</th>
- + <th>Fist Name</th>
- + <th>Last Name</th>
- + <th>Office</th>
- + <th>Business Title</th>
- + <th>Phone</th>
- + <th>Email</th>
- + <th>Status</th>
- + </tr>
- + {% for contractingOfficer in contractingOfficers %}
- + <tr>
- + <td>
- + <a href="{{ path('contractingOfficers_edit', { 'id': contractingOfficer.id }) }}">Edit</a>
- + <a href="{{ path('contractingOfficers_delete', { 'id': contractingOfficer.id }) }}" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
- + </td>
- + <td>{{contractingOfficer.firstName}}</td>
- + <td>{{contractingOfficer.lastName}}</td>
- + <td>{{contractingOfficer.office}}</td>
- + <td>{{contractingOfficer.title}}</td>
- + <td>{{contractingOfficer.phone}}</td>
- + <td>{{contractingOfficer.email}}</td>
- + {% if contractingOfficer.status %}
- + <td>Yes</td>
- + {% else %}
- + <td>No</td>
- + {% endif %}
- + </tr>
- + {% endfor %}
- +</table>
- +<div>
- + <input type="button" value="Add Contracting Officer" id="add_button" onclick='window.location.href = "{{ path('contractingOfficers_add')}}"'/>
- +</div>
- diff --git a/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/add.html.twig b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/add.html.twig
- new file mode 100644
- index 0000000..56c7ba4
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/add.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('developmentAssistanceKeywords_add') }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/edit.html.twig b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/edit.html.twig
- new file mode 100644
- index 0000000..147094a
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/edit.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('developmentAssistanceKeywords_edit', { 'id': developmentAssistanceKeyword.id }) }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/index.html.twig b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/index.html.twig
- new file mode 100644
- index 0000000..fc13177
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/index.html.twig
- @@ -0,0 +1,26 @@
- +<div class='message'>
- + {{ app.session.flash('success') }}
- +</div>
- +<table border='1'>
- + <tr>
- + <th>Buttons</th>
- + <th>Development Assistance Keyword</th>
- + <th>Active</th>
- + </tr>
- + {% for developmentAssistanceKeyword in developmentAssistanceKeywords %}
- + <tr>
- + <td>
- + <a href="{{ path('developmentAssistanceKeywords_edit', { 'id': developmentAssistanceKeyword.id }) }}">Edit</a>
- + </td>
- + <td>{{developmentAssistanceKeyword.keyword}}</td>
- + {% if developmentAssistanceKeyword.active %}
- + <td>Yes</td>
- + {% else %}
- + <td>No</td>
- + {% endif %}
- + </tr>
- + {% endfor %}
- +</table>
- +<div>
- + <input type="button" value="Add Development Assistance Keyword" id="add_button" onclick='window.location.href = "{{ path('developmentAssistanceKeywords_add')}}"'/>
- +</div>
- diff --git a/src/AQS/MprotBundle/Resources/views/DocumentTypes/add.html.twig b/src/AQS/MprotBundle/Resources/views/DocumentTypes/add.html.twig
- new file mode 100644
- index 0000000..b2f5064
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/DocumentTypes/add.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('documentTypes_add') }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/DocumentTypes/edit.html.twig b/src/AQS/MprotBundle/Resources/views/DocumentTypes/edit.html.twig
- new file mode 100644
- index 0000000..e8e558f
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/DocumentTypes/edit.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('documentTypes_edit', { 'id': documentType.id }) }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/DocumentTypes/index.html.twig b/src/AQS/MprotBundle/Resources/views/DocumentTypes/index.html.twig
- new file mode 100644
- index 0000000..dce9539
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/DocumentTypes/index.html.twig
- @@ -0,0 +1,22 @@
- +<div class='message'>
- + {{ app.session.flash('success') }}
- +</div>
- +<table border='1'>
- + <tr>
- + <th>Buttons</th>
- + <th>Document Type</th>
- + </tr>
- + {% for documentType in documentTypes %}
- + <tr>
- + <td>
- + <a href="{{ path('documentTypes_edit', { 'id': documentType.id }) }}">Edit</a>
- + <a href="{{ path('documentTypes_delete', { 'id': documentType.id }) }}" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
- + </td>
- + <td>{{documentType.documentType}}</td>
- + </tr>
- + {% endfor %}
- +</table>
- +
- +<div>
- + <input type="button" value="Add Document Type" id="add_button" onclick='window.location.href = "{{ path('documentTypes_add')}}"'/>
- +</div>
- diff --git a/src/AQS/MprotBundle/Resources/views/Notifications/add.html.twig b/src/AQS/MprotBundle/Resources/views/Notifications/add.html.twig
- new file mode 100644
- index 0000000..f3971da
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/Notifications/add.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('notifications_add') }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/Notifications/edit.html.twig b/src/AQS/MprotBundle/Resources/views/Notifications/edit.html.twig
- new file mode 100644
- index 0000000..b984460
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/Notifications/edit.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('notifications_edit', { 'id': notification.id }) }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/Notifications/index.html.twig b/src/AQS/MprotBundle/Resources/views/Notifications/index.html.twig
- new file mode 100644
- index 0000000..2ed4741
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/Notifications/index.html.twig
- @@ -0,0 +1,30 @@
- +<div class='message'>
- + {{ app.session.flash('success') }}
- +</div>
- +<table border='1'>
- + <tr>
- + <th>Buttons</th>
- + <th>Subject</th>
- + <th>CC</th>
- + <th>BCC</th>
- + <th>Email</th>
- + <th>Message</th>
- + </tr>
- + {% for notification in notifications %}
- + <tr>
- + <td>
- + <a href="{{ path('notifications_edit', { 'id': notification.id }) }}">Edit</a>
- + <a href="{{ path('notifications_delete', { 'id': notification.id }) }}" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
- + </td>
- + <td>{{notification.subject}}</td>
- + <td>{{notification.cc}}</td>
- + <td>{{notification.bcc}}</td>
- + <td>{{notification.email}}</td>
- + <td>{{notification.message}}</td>
- + </tr>
- + {% endfor %}
- +</table>
- +
- +<div>
- + <input type="button" value="Add Notification" id="add_button" onclick='window.location.href = "{{ path('notifications_add')}}"'/>
- +</div>
- diff --git a/src/AQS/MprotBundle/Resources/views/User/add.html.twig b/src/AQS/MprotBundle/Resources/views/User/add.html.twig
- new file mode 100644
- index 0000000..7065498
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/User/add.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('user_add') }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/User/edit.html.twig b/src/AQS/MprotBundle/Resources/views/User/edit.html.twig
- new file mode 100644
- index 0000000..6c4fa97
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/User/edit.html.twig
- @@ -0,0 +1,4 @@
- +<form action="{{ path('user_edit', { 'id': user.id }) }}" method="post" {{ form_enctype(form) }}>
- + {{ form_widget(form) }}
- + <input type="submit" />
- +</form>
- diff --git a/src/AQS/MprotBundle/Resources/views/User/index.html.twig b/src/AQS/MprotBundle/Resources/views/User/index.html.twig
- new file mode 100644
- index 0000000..af1ccf7
- --- /dev/null
- +++ b/src/AQS/MprotBundle/Resources/views/User/index.html.twig
- @@ -0,0 +1,27 @@
- +<div class='message'>
- + {{ app.session.flash('success') }}
- +</div>
- +<table border='1'>
- + <tr>
- + <th>Buttons</th>
- + <th>Fist Name</th>
- + <th>Last Name</th>
- + <th>Email</th>
- + <th>Business Title</th>
- + </tr>
- + {% for user in users %}
- + <tr>
- + <td>
- + <a href="{{ path('user_edit', { 'id': user.id }) }}">Edit</a>
- + <a href="{{ path('user_delete', { 'id': user.id }) }}" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
- + </td>
- + <td>{{user.firstName}}</td>
- + <td>{{user.lastName}}</td>
- + <td>{{user.email}}</td>
- + <td>{{user.title}}</td>
- + </tr>
- + {% endfor %}
- +</table>
- +<div>
- + <input type="button" value="Add User" id="add_button" onclick='window.location.href = "{{ path('user_add')}}"'/>
- +</div>
Add Comment
Please, Sign In to add comment