Guest User

Untitled

a guest
Jul 11th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 77.41 KB | None | 0 0
  1. diff --git a/.gitignore b/.gitignore
  2. old mode 100644
  3. new mode 100755
  4. index 6ba1033..c0e55f9
  5. --- a/.gitignore
  6. +++ b/.gitignore
  7. @@ -4,4 +4,9 @@
  8.  /app/logs/*
  9.  /vendor/
  10.  /app/config/parameters.ini
  11. +.buildpath
  12. +.project
  13. +.settings/org.eclipse.php.core.prefs
  14.  /.idea
  15. +/.project
  16. +/.settings/*
  17. diff --git a/src/AQS/MprotBundle/Controller/BusinessClassificationsController.php b/src/AQS/MprotBundle/Controller/BusinessClassificationsController.php
  18. new file mode 100644
  19. index 0000000..7f96adc
  20. --- /dev/null
  21. +++ b/src/AQS/MprotBundle/Controller/BusinessClassificationsController.php
  22. @@ -0,0 +1,82 @@
  23. +<?php
  24. +/**
  25. + * @author     Kshema Vargheese <kvargheese@aetherquest.com>
  26. + */
  27. +namespace AQS\MprotBundle\Controller;
  28. +
  29. +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  30. +use Symfony\Component\HttpFoundation\RedirectResponse;
  31. +use Symfony\Component\HttpFoundation\Request;
  32. +use AQS\MprotBundle\Entity\BusinessClassification;
  33. +
  34. +// these import the "@Route" and "@Template" annotations
  35. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  36. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  37. +
  38. +
  39. +class BusinessClassificationsController extends Controller
  40. +{
  41. +   /**
  42. +     * @Route("/", name="businessClassifications_index")
  43. +     * @Template()
  44. +     */
  45. +    public function indexAction(Request $request)
  46. +    {
  47. +       $businessClassifications = $this->getDoctrine()->getRepository('AQSMprotBundle:BusinessClassification')->findAll();
  48. +       return array('businessClassifications' => $businessClassifications);
  49. +    }
  50. +    
  51. +    
  52. +   /**
  53. +     * @Route("/add", name="businessClassifications_add")
  54. +     * @Template()
  55. +     */
  56. +    public function addAction(Request $request)
  57. +    {
  58. +       $developmentAssistanceKeyword = new BusinessClassification();
  59. +       $form = $this->_getForm($developmentAssistanceKeyword);
  60. +        if ($request->getMethod() == 'POST') {
  61. +           $form->bindRequest($request);
  62. +           if ($form->isValid()) {
  63. +               $em = $this->getDoctrine()->getEntityManager();
  64. +               $em->persist($developmentAssistanceKeyword);
  65. +               $em->flush();
  66. +               $this->get('session')->setFlash('success', 'Business Classification Added Successfully');
  67. +               return $this->redirect($this->generateUrl('businessClassifications_index'));
  68. +           }
  69. +       }
  70. +        return array('form' => $form->createView());
  71. +    }
  72. +    
  73. +    /**
  74. +     * @Route("/edit/{id}", name="businessClassifications_edit")
  75. +     * @Template()
  76. +     */
  77. +    public function editAction($id, Request $request)
  78. +    {
  79. +       $businessClassification = $this->getDoctrine()->getRepository('AQSMprotBundle:BusinessClassification')->findOneById($id);
  80. +       if (!$businessClassification) {
  81. +           throw $this->createNotFoundException('No Business Classifications Found');
  82. +           }
  83. +       $form = $this->_getForm($businessClassification);
  84. +       if ($request->getMethod() == 'POST') {
  85. +           $form->bindRequest($request);
  86. +           if ($form->isValid()) {
  87. +               $em = $this->getDoctrine()->getEntityManager();
  88. +               $em->flush();
  89. +               $this->get('session')->setFlash('success', 'Business Classification Edited Successfully');
  90. +               return $this->redirect($this->generateUrl('businessClassifications_index'));
  91. +           }
  92. +       }
  93. +      
  94. +       return array('form' => $form->createView(), 'businessClassification' => $businessClassification);
  95. +    }
  96. +  
  97. +    protected function _getForm($businessClassification) {
  98. +       $form = $this->createFormBuilder($businessClassification)
  99. +                       ->add('classification', 'text', array('label' => 'Classification'))
  100. +                       ->add('active', 'checkbox', array('label' => 'Active'))
  101. +                       ->getForm();
  102. +       return $form;
  103. +    }
  104. +}
  105. diff --git a/src/AQS/MprotBundle/Controller/ContractingOfficersController.php b/src/AQS/MprotBundle/Controller/ContractingOfficersController.php
  106. new file mode 100644
  107. index 0000000..7b5809d
  108. --- /dev/null
  109. +++ b/src/AQS/MprotBundle/Controller/ContractingOfficersController.php
  110. @@ -0,0 +1,106 @@
  111. +<?php
  112. +/**
  113. + * @author     Kshema Vargheese <kvargheese@aetherquest.com>
  114. + */
  115. +namespace AQS\MprotBundle\Controller;
  116. +
  117. +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  118. +use Symfony\Component\HttpFoundation\RedirectResponse;
  119. +use Symfony\Component\HttpFoundation\Request;
  120. +use AQS\MprotBundle\Entity\ContractingOfficer;
  121. +
  122. +// these import the "@Route" and "@Template" annotations
  123. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  124. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  125. +
  126. +
  127. +class ContractingOfficersController extends Controller
  128. +{
  129. +   /**
  130. +     * @Route("/", name="contractingOfficers_index")
  131. +     * @Template()
  132. +     */
  133. +    public function indexAction(Request $request)
  134. +    {
  135. +       $contractingOfficers = $this->getDoctrine()->getRepository('AQSMprotBundle:ContractingOfficer')->findAll();
  136. +       return array('contractingOfficers' => $contractingOfficers);
  137. +    }
  138. +    
  139. +    
  140. +   /**
  141. +     * @Route("/add", name="contractingOfficers_add")
  142. +     * @Template()
  143. +     */
  144. +    public function addAction(Request $request)
  145. +    {
  146. +       $contractingOfficer = new contractingOfficer();
  147. +       $form = $this->_getForm($contractingOfficer);
  148. +        if ($request->getMethod() == 'POST') {
  149. +           $form->bindRequest($request);
  150. +           if ($form->isValid()) {
  151. +               $em = $this->getDoctrine()->getEntityManager();
  152. +               $em->persist($contractingOfficer);
  153. +               $em->flush();
  154. +               $this->get('session')->setFlash('success', 'Contracting Officer Added Successfully');
  155. +               return $this->redirect($this->generateUrl('contractingOfficers_index'));
  156. +           }
  157. +       }
  158. +        return array('form' => $form->createView());
  159. +    }
  160. +    
  161. +    /**
  162. +     * @Route("/edit/{id}", name="contractingOfficers_edit")
  163. +     * @Template()
  164. +     */
  165. +    public function editAction($id, Request $request)
  166. +    {
  167. +       $contractingOfficer = $this->getDoctrine()->getRepository('AQSMprotBundle:ContractingOfficer')->findOneById($id);
  168. +       if (!$contractingOfficer) {
  169. +           throw $this->createNotFoundException('No Contracting Officer Found');
  170. +           }
  171. +       $form = $this->_getForm($contractingOfficer);
  172. +       if ($request->getMethod() == 'POST') {
  173. +           $form->bindRequest($request);
  174. +           if ($form->isValid()) {
  175. +               $em = $this->getDoctrine()->getEntityManager();
  176. +               $em->flush();
  177. +               $this->get('session')->setFlash('success', 'Contracting Officer Edited Successfully');
  178. +               return $this->redirect($this->generateUrl('contractingOfficers_index'));
  179. +           }
  180. +       }
  181. +      
  182. +       return array('form' => $form->createView(), 'contractingOfficer' => $contractingOfficer);
  183. +    }
  184. +  
  185. +   /**
  186. +     * @Route("/delete/{id}", name="contractingOfficers_delete")
  187. +     * @Template()
  188. +     */
  189. +    public function deleteAction($id)
  190. +    {
  191. +       $contractingOfficer = $this->getDoctrine()->getRepository('AQSMprotBundle:ContractingOfficer')->findOneById($id);
  192. +       if (!$contractingOfficer) {
  193. +           throw $this->createNotFoundException('No Contracting Officer Found');
  194. +           } else {
  195. +               $em = $this->getDoctrine()->getEntityManager();
  196. +           $em->remove($contractingOfficer);
  197. +           $em->flush();
  198. +           $this->get('session')->setFlash('success', 'Contracting Officer Deleted Successfully');
  199. +           return $this->redirect($this->generateUrl('contractingOfficers_index'));
  200. +           }
  201. +      
  202. +       return array();
  203. +    }
  204. +    protected function _getForm($contractingOfficer) {
  205. +       $form = $this->createFormBuilder($contractingOfficer)
  206. +                       ->add('firstName', 'text', array('label' => 'First Name'))
  207. +                       ->add('lastName', 'text', array('label' => 'Last Name'))
  208. +                       ->add('office', 'text', array('label' => 'Office'))
  209. +                       ->add('title', 'text', array('label' => 'Business Title'))
  210. +                       ->add('phone', 'text', array('label' => 'Phone'))
  211. +                       ->add('email', 'email', array('label' => 'Email'))
  212. +                       ->add('status', 'checkbox', array('label' => 'Status'))
  213. +                       ->getForm();
  214. +       return $form;
  215. +    }
  216. +}
  217. diff --git a/src/AQS/MprotBundle/Controller/DevelopmentAssistanceKeywordsController.php b/src/AQS/MprotBundle/Controller/DevelopmentAssistanceKeywordsController.php
  218. new file mode 100644
  219. index 0000000..f667e7a
  220. --- /dev/null
  221. +++ b/src/AQS/MprotBundle/Controller/DevelopmentAssistanceKeywordsController.php
  222. @@ -0,0 +1,82 @@
  223. +<?php
  224. +/**
  225. + * @author     Kshema Vargheese <kvargheese@aetherquest.com>
  226. + */
  227. +namespace AQS\MprotBundle\Controller;
  228. +
  229. +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  230. +use Symfony\Component\HttpFoundation\RedirectResponse;
  231. +use Symfony\Component\HttpFoundation\Request;
  232. +use AQS\MprotBundle\Entity\DevelopmentAssistanceKeywords;
  233. +
  234. +// these import the "@Route" and "@Template" annotations
  235. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  236. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  237. +
  238. +
  239. +class DevelopmentAssistanceKeywordsController extends Controller
  240. +{
  241. +   /**
  242. +     * @Route("/", name="developmentAssistanceKeywords_index")
  243. +     * @Template()
  244. +     */
  245. +    public function indexAction(Request $request)
  246. +    {
  247. +       $developmentAssistanceKeywords = $this->getDoctrine()->getRepository('AQSMprotBundle:DevelopmentAssistanceKeywords')->findAll();
  248. +       return array('developmentAssistanceKeywords' => $developmentAssistanceKeywords);
  249. +    }
  250. +    
  251. +    
  252. +   /**
  253. +     * @Route("/add", name="developmentAssistanceKeywords_add")
  254. +     * @Template()
  255. +     */
  256. +    public function addAction(Request $request)
  257. +    {
  258. +       $developmentAssistanceKeyword = new DevelopmentAssistanceKeywords();
  259. +       $form = $this->_getForm($developmentAssistanceKeyword);
  260. +        if ($request->getMethod() == 'POST') {
  261. +           $form->bindRequest($request);
  262. +           if ($form->isValid()) {
  263. +               $em = $this->getDoctrine()->getEntityManager();
  264. +               $em->persist($developmentAssistanceKeyword);
  265. +               $em->flush();
  266. +               $this->get('session')->setFlash('success', 'Development Assistance Keyword Added Successfully');
  267. +               return $this->redirect($this->generateUrl('developmentAssistanceKeywords_index'));
  268. +           }
  269. +       }
  270. +        return array('form' => $form->createView());
  271. +    }
  272. +    
  273. +    /**
  274. +     * @Route("/edit/{id}", name="developmentAssistanceKeywords_edit")
  275. +     * @Template()
  276. +     */
  277. +    public function editAction($id, Request $request)
  278. +    {
  279. +       $developmentAssistanceKeyword = $this->getDoctrine()->getRepository('AQSMprotBundle:DevelopmentAssistanceKeywords')->findOneById($id);
  280. +       if (!$developmentAssistanceKeyword) {
  281. +           throw $this->createNotFoundException('No Development Assistance Keyword Found');
  282. +           }
  283. +       $form = $this->_getForm($developmentAssistanceKeyword);
  284. +       if ($request->getMethod() == 'POST') {
  285. +           $form->bindRequest($request);
  286. +           if ($form->isValid()) {
  287. +               $em = $this->getDoctrine()->getEntityManager();
  288. +               $em->flush();
  289. +               $this->get('session')->setFlash('success', 'Development Assistance Keyword Edited Successfully');
  290. +               return $this->redirect($this->generateUrl('developmentAssistanceKeywords_index'));
  291. +           }
  292. +       }
  293. +      
  294. +       return array('form' => $form->createView(), 'developmentAssistanceKeyword' => $developmentAssistanceKeyword);
  295. +    }
  296. +  
  297. +    protected function _getForm($developmentAssistanceKeyword) {
  298. +       $form = $this->createFormBuilder($developmentAssistanceKeyword)
  299. +                       ->add('keyword', 'text', array('label' => 'Keyword'))
  300. +                       ->add('active', 'checkbox', array('label' => 'Active'))
  301. +                       ->getForm();
  302. +       return $form;
  303. +    }
  304. +}
  305. diff --git a/src/AQS/MprotBundle/Controller/DocumentTypesController.php b/src/AQS/MprotBundle/Controller/DocumentTypesController.php
  306. new file mode 100644
  307. index 0000000..14229e7
  308. --- /dev/null
  309. +++ b/src/AQS/MprotBundle/Controller/DocumentTypesController.php
  310. @@ -0,0 +1,100 @@
  311. +<?php
  312. +/**
  313. + * @author     Kshema Vargheese <kvargheese@aetherquest.com>
  314. + */
  315. +namespace AQS\MprotBundle\Controller;
  316. +
  317. +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  318. +use Symfony\Component\HttpFoundation\RedirectResponse;
  319. +use Symfony\Component\HttpFoundation\Request;
  320. +use AQS\MprotBundle\Entity\DocumentType;
  321. +
  322. +// these import the "@Route" and "@Template" annotations
  323. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  324. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  325. +
  326. +
  327. +class DocumentTypesController extends Controller
  328. +{
  329. +   /**
  330. +     * @Route("/", name="documentTypes_index")
  331. +     * @Template()
  332. +     */
  333. +    public function indexAction(Request $request)
  334. +    {
  335. +       $documentTypes = $this->getDoctrine()->getRepository('AQSMprotBundle:DocumentType')->findAll();
  336. +       return array('documentTypes' => $documentTypes);
  337. +    }
  338. +    
  339. +    
  340. +   /**
  341. +     * @Route("/add", name="documentTypes_add")
  342. +     * @Template()
  343. +     */
  344. +    public function addAction(Request $request)
  345. +    {
  346. +       $documentType = new DocumentType();
  347. +       $form = $this->_getForm($documentType);
  348. +        if ($request->getMethod() == 'POST') {
  349. +           $form->bindRequest($request);
  350. +           if ($form->isValid()) {
  351. +               $em = $this->getDoctrine()->getEntityManager();
  352. +               $em->persist($documentType);
  353. +               $em->flush();
  354. +               $this->get('session')->setFlash('success', 'Document Type Added Successfully');
  355. +               return $this->redirect($this->generateUrl('documentTypes_index'));
  356. +           }
  357. +       }
  358. +        return array('form' => $form->createView());
  359. +    }
  360. +    
  361. +    /**
  362. +     * @Route("/edit/{id}", name="documentTypes_edit")
  363. +     * @Template()
  364. +     */
  365. +    public function editAction($id, Request $request)
  366. +    {
  367. +       $documentType = $this->getDoctrine()->getRepository('AQSMprotBundle:DocumentType')->findOneById($id);
  368. +       if (!$documentType) {
  369. +           throw $this->createNotFoundException('No Document Type Found');
  370. +           }
  371. +       $form = $this->_getForm($documentType);
  372. +       if ($request->getMethod() == 'POST') {
  373. +           $form->bindRequest($request);
  374. +           if ($form->isValid()) {
  375. +               $em = $this->getDoctrine()->getEntityManager();
  376. +               $em->flush();
  377. +               $this->get('session')->setFlash('success', 'Document Type Edited Successfully');
  378. +               return $this->redirect($this->generateUrl('documentTypes_index'));
  379. +           }
  380. +       }
  381. +      
  382. +       return array('form' => $form->createView(), 'documentType' => $documentType);
  383. +    }
  384. +  
  385. +   /**
  386. +     * @Route("/delete/{id}", name="documentTypes_delete")
  387. +     * @Template()
  388. +     */
  389. +    public function deleteAction($id)
  390. +    {
  391. +       $documentType = $this->getDoctrine()->getRepository('AQSMprotBundle:DocumentType')->findOneById($id);
  392. +       if (!$documentType) {
  393. +           throw $this->createNotFoundException('No Document Type Found');
  394. +           } else {
  395. +               $em = $this->getDoctrine()->getEntityManager();
  396. +           $em->remove($documentType);
  397. +           $em->flush();
  398. +           $this->get('session')->setFlash('success', 'Document Type Deleted Successfully');
  399. +           return $this->redirect($this->generateUrl('documentTypes_index'));
  400. +           }
  401. +      
  402. +       return array();
  403. +    }
  404. +    protected function _getForm($user) {
  405. +       $form = $this->createFormBuilder($user)
  406. +                       ->add('documentType', 'text', array('label' => 'Document Type'))
  407. +                       ->getForm();
  408. +       return $form;
  409. +    }
  410. +}
  411. diff --git a/src/AQS/MprotBundle/Controller/NotificationsController.php b/src/AQS/MprotBundle/Controller/NotificationsController.php
  412. new file mode 100644
  413. index 0000000..1da1602
  414. --- /dev/null
  415. +++ b/src/AQS/MprotBundle/Controller/NotificationsController.php
  416. @@ -0,0 +1,104 @@
  417. +<?php
  418. +/**
  419. + * @author     Kshema Vargheese <kvargheese@aetherquest.com>
  420. + */
  421. +namespace AQS\MprotBundle\Controller;
  422. +
  423. +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  424. +use Symfony\Component\HttpFoundation\RedirectResponse;
  425. +use Symfony\Component\HttpFoundation\Request;
  426. +use AQS\MprotBundle\Entity\Notification;
  427. +
  428. +// these import the "@Route" and "@Template" annotations
  429. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  430. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  431. +
  432. +
  433. +class NotificationsController extends Controller
  434. +{
  435. +   /**
  436. +     * @Route("/", name="notifications_index")
  437. +     * @Template()
  438. +     */
  439. +    public function indexAction(Request $request)
  440. +    {
  441. +       $notifications = $this->getDoctrine()->getRepository('AQSMprotBundle:Notification')->findAll();
  442. +       return array('notifications' => $notifications);
  443. +    }
  444. +    
  445. +    
  446. +   /**
  447. +     * @Route("/add", name="notifications_add")
  448. +     * @Template()
  449. +     */
  450. +    public function addAction(Request $request)
  451. +    {
  452. +       $notification = new Notification();
  453. +       $form = $this->_getForm($notification);
  454. +        if ($request->getMethod() == 'POST') {
  455. +           $form->bindRequest($request);
  456. +           if ($form->isValid()) {
  457. +               $em = $this->getDoctrine()->getEntityManager();
  458. +               $em->persist($notification);
  459. +               $em->flush();
  460. +               $this->get('session')->setFlash('success', 'Notification Added Successfully');
  461. +               return $this->redirect($this->generateUrl('notifications_index'));
  462. +           }
  463. +       }
  464. +        return array('form' => $form->createView());
  465. +    }
  466. +    
  467. +    /**
  468. +     * @Route("/edit/{id}", name="notifications_edit")
  469. +     * @Template()
  470. +     */
  471. +    public function editAction($id, Request $request)
  472. +    {
  473. +       $notification = $this->getDoctrine()->getRepository('AQSMprotBundle:Notification')->findOneById($id);
  474. +       if (!$notification) {
  475. +           throw $this->createNotFoundException('No Notification Found');
  476. +           }
  477. +       $form = $this->_getForm($notification);
  478. +       if ($request->getMethod() == 'POST') {
  479. +           $form->bindRequest($request);
  480. +           if ($form->isValid()) {
  481. +               $em = $this->getDoctrine()->getEntityManager();
  482. +               $em->flush();
  483. +               $this->get('session')->setFlash('success', 'Notification Edited Successfully');
  484. +               return $this->redirect($this->generateUrl('notifications_index'));
  485. +           }
  486. +       }
  487. +      
  488. +       return array('form' => $form->createView(), 'notification' => $notification);
  489. +    }
  490. +  
  491. +   /**
  492. +     * @Route("/delete/{id}", name="notifications_delete")
  493. +     * @Template()
  494. +     */
  495. +    public function deleteAction($id)
  496. +    {
  497. +       $notification = $this->getDoctrine()->getRepository('AQSMprotBundle:Notification')->findOneById($id);
  498. +       if (!$notification) {
  499. +           throw $this->createNotFoundException('No Notification Found');
  500. +           } else {
  501. +               $em = $this->getDoctrine()->getEntityManager();
  502. +           $em->remove($notification);
  503. +           $em->flush();
  504. +           $this->get('session')->setFlash('success', 'Notification Deleted Successfully');
  505. +           return $this->redirect($this->generateUrl('notifications_index'));
  506. +           }
  507. +      
  508. +       return array();
  509. +    }
  510. +    protected function _getForm($notification) {
  511. +       $form = $this->createFormBuilder($notification)
  512. +                       ->add('subject', 'text', array('label' => 'Subject'))
  513. +                       ->add('cc', 'text', array('label' => 'CC'))
  514. +                       ->add('bcc', 'text', array('label' => 'BCC'))
  515. +                       ->add('email', 'email', array('label' => 'Email'))
  516. +                       ->add('message', 'textarea', array('label' => 'Message'))
  517. +                       ->getForm();
  518. +       return $form;
  519. +    }
  520. +}
  521. diff --git a/src/AQS/MprotBundle/Controller/UserController.php b/src/AQS/MprotBundle/Controller/UserController.php
  522. new file mode 100644
  523. index 0000000..a3f6581
  524. --- /dev/null
  525. +++ b/src/AQS/MprotBundle/Controller/UserController.php
  526. @@ -0,0 +1,104 @@
  527. +<?php
  528. +/**
  529. + * @author     Kshema Vargheese <kvargheese@aetherquest.com>
  530. + */
  531. +namespace AQS\MprotBundle\Controller;
  532. +
  533. +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  534. +use Symfony\Component\HttpFoundation\RedirectResponse;
  535. +use Symfony\Component\HttpFoundation\Request;
  536. +use AQS\MprotBundle\Entity\User;
  537. +
  538. +// these import the "@Route" and "@Template" annotations
  539. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  540. +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  541. +
  542. +
  543. +class UserController extends Controller
  544. +{
  545. +   /**
  546. +     * @Route("/", name="user_index")
  547. +     * @Template()
  548. +     */
  549. +    public function indexAction(Request $request)
  550. +    {
  551. +       $users = $this->getDoctrine()->getRepository('AQSMprotBundle:User')->findAll();
  552. +       return array('users' => $users);
  553. +    }
  554. +    
  555. +    
  556. +   /**
  557. +     * @Route("/add", name="user_add")
  558. +     * @Template()
  559. +     */
  560. +    public function addAction(Request $request)
  561. +    {
  562. +       $user = new User();
  563. +       $form = $this->_getForm($user);
  564. +        if ($request->getMethod() == 'POST') {
  565. +           $form->bindRequest($request);
  566. +           if ($form->isValid()) {
  567. +               $em = $this->getDoctrine()->getEntityManager();
  568. +               $em->persist($user);
  569. +               $em->flush();
  570. +               $this->get('session')->setFlash('success', 'User Added Successfully');
  571. +               return $this->redirect($this->generateUrl('user_index'));
  572. +           }
  573. +       }
  574. +        return array('form' => $form->createView());
  575. +    }
  576. +    
  577. +    /**
  578. +     * @Route("/edit/{id}", name="user_edit")
  579. +     * @Template()
  580. +     */
  581. +    public function editAction($id, Request $request)
  582. +    {
  583. +       $user = $this->getDoctrine()->getRepository('AQSMprotBundle:User')->findOneById($id);
  584. +       if (!$user) {
  585. +           throw $this->createNotFoundException('No User Found');
  586. +           }
  587. +       $form = $this->_getForm($user);
  588. +       if ($request->getMethod() == 'POST') {
  589. +           $form->bindRequest($request);
  590. +           if ($form->isValid()) {
  591. +               $em = $this->getDoctrine()->getEntityManager();
  592. +               $em->flush();
  593. +               $this->get('session')->setFlash('success', 'User Edited Successfully');
  594. +               return $this->redirect($this->generateUrl('user_index'));
  595. +           }
  596. +       }
  597. +      
  598. +       return array('form' => $form->createView(), 'user' => $user);
  599. +    }
  600. +  
  601. +   /**
  602. +     * @Route("/delete/{id}", name="user_delete")
  603. +     * @Template()
  604. +     */
  605. +    public function deleteAction($id)
  606. +    {
  607. +       $user = $this->getDoctrine()->getRepository('AQSMprotBundle:User')->findOneById($id);
  608. +       if (!$user) {
  609. +           throw $this->createNotFoundException('No User Found');
  610. +           } else {
  611. +               $em = $this->getDoctrine()->getEntityManager();
  612. +           $em->remove($user);
  613. +           $em->flush();
  614. +           $this->get('session')->setFlash('success', 'User Deleted Successfully');
  615. +           return $this->redirect($this->generateUrl('user_index'));
  616. +           }
  617. +      
  618. +       return array();
  619. +    }
  620. +    protected function _getForm($user) {
  621. +       $form = $this->createFormBuilder($user)
  622. +                       ->add('firstName', 'text', array('label' => 'First Name'))
  623. +                       ->add('lastName', 'text', array('label' => 'Last Name'))
  624. +                       ->add('email', 'email', array('label' => 'Email'))
  625. +                       ->add('title', 'text', array('label' => 'Business Title'))
  626. +                       ->add('password', 'password', array('label' => 'Password'))
  627. +                       ->getForm();
  628. +       return $form;
  629. +    }
  630. +}
  631. diff --git a/src/AQS/MprotBundle/Entity/Agreement.php b/src/AQS/MprotBundle/Entity/Agreement.php
  632. index 11dba03..d9900ab 100644
  633. --- a/src/AQS/MprotBundle/Entity/Agreement.php
  634. +++ b/src/AQS/MprotBundle/Entity/Agreement.php
  635. @@ -43,9 +43,9 @@ class Agreement
  636.      private $original_expiration;
  637.  
  638.      /**
  639. -     * @var int $agreement_length
  640. +     * @var integer $agreement_length
  641.       *
  642. -     * @ORM\Column(name="agreement_length", type="int")
  643. +     * @ORM\Column(name="agreement_length", type="integer")
  644.       */
  645.      private $agreement_length;
  646.  
  647. @@ -57,23 +57,23 @@ class Agreement
  648.      private $intended_results;
  649.  
  650.      /**
  651. -     * @var int $development_description
  652. +     * @var integer $development_description
  653.       *
  654. -     * @ORM\Column(name="development_description", type="int")
  655. +     * @ORM\Column(name="development_description", type="integer")
  656.       */
  657.      private $development_description;
  658.  
  659.      /**
  660. -     * @var int $officer
  661. +     * @var integer $officer
  662.       *
  663. -     * @ORM\Column(name="officer", type="int")
  664. +     * @ORM\Column(name="officer", type="integer")
  665.       */
  666.      private $officer;
  667.  
  668.      /**
  669. -     * @var int $contract_num
  670. +     * @var integer $contract_num
  671.       *
  672. -     * @ORM\Column(name="contract_num", type="int")
  673. +     * @ORM\Column(name="contract_num", type="integer")
  674.       */
  675.      private $contract_num;
  676.  
  677. @@ -85,16 +85,16 @@ class Agreement
  678.      private $doe_facility;
  679.  
  680.      /**
  681. -     * @var int $mentor
  682. +     * @var integer $mentor
  683.       *
  684. -     * @ORM\Column(name="mentor", type="int")
  685. +     * @ORM\Column(name="mentor", type="integer")
  686.       */
  687.      private $mentor;
  688.  
  689.      /**
  690. -     * @var int $protege
  691. +     * @var integer $protege
  692.       *
  693. -     * @ORM\Column(name="protege", type="int")
  694. +     * @ORM\Column(name="protege", type="integer")
  695.       */
  696.      private $protege;
  697.  
  698. @@ -172,9 +172,9 @@ class Agreement
  699.      /**
  700.       * Set agreement_length
  701.       *
  702. -     * @param int $agreementLength
  703. +     * @param integer $agreementLength
  704.       */
  705. -    public function setAgreementLength(\int $agreementLength)
  706. +    public function setAgreementLength(\integer $agreementLength)
  707.      {
  708.          $this->agreement_length = $agreementLength;
  709.      }
  710. @@ -182,7 +182,7 @@ class Agreement
  711.      /**
  712.       * Get agreement_length
  713.       *
  714. -     * @return int
  715. +     * @return integer
  716.       */
  717.      public function getAgreementLength()
  718.      {
  719. @@ -212,9 +212,9 @@ class Agreement
  720.      /**
  721.       * Set development_description
  722.       *
  723. -     * @param int $developmentDescription
  724. +     * @param integer $developmentDescription
  725.       */
  726. -    public function setDevelopmentDescription(\int $developmentDescription)
  727. +    public function setDevelopmentDescription(\integer $developmentDescription)
  728.      {
  729.          $this->development_description = $developmentDescription;
  730.      }
  731. @@ -222,7 +222,7 @@ class Agreement
  732.      /**
  733.       * Get development_description
  734.       *
  735. -     * @return int
  736. +     * @return integer
  737.       */
  738.      public function getDevelopmentDescription()
  739.      {
  740. @@ -232,9 +232,9 @@ class Agreement
  741.      /**
  742.       * Set officer
  743.       *
  744. -     * @param int $officer
  745. +     * @param integer $officer
  746.       */
  747. -    public function setOfficer(\int $officer)
  748. +    public function setOfficer(\integer $officer)
  749.      {
  750.          $this->officer = $officer;
  751.      }
  752. @@ -242,7 +242,7 @@ class Agreement
  753.      /**
  754.       * Get officer
  755.       *
  756. -     * @return int
  757. +     * @return integer
  758.       */
  759.      public function getOfficer()
  760.      {
  761. @@ -252,9 +252,9 @@ class Agreement
  762.      /**
  763.       * Set contract_num
  764.       *
  765. -     * @param int $contractNum
  766. +     * @param integer $contractNum
  767.       */
  768. -    public function setContractNum(\int $contractNum)
  769. +    public function setContractNum(\integer $contractNum)
  770.      {
  771.          $this->contract_num = $contractNum;
  772.      }
  773. @@ -262,7 +262,7 @@ class Agreement
  774.      /**
  775.       * Get contract_num
  776.       *
  777. -     * @return int
  778. +     * @return integer
  779.       */
  780.      public function getContractNum()
  781.      {
  782. @@ -292,9 +292,9 @@ class Agreement
  783.      /**
  784.       * Set mentor
  785.       *
  786. -     * @param int $mentor
  787. +     * @param integer $mentor
  788.       */
  789. -    public function setMentor(\int $mentor)
  790. +    public function setMentor(\integer $mentor)
  791.      {
  792.          $this->mentor = $mentor;
  793.      }
  794. @@ -302,7 +302,7 @@ class Agreement
  795.      /**
  796.       * Get mentor
  797.       *
  798. -     * @return int
  799. +     * @return integer
  800.       */
  801.      public function getMentor()
  802.      {
  803. @@ -312,9 +312,9 @@ class Agreement
  804.      /**
  805.       * Set protege
  806.       *
  807. -     * @param int $protege
  808. +     * @param integer $protege
  809.       */
  810. -    public function setProtege(\int $protege)
  811. +    public function setProtege(\integer $protege)
  812.      {
  813.          $this->protege = $protege;
  814.      }
  815. @@ -322,7 +322,7 @@ class Agreement
  816.      /**
  817.       * Get protege
  818.       *
  819. -     * @return int
  820. +     * @return integer
  821.       */
  822.      public function getProtege()
  823.      {
  824. diff --git a/src/AQS/MprotBundle/Entity/BusinessClassification.php b/src/AQS/MprotBundle/Entity/BusinessClassification.php
  825. new file mode 100644
  826. index 0000000..fa47429
  827. --- /dev/null
  828. +++ b/src/AQS/MprotBundle/Entity/BusinessClassification.php
  829. @@ -0,0 +1,92 @@
  830. +<?php
  831. +
  832. +namespace AQS\MprotBundle\Entity;
  833. +
  834. +use Doctrine\ORM\Mapping as ORM;
  835. +
  836. +/**
  837. + * AQS\MprotBundle\Entity\BusinessClassification
  838. + *
  839. + * @ORM\Table()
  840. + * @ORM\Entity
  841. + */
  842. +class BusinessClassification
  843. +{
  844. +    /**
  845. +     * @var integer $id
  846. +     *
  847. +     * @ORM\Column(name="id", type="integer")
  848. +     * @ORM\Id
  849. +     * @ORM\GeneratedValue(strategy="AUTO")
  850. +     */
  851. +    private $id;
  852. +
  853. +    /**
  854. +     * @var string $classification
  855. +     *
  856. +     * @ORM\Column(name="classification", type="string")
  857. +     */
  858. +    private $classification;
  859. +
  860. +    /**
  861. +     * @var smallint $active
  862. +     *
  863. +     * @ORM\Column(name="active", type="smallint")
  864. +     */
  865. +    private $active;
  866. +
  867. +
  868. +    /**
  869. +     * Get id
  870. +     *
  871. +     * @return integer
  872. +     */
  873. +    public function getId()
  874. +    {
  875. +        return $this->id;
  876. +    }
  877. +
  878. +    /**
  879. +     * Set classification
  880. +     *
  881. +     * @param string $classification
  882. +     */
  883. +    public function setClassification($classification)
  884. +    {
  885. +        $this->classification = $classification;
  886. +    }
  887. +
  888. +    /**
  889. +     * Get classification
  890. +     *
  891. +     * @return string
  892. +     */
  893. +    public function getClassification()
  894. +    {
  895. +        return $this->classification;
  896. +    }
  897. +
  898. +    /**
  899. +     * Set active
  900. +     *
  901. +     * @param smallint $active
  902. +     */
  903. +    public function setActive($active)
  904. +    {
  905. +        $this->active = $active;
  906. +    }
  907. +
  908. +    /**
  909. +     * Get active
  910. +     *
  911. +     * @return smallint
  912. +     */
  913. +    public function getActive()
  914. +    { 
  915. +       if (!is_null($this->active)) {
  916. +           return (bool)$this->active;
  917. +       } else {
  918. +           return $this->active;
  919. +       }
  920. +    }
  921. +}
  922. \ No newline at end of file
  923. diff --git a/src/AQS/MprotBundle/Entity/ContractingOfficer.php b/src/AQS/MprotBundle/Entity/ContractingOfficer.php
  924. index 6f44011..e4d538f 100644
  925. --- a/src/AQS/MprotBundle/Entity/ContractingOfficer.php
  926. +++ b/src/AQS/MprotBundle/Entity/ContractingOfficer.php
  927. @@ -43,24 +43,18 @@ class ContractingOfficer
  928.      private $office;
  929.  
  930.      /**
  931. -     * @var  $phone
  932. +     * @var string $phone
  933.       *
  934. -     * @ORM\Column(name="phone", type="")
  935. +     * @ORM\Column(name="phone", type="string", length=255)
  936.       */
  937.      private $phone;
  938.  
  939.      /**
  940. -     * @var string $string(20)
  941. -     *
  942. -     * @ORM\Column(name="string(20)", type="string")
  943. -     */
  944. -    private $string(20);
  945. -
  946. -    /**
  947.       * @var smallint $status
  948.       *
  949.       * @ORM\Column(name="status", type="smallint")
  950.       */
  951. +    
  952.      private $status;
  953.  
  954.      /**
  955. @@ -78,14 +72,6 @@ class ContractingOfficer
  956.      private $title;
  957.  
  958.      /**
  959. -     * @var string $password
  960. -     *
  961. -     * @ORM\Column(name="password", type="string", length=255)
  962. -     */
  963. -    private $password;
  964. -
  965. -
  966. -    /**
  967.       * Get id
  968.       *
  969.       * @return integer
  970. @@ -180,21 +166,7 @@ class ContractingOfficer
  971.       *
  972.       * @param string $string(20)
  973.       */
  974. -    public function setString(20)($string(20))
  975. -    {
  976. -        $this->string(20) = $string(20);
  977. -    }
  978. -
  979. -    /**
  980. -     * Get string(20)
  981. -     *
  982. -     * @return string
  983. -     */
  984. -    public function getString(20)()
  985. -    {
  986. -        return $this->string(20);
  987. -    }
  988. -
  989. +  
  990.      /**
  991.       * Set status
  992.       *
  993. @@ -212,7 +184,11 @@ class ContractingOfficer
  994.       */
  995.      public function getStatus()
  996.      {
  997. -        return $this->status;
  998. +       if (!is_null($this->status)) {
  999. +           return (bool)$this->status;
  1000. +       } else {
  1001. +           return $this->status;
  1002. +       }
  1003.      }
  1004.  
  1005.      /**
  1006. @@ -254,24 +230,4 @@ class ContractingOfficer
  1007.      {
  1008.          return $this->title;
  1009.      }
  1010. -
  1011. -    /**
  1012. -     * Set password
  1013. -     *
  1014. -     * @param string $password
  1015. -     */
  1016. -    public function setPassword($password)
  1017. -    {
  1018. -        $this->password = $password;
  1019. -    }
  1020. -
  1021. -    /**
  1022. -     * Get password
  1023. -     *
  1024. -     * @return string
  1025. -     */
  1026. -    public function getPassword()
  1027. -    {
  1028. -        return $this->password;
  1029. -    }
  1030.  }
  1031. \ No newline at end of file
  1032. diff --git a/src/AQS/MprotBundle/Entity/ContractingOfficerLookup.php b/src/AQS/MprotBundle/Entity/ContractingOfficerLookup.php
  1033. new file mode 100644
  1034. index 0000000..91cf5b3
  1035. --- /dev/null
  1036. +++ b/src/AQS/MprotBundle/Entity/ContractingOfficerLookup.php
  1037. @@ -0,0 +1,115 @@
  1038. +<?php
  1039. +
  1040. +namespace AQS\MprotBundle\Entity;
  1041. +
  1042. +use Doctrine\ORM\Mapping as ORM;
  1043. +
  1044. +/**
  1045. + * AQS\MprotBundle\Entity\ContractingOfficerLookup
  1046. + *
  1047. + * @ORM\Table()
  1048. + * @ORM\Entity
  1049. + */
  1050. +class ContractingOfficerLookup
  1051. +{
  1052. +    /**
  1053. +     * @var integer $id
  1054. +     *
  1055. +     * @ORM\Column(name="id", type="integer")
  1056. +     * @ORM\Id
  1057. +     * @ORM\GeneratedValue(strategy="AUTO")
  1058. +     */
  1059. +    private $id;
  1060. +
  1061. +    /**
  1062. +     * @var integer $contractingOfficerId
  1063. +     *
  1064. +     * @ORM\Column(name="contractingOfficerId", type="integer")
  1065. +     */
  1066. +    private $contractingOfficerId;
  1067. +
  1068. +    /**
  1069. +     * @var integer $mentorId
  1070. +     *
  1071. +     * @ORM\Column(name="mentorId", type="integer")
  1072. +     */
  1073. +    private $mentorId;
  1074. +
  1075. +    /**
  1076. +     * @var integer $protegeID
  1077. +     *
  1078. +     * @ORM\Column(name="protegeID", type="integer")
  1079. +     */
  1080. +    private $protegeID;
  1081. +
  1082. +
  1083. +    /**
  1084. +     * Get id
  1085. +     *
  1086. +     * @return integer
  1087. +     */
  1088. +    public function getId()
  1089. +    {
  1090. +        return $this->id;
  1091. +    }
  1092. +
  1093. +    /**
  1094. +     * Set contractingOfficerId
  1095. +     *
  1096. +     * @param integer $contractingOfficerId
  1097. +     */
  1098. +    public function setContractingOfficerId($contractingOfficerId)
  1099. +    {
  1100. +        $this->contractingOfficerId = $contractingOfficerId;
  1101. +    }
  1102. +
  1103. +    /**
  1104. +     * Get contractingOfficerId
  1105. +     *
  1106. +     * @return integer
  1107. +     */
  1108. +    public function getContractingOfficerId()
  1109. +    {
  1110. +        return $this->contractingOfficerId;
  1111. +    }
  1112. +
  1113. +    /**
  1114. +     * Set mentorId
  1115. +     *
  1116. +     * @param integer $mentorId
  1117. +     */
  1118. +    public function setMentorId($mentorId)
  1119. +    {
  1120. +        $this->mentorId = $mentorId;
  1121. +    }
  1122. +
  1123. +    /**
  1124. +     * Get mentorId
  1125. +     *
  1126. +     * @return integer
  1127. +     */
  1128. +    public function getMentorId()
  1129. +    {
  1130. +        return $this->mentorId;
  1131. +    }
  1132. +
  1133. +    /**
  1134. +     * Set protegeID
  1135. +     *
  1136. +     * @param integer $protegeID
  1137. +     */
  1138. +    public function setProtegeID($protegeID)
  1139. +    {
  1140. +        $this->protegeID = $protegeID;
  1141. +    }
  1142. +
  1143. +    /**
  1144. +     * Get protegeID
  1145. +     *
  1146. +     * @return integer
  1147. +     */
  1148. +    public function getProtegeID()
  1149. +    {
  1150. +        return $this->protegeID;
  1151. +    }
  1152. +}
  1153. \ No newline at end of file
  1154. diff --git a/src/AQS/MprotBundle/Entity/DevelopmentAssistanceKeywords.php b/src/AQS/MprotBundle/Entity/DevelopmentAssistanceKeywords.php
  1155. new file mode 100644
  1156. index 0000000..831a396
  1157. --- /dev/null
  1158. +++ b/src/AQS/MprotBundle/Entity/DevelopmentAssistanceKeywords.php
  1159. @@ -0,0 +1,92 @@
  1160. +<?php
  1161. +
  1162. +namespace AQS\MprotBundle\Entity;
  1163. +
  1164. +use Doctrine\ORM\Mapping as ORM;
  1165. +
  1166. +/**
  1167. + * AQS\MprotBundle\Entity\DevelopmentAssistanceKeywords
  1168. + *
  1169. + * @ORM\Table()
  1170. + * @ORM\Entity
  1171. + */
  1172. +class DevelopmentAssistanceKeywords
  1173. +{
  1174. +    /**
  1175. +     * @var integer $id
  1176. +     *
  1177. +     * @ORM\Column(name="id", type="integer")
  1178. +     * @ORM\Id
  1179. +     * @ORM\GeneratedValue(strategy="AUTO")
  1180. +     */
  1181. +    private $id;
  1182. +
  1183. +    /**
  1184. +     * @var string $keyword
  1185. +     *
  1186. +     * @ORM\Column(name="keyword", type="string")
  1187. +     */
  1188. +    private $keyword;
  1189. +
  1190. +    /**
  1191. +     * @var smallint $active
  1192. +     *
  1193. +     * @ORM\Column(name="active", type="smallint")
  1194. +     */
  1195. +    private $active;
  1196. +
  1197. +
  1198. +    /**
  1199. +     * Get id
  1200. +     *
  1201. +     * @return integer
  1202. +     */
  1203. +    public function getId()
  1204. +    {
  1205. +        return $this->id;
  1206. +    }
  1207. +
  1208. +    /**
  1209. +     * Set keyword
  1210. +     *
  1211. +     * @param string $keyword
  1212. +     */
  1213. +    public function setKeyword($keyword)
  1214. +    {
  1215. +        $this->keyword = $keyword;
  1216. +    }
  1217. +
  1218. +    /**
  1219. +     * Get keyword
  1220. +     *
  1221. +     * @return string
  1222. +     */
  1223. +    public function getKeyword()
  1224. +    {
  1225. +        return $this->keyword;
  1226. +    }
  1227. +
  1228. +    /**
  1229. +     * Set active
  1230. +     *
  1231. +     * @param smallint $active
  1232. +     */
  1233. +    public function setActive($active)
  1234. +    {
  1235. +        $this->active = $active;
  1236. +    }
  1237. +
  1238. +    /**
  1239. +     * Get active
  1240. +     *
  1241. +     * @return smallint
  1242. +     */
  1243. +    public function getActive()
  1244. +    {
  1245. +       if (!is_null($this->active)) {
  1246. +           return (bool)$this->active;
  1247. +       } else {
  1248. +           return $this->active;
  1249. +       }
  1250. +    }
  1251. +}
  1252. \ No newline at end of file
  1253. diff --git a/src/AQS/MprotBundle/Entity/Document.php b/src/AQS/MprotBundle/Entity/Document.php
  1254. new file mode 100644
  1255. index 0000000..4e12820
  1256. --- /dev/null
  1257. +++ b/src/AQS/MprotBundle/Entity/Document.php
  1258. @@ -0,0 +1,223 @@
  1259. +<?php
  1260. +
  1261. +namespace AQS\MprotBundle\Entity;
  1262. +
  1263. +use Doctrine\ORM\Mapping as ORM;
  1264. +
  1265. +/**
  1266. + * AQS\MprotBundle\Entity\Document
  1267. + *
  1268. + * @ORM\Table()
  1269. + * @ORM\Entity
  1270. + */
  1271. +class Document
  1272. +{
  1273. +    /**
  1274. +     * @var integer $id
  1275. +     *
  1276. +     * @ORM\Column(name="id", type="integer")
  1277. +     * @ORM\Id
  1278. +     * @ORM\GeneratedValue(strategy="AUTO")
  1279. +     */
  1280. +    private $id;
  1281. +
  1282. +    /**
  1283. +     * @var string $docTitle
  1284. +     *
  1285. +     * @ORM\Column(name="docTitle", type="string", length=255)
  1286. +     */
  1287. +    private $docTitle;
  1288. +
  1289. +    /**
  1290. +     * @var string $docType
  1291. +     *
  1292. +     * @ORM\Column(name="docType", type="string", length=50)
  1293. +     */
  1294. +    private $docType;
  1295. +
  1296. +    /**
  1297. +     * @var datetime $dateUploaded
  1298. +     *
  1299. +     * @ORM\Column(name="dateUploaded", type="datetime")
  1300. +     */
  1301. +    private $dateUploaded;
  1302. +
  1303. +    /**
  1304. +     * @var string $uploadedBy
  1305. +     *
  1306. +     * @ORM\Column(name="uploadedBy", type="string", length=50)
  1307. +     */
  1308. +    private $uploadedBy;
  1309. +
  1310. +    /**
  1311. +     * @var integer $aggreementID
  1312. +     *
  1313. +     * @ORM\Column(name="aggreementID", type="integer")
  1314. +     */
  1315. +    private $aggreementID;
  1316. +
  1317. +    /**
  1318. +     * @var datetime $created_date
  1319. +     *
  1320. +     * @ORM\Column(name="created_date", type="datetime")
  1321. +     */
  1322. +    private $created_date;
  1323. +
  1324. +    /**
  1325. +     * @var datetime $modified_date
  1326. +     *
  1327. +     * @ORM\Column(name="modified_date", type="datetime")
  1328. +     */
  1329. +    private $modified_date;
  1330. +
  1331. +
  1332. +    /**
  1333. +     * Get id
  1334. +     *
  1335. +     * @return integer
  1336. +     */
  1337. +    public function getId()
  1338. +    {
  1339. +        return $this->id;
  1340. +    }
  1341. +
  1342. +    /**
  1343. +     * Set docTitle
  1344. +     *
  1345. +     * @param string $docTitle
  1346. +     */
  1347. +    public function setDocTitle($docTitle)
  1348. +    {
  1349. +        $this->docTitle = $docTitle;
  1350. +    }
  1351. +
  1352. +    /**
  1353. +     * Get docTitle
  1354. +     *
  1355. +     * @return string
  1356. +     */
  1357. +    public function getDocTitle()
  1358. +    {
  1359. +        return $this->docTitle;
  1360. +    }
  1361. +
  1362. +    /**
  1363. +     * Set docType
  1364. +     *
  1365. +     * @param string $docType
  1366. +     */
  1367. +    public function setDocType($docType)
  1368. +    {
  1369. +        $this->docType = $docType;
  1370. +    }
  1371. +
  1372. +    /**
  1373. +     * Get docType
  1374. +     *
  1375. +     * @return string
  1376. +     */
  1377. +    public function getDocType()
  1378. +    {
  1379. +        return $this->docType;
  1380. +    }
  1381. +
  1382. +    /**
  1383. +     * Set dateUploaded
  1384. +     *
  1385. +     * @param datetime $dateUploaded
  1386. +     */
  1387. +    public function setDateUploaded($dateUploaded)
  1388. +    {
  1389. +        $this->dateUploaded = $dateUploaded;
  1390. +    }
  1391. +
  1392. +    /**
  1393. +     * Get dateUploaded
  1394. +     *
  1395. +     * @return datetime
  1396. +     */
  1397. +    public function getDateUploaded()
  1398. +    {
  1399. +        return $this->dateUploaded;
  1400. +    }
  1401. +
  1402. +    /**
  1403. +     * Set uploadedBy
  1404. +     *
  1405. +     * @param string $uploadedBy
  1406. +     */
  1407. +    public function setUploadedBy($uploadedBy)
  1408. +    {
  1409. +        $this->uploadedBy = $uploadedBy;
  1410. +    }
  1411. +
  1412. +    /**
  1413. +     * Get uploadedBy
  1414. +     *
  1415. +     * @return string
  1416. +     */
  1417. +    public function getUploadedBy()
  1418. +    {
  1419. +        return $this->uploadedBy;
  1420. +    }
  1421. +
  1422. +    /**
  1423. +     * Set aggreementID
  1424. +     *
  1425. +     * @param integer $aggreementID
  1426. +     */
  1427. +    public function setAggreementID($aggreementID)
  1428. +    {
  1429. +        $this->aggreementID = $aggreementID;
  1430. +    }
  1431. +
  1432. +    /**
  1433. +     * Get aggreementID
  1434. +     *
  1435. +     * @return integer
  1436. +     */
  1437. +    public function getAggreementID()
  1438. +    {
  1439. +        return $this->aggreementID;
  1440. +    }
  1441. +
  1442. +    /**
  1443. +     * Set created_date
  1444. +     *
  1445. +     * @param datetime $createdDate
  1446. +     */
  1447. +    public function setCreatedDate($createdDate)
  1448. +    {
  1449. +        $this->created_date = $createdDate;
  1450. +    }
  1451. +
  1452. +    /**
  1453. +     * Get created_date
  1454. +     *
  1455. +     * @return datetime
  1456. +     */
  1457. +    public function getCreatedDate()
  1458. +    {
  1459. +        return $this->created_date;
  1460. +    }
  1461. +
  1462. +    /**
  1463. +     * Set modified_date
  1464. +     *
  1465. +     * @param datetime $modifiedDate
  1466. +     */
  1467. +    public function setModifiedDate($modifiedDate)
  1468. +    {
  1469. +        $this->modified_date = $modifiedDate;
  1470. +    }
  1471. +
  1472. +    /**
  1473. +     * Get modified_date
  1474. +     *
  1475. +     * @return datetime
  1476. +     */
  1477. +    public function getModifiedDate()
  1478. +    {
  1479. +        return $this->modified_date;
  1480. +    }
  1481. +}
  1482. \ No newline at end of file
  1483. diff --git a/src/AQS/MprotBundle/Entity/DocumentType.php b/src/AQS/MprotBundle/Entity/DocumentType.php
  1484. new file mode 100644
  1485. index 0000000..2b69ebd
  1486. --- /dev/null
  1487. +++ b/src/AQS/MprotBundle/Entity/DocumentType.php
  1488. @@ -0,0 +1,61 @@
  1489. +<?php
  1490. +
  1491. +namespace AQS\MprotBundle\Entity;
  1492. +
  1493. +use Doctrine\ORM\Mapping as ORM;
  1494. +
  1495. +/**
  1496. + * AQS\MprotBundle\Entity\DocumentType
  1497. + *
  1498. + * @ORM\Table()
  1499. + * @ORM\Entity
  1500. + */
  1501. +class DocumentType
  1502. +{
  1503. +    /**
  1504. +     * @var integer $id
  1505. +     *
  1506. +     * @ORM\Column(name="id", type="integer")
  1507. +     * @ORM\Id
  1508. +     * @ORM\GeneratedValue(strategy="AUTO")
  1509. +     */
  1510. +    private $id;
  1511. +
  1512. +    /**
  1513. +     * @var string $documentType
  1514. +     *
  1515. +     * @ORM\Column(name="documentType", type="string")
  1516. +     */
  1517. +    private $documentType;
  1518. +
  1519. +
  1520. +    /**
  1521. +     * Get id
  1522. +     *
  1523. +     * @return integer
  1524. +     */
  1525. +    public function getId()
  1526. +    {
  1527. +        return $this->id;
  1528. +    }
  1529. +
  1530. +    /**
  1531. +     * Set documentType
  1532. +     *
  1533. +     * @param string $documentType
  1534. +     */
  1535. +    public function setDocumentType($documentType)
  1536. +    {
  1537. +        $this->documentType = $documentType;
  1538. +    }
  1539. +
  1540. +    /**
  1541. +     * Get documentType
  1542. +     *
  1543. +     * @return string
  1544. +     */
  1545. +    public function getDocumentType()
  1546. +    {
  1547. +        return $this->documentType;
  1548. +    }
  1549. +}
  1550. \ No newline at end of file
  1551. diff --git a/src/AQS/MprotBundle/Entity/DocumentTypeRepository.php b/src/AQS/MprotBundle/Entity/DocumentTypeRepository.php
  1552. new file mode 100644
  1553. index 0000000..1740ca2
  1554. --- /dev/null
  1555. +++ b/src/AQS/MprotBundle/Entity/DocumentTypeRepository.php
  1556. @@ -0,0 +1,19 @@
  1557. +<?php
  1558. +/**
  1559. + * @author     Kshema Vargheese <kvargheese@aetherquest.com>
  1560. + */
  1561. +namespace AQS\MprotBundle\Entity;
  1562. +use Doctrine\ORM\EntityRepository;
  1563. +
  1564. +class DocumentTypeRepository extends EntityRepository
  1565. +{
  1566. +     /**
  1567. +      * @static
  1568. +      * @return AppRepositoryUserRepository
  1569. +      */
  1570. +     public static function get ()
  1571. +     {
  1572. +         $em = Registry::getInstance()->get('em');
  1573. +         return $em->getRepository('DocumentType');
  1574. +     }
  1575. +}
  1576. diff --git a/src/AQS/MprotBundle/Entity/Extension.php b/src/AQS/MprotBundle/Entity/Extension.php
  1577. new file mode 100644
  1578. index 0000000..ccae3ad
  1579. --- /dev/null
  1580. +++ b/src/AQS/MprotBundle/Entity/Extension.php
  1581. @@ -0,0 +1,304 @@
  1582. +<?php
  1583. +
  1584. +namespace AQS\MprotBundle\Entity;
  1585. +
  1586. +use Doctrine\ORM\Mapping as ORM;
  1587. +
  1588. +/**
  1589. + * AQS\MprotBundle\Entity\Extension
  1590. + *
  1591. + * @ORM\Table()
  1592. + * @ORM\Entity
  1593. + */
  1594. +class Extension
  1595. +{
  1596. +    /**
  1597. +     * @var integer $id
  1598. +     *
  1599. +     * @ORM\Column(name="id", type="integer")
  1600. +     * @ORM\Id
  1601. +     * @ORM\GeneratedValue(strategy="AUTO")
  1602. +     */
  1603. +    private $id;
  1604. +
  1605. +    /**
  1606. +     * @var datetime $dateRequested
  1607. +     *
  1608. +     * @ORM\Column(name="dateRequested", type="datetime")
  1609. +     */
  1610. +    private $dateRequested;
  1611. +
  1612. +    /**
  1613. +     * @var string $status
  1614. +     *
  1615. +     * @ORM\Column(name="status", type="string", length=20)
  1616. +     */
  1617. +    private $status;
  1618. +
  1619. +    /**
  1620. +     * @var datetime $decisionDate
  1621. +     *
  1622. +     * @ORM\Column(name="decisionDate", type="datetime")
  1623. +     */
  1624. +    private $decisionDate;
  1625. +
  1626. +    /**
  1627. +     * @var datetime $endDate
  1628. +     *
  1629. +     * @ORM\Column(name="endDate", type="datetime")
  1630. +     */
  1631. +    private $endDate;
  1632. +
  1633. +    /**
  1634. +     * @var text $purpose
  1635. +     *
  1636. +     * @ORM\Column(name="purpose", type="text")
  1637. +     */
  1638. +    private $purpose;
  1639. +
  1640. +    /**
  1641. +     * @var integer $requestNumber
  1642. +     *
  1643. +     * @ORM\Column(name="requestNumber", type="integer")
  1644. +     */
  1645. +    private $requestNumber;
  1646. +
  1647. +    /**
  1648. +     * @var text $disapprovedReason
  1649. +     *
  1650. +     * @ORM\Column(name="disapprovedReason", type="text")
  1651. +     */
  1652. +    private $disapprovedReason;
  1653. +
  1654. +    /**
  1655. +     * @var integer $agreementID
  1656. +     *
  1657. +     * @ORM\Column(name="agreementID", type="integer")
  1658. +     */
  1659. +    private $agreementID;
  1660. +
  1661. +    /**
  1662. +     * @var datetime $created_date
  1663. +     *
  1664. +     * @ORM\Column(name="created_date", type="datetime")
  1665. +     */
  1666. +    private $created_date;
  1667. +
  1668. +    /**
  1669. +     * @var datetime $modified_date
  1670. +     *
  1671. +     * @ORM\Column(name="modified_date", type="datetime")
  1672. +     */
  1673. +    private $modified_date;
  1674. +
  1675. +
  1676. +    /**
  1677. +     * Get id
  1678. +     *
  1679. +     * @return integer
  1680. +     */
  1681. +    public function getId()
  1682. +    {
  1683. +        return $this->id;
  1684. +    }
  1685. +
  1686. +    /**
  1687. +     * Set dateRequested
  1688. +     *
  1689. +     * @param datetime $dateRequested
  1690. +     */
  1691. +    public function setDateRequested($dateRequested)
  1692. +    {
  1693. +        $this->dateRequested = $dateRequested;
  1694. +    }
  1695. +
  1696. +    /**
  1697. +     * Get dateRequested
  1698. +     *
  1699. +     * @return datetime
  1700. +     */
  1701. +    public function getDateRequested()
  1702. +    {
  1703. +        return $this->dateRequested;
  1704. +    }
  1705. +
  1706. +    /**
  1707. +     * Set status
  1708. +     *
  1709. +     * @param string $status
  1710. +     */
  1711. +    public function setStatus($status)
  1712. +    {
  1713. +        $this->status = $status;
  1714. +    }
  1715. +
  1716. +    /**
  1717. +     * Get status
  1718. +     *
  1719. +     * @return string
  1720. +     */
  1721. +    public function getStatus()
  1722. +    {
  1723. +        return $this->status;
  1724. +    }
  1725. +
  1726. +    /**
  1727. +     * Set decisionDate
  1728. +     *
  1729. +     * @param datetime $decisionDate
  1730. +     */
  1731. +    public function setDecisionDate($decisionDate)
  1732. +    {
  1733. +        $this->decisionDate = $decisionDate;
  1734. +    }
  1735. +
  1736. +    /**
  1737. +     * Get decisionDate
  1738. +     *
  1739. +     * @return datetime
  1740. +     */
  1741. +    public function getDecisionDate()
  1742. +    {
  1743. +        return $this->decisionDate;
  1744. +    }
  1745. +
  1746. +    /**
  1747. +     * Set endDate
  1748. +     *
  1749. +     * @param datetime $endDate
  1750. +     */
  1751. +    public function setEndDate($endDate)
  1752. +    {
  1753. +        $this->endDate = $endDate;
  1754. +    }
  1755. +
  1756. +    /**
  1757. +     * Get endDate
  1758. +     *
  1759. +     * @return datetime
  1760. +     */
  1761. +    public function getEndDate()
  1762. +    {
  1763. +        return $this->endDate;
  1764. +    }
  1765. +
  1766. +    /**
  1767. +     * Set purpose
  1768. +     *
  1769. +     * @param text $purpose
  1770. +     */
  1771. +    public function setPurpose($purpose)
  1772. +    {
  1773. +        $this->purpose = $purpose;
  1774. +    }
  1775. +
  1776. +    /**
  1777. +     * Get purpose
  1778. +     *
  1779. +     * @return text
  1780. +     */
  1781. +    public function getPurpose()
  1782. +    {
  1783. +        return $this->purpose;
  1784. +    }
  1785. +
  1786. +    /**
  1787. +     * Set requestNumber
  1788. +     *
  1789. +     * @param integer $requestNumber
  1790. +     */
  1791. +    public function setRequestNumber($requestNumber)
  1792. +    {
  1793. +        $this->requestNumber = $requestNumber;
  1794. +    }
  1795. +
  1796. +    /**
  1797. +     * Get requestNumber
  1798. +     *
  1799. +     * @return integer
  1800. +     */
  1801. +    public function getRequestNumber()
  1802. +    {
  1803. +        return $this->requestNumber;
  1804. +    }
  1805. +
  1806. +    /**
  1807. +     * Set disapprovedReason
  1808. +     *
  1809. +     * @param text $disapprovedReason
  1810. +     */
  1811. +    public function setDisapprovedReason($disapprovedReason)
  1812. +    {
  1813. +        $this->disapprovedReason = $disapprovedReason;
  1814. +    }
  1815. +
  1816. +    /**
  1817. +     * Get disapprovedReason
  1818. +     *
  1819. +     * @return text
  1820. +     */
  1821. +    public function getDisapprovedReason()
  1822. +    {
  1823. +        return $this->disapprovedReason;
  1824. +    }
  1825. +
  1826. +    /**
  1827. +     * Set agreementID
  1828. +     *
  1829. +     * @param integer $agreementID
  1830. +     */
  1831. +    public function setAgreementID($agreementID)
  1832. +    {
  1833. +        $this->agreementID = $agreementID;
  1834. +    }
  1835. +
  1836. +    /**
  1837. +     * Get agreementID
  1838. +     *
  1839. +     * @return integer
  1840. +     */
  1841. +    public function getAgreementID()
  1842. +    {
  1843. +        return $this->agreementID;
  1844. +    }
  1845. +
  1846. +    /**
  1847. +     * Set created_date
  1848. +     *
  1849. +     * @param datetime $createdDate
  1850. +     */
  1851. +    public function setCreatedDate($createdDate)
  1852. +    {
  1853. +        $this->created_date = $createdDate;
  1854. +    }
  1855. +
  1856. +    /**
  1857. +     * Get created_date
  1858. +     *
  1859. +     * @return datetime
  1860. +     */
  1861. +    public function getCreatedDate()
  1862. +    {
  1863. +        return $this->created_date;
  1864. +    }
  1865. +
  1866. +    /**
  1867. +     * Set modified_date
  1868. +     *
  1869. +     * @param datetime $modifiedDate
  1870. +     */
  1871. +    public function setModifiedDate($modifiedDate)
  1872. +    {
  1873. +        $this->modified_date = $modifiedDate;
  1874. +    }
  1875. +
  1876. +    /**
  1877. +     * Get modified_date
  1878. +     *
  1879. +     * @return datetime
  1880. +     */
  1881. +    public function getModifiedDate()
  1882. +    {
  1883. +        return $this->modified_date;
  1884. +    }
  1885. +}
  1886. \ No newline at end of file
  1887. diff --git a/src/AQS/MprotBundle/Entity/Mentor.php b/src/AQS/MprotBundle/Entity/Mentor.php
  1888. new file mode 100644
  1889. index 0000000..2e71662
  1890. --- /dev/null
  1891. +++ b/src/AQS/MprotBundle/Entity/Mentor.php
  1892. @@ -0,0 +1,223 @@
  1893. +<?php
  1894. +
  1895. +namespace AQS\MprotBundle\Entity;
  1896. +
  1897. +use Doctrine\ORM\Mapping as ORM;
  1898. +
  1899. +/**
  1900. + * AQS\MprotBundle\Entity\Mentor
  1901. + *
  1902. + * @ORM\Table()
  1903. + * @ORM\Entity
  1904. + */
  1905. +class Mentor
  1906. +{
  1907. +    /**
  1908. +     * @var integer $id
  1909. +     *
  1910. +     * @ORM\Column(name="id", type="integer")
  1911. +     * @ORM\Id
  1912. +     * @ORM\GeneratedValue(strategy="AUTO")
  1913. +     */
  1914. +    private $id;
  1915. +
  1916. +    /**
  1917. +     * @var string $company
  1918. +     *
  1919. +     * @ORM\Column(name="company", type="string", length=50)
  1920. +     */
  1921. +    private $company;
  1922. +
  1923. +    /**
  1924. +     * @var string $firstName
  1925. +     *
  1926. +     * @ORM\Column(name="firstName", type="string", length=50)
  1927. +     */
  1928. +    private $firstName;
  1929. +
  1930. +    /**
  1931. +     * @var string $lastName
  1932. +     *
  1933. +     * @ORM\Column(name="lastName", type="string", length=50)
  1934. +     */
  1935. +    private $lastName;
  1936. +
  1937. +    /**
  1938. +     * @var integer $phone
  1939. +     *
  1940. +     * @ORM\Column(name="phone", type="integer", length=10)
  1941. +     */
  1942. +    private $phone;
  1943. +
  1944. +    /**
  1945. +     * @var string $email
  1946. +     *
  1947. +     * @ORM\Column(name="email", type="string", length=100)
  1948. +     */
  1949. +    private $email;
  1950. +
  1951. +    /**
  1952. +     * @var datetime $created_date
  1953. +     *
  1954. +     * @ORM\Column(name="created_date", type="datetime")
  1955. +     */
  1956. +    private $created_date;
  1957. +
  1958. +    /**
  1959. +     * @var datetime $modified_date
  1960. +     *
  1961. +     * @ORM\Column(name="modified_date", type="datetime")
  1962. +     */
  1963. +    private $modified_date;
  1964. +
  1965. +
  1966. +    /**
  1967. +     * Get id
  1968. +     *
  1969. +     * @return integer
  1970. +     */
  1971. +    public function getId()
  1972. +    {
  1973. +        return $this->id;
  1974. +    }
  1975. +
  1976. +    /**
  1977. +     * Set company
  1978. +     *
  1979. +     * @param string $company
  1980. +     */
  1981. +    public function setCompany($company)
  1982. +    {
  1983. +        $this->company = $company;
  1984. +    }
  1985. +
  1986. +    /**
  1987. +     * Get company
  1988. +     *
  1989. +     * @return string
  1990. +     */
  1991. +    public function getCompany()
  1992. +    {
  1993. +        return $this->company;
  1994. +    }
  1995. +
  1996. +    /**
  1997. +     * Set firstName
  1998. +     *
  1999. +     * @param string $firstName
  2000. +     */
  2001. +    public function setFirstName($firstName)
  2002. +    {
  2003. +        $this->firstName = $firstName;
  2004. +    }
  2005. +
  2006. +    /**
  2007. +     * Get firstName
  2008. +     *
  2009. +     * @return string
  2010. +     */
  2011. +    public function getFirstName()
  2012. +    {
  2013. +        return $this->firstName;
  2014. +    }
  2015. +
  2016. +    /**
  2017. +     * Set lastName
  2018. +     *
  2019. +     * @param string $lastName
  2020. +     */
  2021. +    public function setLastName($lastName)
  2022. +    {
  2023. +        $this->lastName = $lastName;
  2024. +    }
  2025. +
  2026. +    /**
  2027. +     * Get lastName
  2028. +     *
  2029. +     * @return string
  2030. +     */
  2031. +    public function getLastName()
  2032. +    {
  2033. +        return $this->lastName;
  2034. +    }
  2035. +
  2036. +    /**
  2037. +     * Set phone
  2038. +     *
  2039. +     * @param integer $phone
  2040. +     */
  2041. +    public function setPhone($phone)
  2042. +    {
  2043. +        $this->phone = $phone;
  2044. +    }
  2045. +
  2046. +    /**
  2047. +     * Get phone
  2048. +     *
  2049. +     * @return integer
  2050. +     */
  2051. +    public function getPhone()
  2052. +    {
  2053. +        return $this->phone;
  2054. +    }
  2055. +
  2056. +    /**
  2057. +     * Set email
  2058. +     *
  2059. +     * @param string $email
  2060. +     */
  2061. +    public function setEmail($email)
  2062. +    {
  2063. +        $this->email = $email;
  2064. +    }
  2065. +
  2066. +    /**
  2067. +     * Get email
  2068. +     *
  2069. +     * @return string
  2070. +     */
  2071. +    public function getEmail()
  2072. +    {
  2073. +        return $this->email;
  2074. +    }
  2075. +
  2076. +    /**
  2077. +     * Set created_date
  2078. +     *
  2079. +     * @param datetime $createdDate
  2080. +     */
  2081. +    public function setCreatedDate($createdDate)
  2082. +    {
  2083. +        $this->created_date = $createdDate;
  2084. +    }
  2085. +
  2086. +    /**
  2087. +     * Get created_date
  2088. +     *
  2089. +     * @return datetime
  2090. +     */
  2091. +    public function getCreatedDate()
  2092. +    {
  2093. +        return $this->created_date;
  2094. +    }
  2095. +
  2096. +    /**
  2097. +     * Set modified_date
  2098. +     *
  2099. +     * @param datetime $modifiedDate
  2100. +     */
  2101. +    public function setModifiedDate($modifiedDate)
  2102. +    {
  2103. +        $this->modified_date = $modifiedDate;
  2104. +    }
  2105. +
  2106. +    /**
  2107. +     * Get modified_date
  2108. +     *
  2109. +     * @return datetime
  2110. +     */
  2111. +    public function getModifiedDate()
  2112. +    {
  2113. +        return $this->modified_date;
  2114. +    }
  2115. +}
  2116. \ No newline at end of file
  2117. diff --git a/src/AQS/MprotBundle/Entity/Notification.php b/src/AQS/MprotBundle/Entity/Notification.php
  2118. index 22f2949..2ab5450 100644
  2119. --- a/src/AQS/MprotBundle/Entity/Notification.php
  2120. +++ b/src/AQS/MprotBundle/Entity/Notification.php
  2121. @@ -50,13 +50,6 @@ class Notification
  2122.      private $email;
  2123.  
  2124.      /**
  2125. -     * @var string $title
  2126. -     *
  2127. -     * @ORM\Column(name="title", type="string", length=255)
  2128. -     */
  2129. -    private $title;
  2130. -
  2131. -    /**
  2132.       * @var text $message
  2133.       *
  2134.       * @ORM\Column(name="message", type="text")
  2135. @@ -154,25 +147,6 @@ class Notification
  2136.          return $this->email;
  2137.      }
  2138.  
  2139. -    /**
  2140. -     * Set title
  2141. -     *
  2142. -     * @param string $title
  2143. -     */
  2144. -    public function setTitle($title)
  2145. -    {
  2146. -        $this->title = $title;
  2147. -    }
  2148. -
  2149. -    /**
  2150. -     * Get title
  2151. -     *
  2152. -     * @return string
  2153. -     */
  2154. -    public function getTitle()
  2155. -    {
  2156. -        return $this->title;
  2157. -    }
  2158.  
  2159.      /**
  2160.       * Set message
  2161. diff --git a/src/AQS/MprotBundle/Entity/ProgressReport.php b/src/AQS/MprotBundle/Entity/ProgressReport.php
  2162. new file mode 100644
  2163. index 0000000..52a7d57
  2164. --- /dev/null
  2165. +++ b/src/AQS/MprotBundle/Entity/ProgressReport.php
  2166. @@ -0,0 +1,196 @@
  2167. +<?php
  2168. +
  2169. +namespace AQS\MprotBundle\Entity;
  2170. +
  2171. +use Doctrine\ORM\Mapping as ORM;
  2172. +
  2173. +/**
  2174. + * AQS\MprotBundle\Entity\ProgressReport
  2175. + *
  2176. + * @ORM\Table()
  2177. + * @ORM\Entity
  2178. + */
  2179. +class ProgressReport
  2180. +{
  2181. +    /**
  2182. +     * @var integer $id
  2183. +     *
  2184. +     * @ORM\Column(name="id", type="integer")
  2185. +     * @ORM\Id
  2186. +     * @ORM\GeneratedValue(strategy="AUTO")
  2187. +     */
  2188. +    private $id;
  2189. +
  2190. +    /**
  2191. +     * @var date $dueDate
  2192. +     *
  2193. +     * @ORM\Column(name="dueDate", type="date")
  2194. +     */
  2195. +    private $dueDate;
  2196. +
  2197. +    /**
  2198. +     * @var string $status
  2199. +     *
  2200. +     * @ORM\Column(name="status", type="string", length=20)
  2201. +     */
  2202. +    private $status;
  2203. +
  2204. +    /**
  2205. +     * @var date $submissionDate
  2206. +     *
  2207. +     * @ORM\Column(name="submissionDate", type="date")
  2208. +     */
  2209. +    private $submissionDate;
  2210. +
  2211. +    /**
  2212. +     * @var integer $daysOverdue
  2213. +     *
  2214. +     * @ORM\Column(name="daysOverdue", type="integer")
  2215. +     */
  2216. +    private $daysOverdue;
  2217. +
  2218. +    /**
  2219. +     * @var string $reportFile
  2220. +     *
  2221. +     * @ORM\Column(name="reportFile", type="string")
  2222. +     */
  2223. +    private $reportFile;
  2224. +
  2225. +    /**
  2226. +     * @var integer $agreementID
  2227. +     *
  2228. +     * @ORM\Column(name="agreementID", type="integer")
  2229. +     */
  2230. +    private $agreementID;
  2231. +
  2232. +
  2233. +    /**
  2234. +     * Get id
  2235. +     *
  2236. +     * @return integer
  2237. +     */
  2238. +    public function getId()
  2239. +    {
  2240. +        return $this->id;
  2241. +    }
  2242. +
  2243. +    /**
  2244. +     * Set dueDate
  2245. +     *
  2246. +     * @param date $dueDate
  2247. +     */
  2248. +    public function setDueDate($dueDate)
  2249. +    {
  2250. +        $this->dueDate = $dueDate;
  2251. +    }
  2252. +
  2253. +    /**
  2254. +     * Get dueDate
  2255. +     *
  2256. +     * @return date
  2257. +     */
  2258. +    public function getDueDate()
  2259. +    {
  2260. +        return $this->dueDate;
  2261. +    }
  2262. +
  2263. +    /**
  2264. +     * Set status
  2265. +     *
  2266. +     * @param string $status
  2267. +     */
  2268. +    public function setStatus($status)
  2269. +    {
  2270. +        $this->status = $status;
  2271. +    }
  2272. +
  2273. +    /**
  2274. +     * Get status
  2275. +     *
  2276. +     * @return string
  2277. +     */
  2278. +    public function getStatus()
  2279. +    {
  2280. +        return $this->status;
  2281. +    }
  2282. +
  2283. +    /**
  2284. +     * Set submissionDate
  2285. +     *
  2286. +     * @param date $submissionDate
  2287. +     */
  2288. +    public function setSubmissionDate($submissionDate)
  2289. +    {
  2290. +        $this->submissionDate = $submissionDate;
  2291. +    }
  2292. +
  2293. +    /**
  2294. +     * Get submissionDate
  2295. +     *
  2296. +     * @return date
  2297. +     */
  2298. +    public function getSubmissionDate()
  2299. +    {
  2300. +        return $this->submissionDate;
  2301. +    }
  2302. +
  2303. +    /**
  2304. +     * Set daysOverdue
  2305. +     *
  2306. +     * @param integer $daysOverdue
  2307. +     */
  2308. +    public function setDaysOverdue($daysOverdue)
  2309. +    {
  2310. +        $this->daysOverdue = $daysOverdue;
  2311. +    }
  2312. +
  2313. +    /**
  2314. +     * Get daysOverdue
  2315. +     *
  2316. +     * @return integer
  2317. +     */
  2318. +    public function getDaysOverdue()
  2319. +    {
  2320. +        return $this->daysOverdue;
  2321. +    }
  2322. +
  2323. +    /**
  2324. +     * Set reportFile
  2325. +     *
  2326. +     * @param string $reportFile
  2327. +     */
  2328. +    public function setReportFile($reportFile)
  2329. +    {
  2330. +        $this->reportFile = $reportFile;
  2331. +    }
  2332. +
  2333. +    /**
  2334. +     * Get reportFile
  2335. +     *
  2336. +     * @return string
  2337. +     */
  2338. +    public function getReportFile()
  2339. +    {
  2340. +        return $this->reportFile;
  2341. +    }
  2342. +
  2343. +    /**
  2344. +     * Set agreementID
  2345. +     *
  2346. +     * @param integer $agreementID
  2347. +     */
  2348. +    public function setAgreementID($agreementID)
  2349. +    {
  2350. +        $this->agreementID = $agreementID;
  2351. +    }
  2352. +
  2353. +    /**
  2354. +     * Get agreementID
  2355. +     *
  2356. +     * @return integer
  2357. +     */
  2358. +    public function getAgreementID()
  2359. +    {
  2360. +        return $this->agreementID;
  2361. +    }
  2362. +}
  2363. \ No newline at end of file
  2364. diff --git a/src/AQS/MprotBundle/Entity/Protege.php b/src/AQS/MprotBundle/Entity/Protege.php
  2365. new file mode 100644
  2366. index 0000000..221f539
  2367. --- /dev/null
  2368. +++ b/src/AQS/MprotBundle/Entity/Protege.php
  2369. @@ -0,0 +1,250 @@
  2370. +<?php
  2371. +
  2372. +namespace AQS\MprotBundle\Entity;
  2373. +
  2374. +use Doctrine\ORM\Mapping as ORM;
  2375. +
  2376. +/**
  2377. + * AQS\MprotBundle\Entity\Protege
  2378. + *
  2379. + * @ORM\Table()
  2380. + * @ORM\Entity
  2381. + */
  2382. +class Protege
  2383. +{
  2384. +    /**
  2385. +     * @var integer $id
  2386. +     *
  2387. +     * @ORM\Column(name="id", type="integer")
  2388. +     * @ORM\Id
  2389. +     * @ORM\GeneratedValue(strategy="AUTO")
  2390. +     */
  2391. +    private $id;
  2392. +
  2393. +    /**
  2394. +     * @var string $company
  2395. +     *
  2396. +     * @ORM\Column(name="company", type="string", length=50)
  2397. +     */
  2398. +    private $company;
  2399. +
  2400. +    /**
  2401. +     * @var string $firstName
  2402. +     *
  2403. +     * @ORM\Column(name="firstName", type="string", length=50)
  2404. +     */
  2405. +    private $firstName;
  2406. +
  2407. +    /**
  2408. +     * @var string $lastName
  2409. +     *
  2410. +     * @ORM\Column(name="lastName", type="string", length=50)
  2411. +     */
  2412. +    private $lastName;
  2413. +
  2414. +    /**
  2415. +     * @var string $businessTitle
  2416. +     *
  2417. +     * @ORM\Column(name="businessTitle", type="string", length=50)
  2418. +     */
  2419. +    private $businessTitle;
  2420. +
  2421. +    /**
  2422. +     * @var integer $phone
  2423. +     *
  2424. +     * @ORM\Column(name="phone", type="integer", length=10)
  2425. +     */
  2426. +    private $phone;
  2427. +
  2428. +    /**
  2429. +     * @var string $email
  2430. +     *
  2431. +     * @ORM\Column(name="email", type="string", length=100)
  2432. +     */
  2433. +    private $email;
  2434. +
  2435. +    /**
  2436. +     * @var datetime $created_date
  2437. +     *
  2438. +     * @ORM\Column(name="created_date", type="datetime")
  2439. +     */
  2440. +    private $created_date;
  2441. +
  2442. +    /**
  2443. +     * @var datetime $modified_date
  2444. +     *
  2445. +     * @ORM\Column(name="modified_date", type="datetime")
  2446. +     */
  2447. +    private $modified_date;
  2448. +
  2449. +
  2450. +    /**
  2451. +     * Get id
  2452. +     *
  2453. +     * @return integer
  2454. +     */
  2455. +    public function getId()
  2456. +    {
  2457. +        return $this->id;
  2458. +    }
  2459. +
  2460. +    /**
  2461. +     * Set company
  2462. +     *
  2463. +     * @param string $company
  2464. +     */
  2465. +    public function setCompany($company)
  2466. +    {
  2467. +        $this->company = $company;
  2468. +    }
  2469. +
  2470. +    /**
  2471. +     * Get company
  2472. +     *
  2473. +     * @return string
  2474. +     */
  2475. +    public function getCompany()
  2476. +    {
  2477. +        return $this->company;
  2478. +    }
  2479. +
  2480. +    /**
  2481. +     * Set firstName
  2482. +     *
  2483. +     * @param string $firstName
  2484. +     */
  2485. +    public function setFirstName($firstName)
  2486. +    {
  2487. +        $this->firstName = $firstName;
  2488. +    }
  2489. +
  2490. +    /**
  2491. +     * Get firstName
  2492. +     *
  2493. +     * @return string
  2494. +     */
  2495. +    public function getFirstName()
  2496. +    {
  2497. +        return $this->firstName;
  2498. +    }
  2499. +
  2500. +    /**
  2501. +     * Set lastName
  2502. +     *
  2503. +     * @param string $lastName
  2504. +     */
  2505. +    public function setLastName($lastName)
  2506. +    {
  2507. +        $this->lastName = $lastName;
  2508. +    }
  2509. +
  2510. +    /**
  2511. +     * Get lastName
  2512. +     *
  2513. +     * @return string
  2514. +     */
  2515. +    public function getLastName()
  2516. +    {
  2517. +        return $this->lastName;
  2518. +    }
  2519. +
  2520. +    /**
  2521. +     * Set businessTitle
  2522. +     *
  2523. +     * @param string $businessTitle
  2524. +     */
  2525. +    public function setBusinessTitle($businessTitle)
  2526. +    {
  2527. +        $this->businessTitle = $businessTitle;
  2528. +    }
  2529. +
  2530. +    /**
  2531. +     * Get businessTitle
  2532. +     *
  2533. +     * @return string
  2534. +     */
  2535. +    public function getBusinessTitle()
  2536. +    {
  2537. +        return $this->businessTitle;
  2538. +    }
  2539. +
  2540. +    /**
  2541. +     * Set phone
  2542. +     *
  2543. +     * @param integer $phone
  2544. +     */
  2545. +    public function setPhone($phone)
  2546. +    {
  2547. +        $this->phone = $phone;
  2548. +    }
  2549. +
  2550. +    /**
  2551. +     * Get phone
  2552. +     *
  2553. +     * @return integer
  2554. +     */
  2555. +    public function getPhone()
  2556. +    {
  2557. +        return $this->phone;
  2558. +    }
  2559. +
  2560. +    /**
  2561. +     * Set email
  2562. +     *
  2563. +     * @param string $email
  2564. +     */
  2565. +    public function setEmail($email)
  2566. +    {
  2567. +        $this->email = $email;
  2568. +    }
  2569. +
  2570. +    /**
  2571. +     * Get email
  2572. +     *
  2573. +     * @return string
  2574. +     */
  2575. +    public function getEmail()
  2576. +    {
  2577. +        return $this->email;
  2578. +    }
  2579. +
  2580. +    /**
  2581. +     * Set created_date
  2582. +     *
  2583. +     * @param datetime $createdDate
  2584. +     */
  2585. +    public function setCreatedDate($createdDate)
  2586. +    {
  2587. +        $this->created_date = $createdDate;
  2588. +    }
  2589. +
  2590. +    /**
  2591. +     * Get created_date
  2592. +     *
  2593. +     * @return datetime
  2594. +     */
  2595. +    public function getCreatedDate()
  2596. +    {
  2597. +        return $this->created_date;
  2598. +    }
  2599. +
  2600. +    /**
  2601. +     * Set modified_date
  2602. +     *
  2603. +     * @param datetime $modifiedDate
  2604. +     */
  2605. +    public function setModifiedDate($modifiedDate)
  2606. +    {
  2607. +        $this->modified_date = $modifiedDate;
  2608. +    }
  2609. +
  2610. +    /**
  2611. +     * Get modified_date
  2612. +     *
  2613. +     * @return datetime
  2614. +     */
  2615. +    public function getModifiedDate()
  2616. +    {
  2617. +        return $this->modified_date;
  2618. +    }
  2619. +}
  2620. \ No newline at end of file
  2621. diff --git a/src/AQS/MprotBundle/Entity/UserRepository.php b/src/AQS/MprotBundle/Entity/UserRepository.php
  2622. new file mode 100644
  2623. index 0000000..3a28614
  2624. --- /dev/null
  2625. +++ b/src/AQS/MprotBundle/Entity/UserRepository.php
  2626. @@ -0,0 +1,19 @@
  2627. +<?php
  2628. +/**
  2629. + * @author     Kshema Vargheese <kvargheese@aetherquest.com>
  2630. + */
  2631. +namespace AQS\MprotBundle\Entity;
  2632. +use Doctrine\ORM\EntityRepository;
  2633. +
  2634. +class UserRepository extends EntityRepository
  2635. +{
  2636. +     /**
  2637. +      * @static
  2638. +      * @return AppRepositoryUserRepository
  2639. +      */
  2640. +     public static function get ()
  2641. +     {
  2642. +         $em = Registry::getInstance()->get('em');
  2643. +         return $em->getRepository('User');
  2644. +     }
  2645. +}
  2646. diff --git a/src/AQS/MprotBundle/Resources/config/routing.yml b/src/AQS/MprotBundle/Resources/config/routing.yml
  2647. index c54039f..819b56e 100644
  2648. --- a/src/AQS/MprotBundle/Resources/config/routing.yml
  2649. +++ b/src/AQS/MprotBundle/Resources/config/routing.yml
  2650. @@ -1,3 +1,27 @@
  2651.  AQSMprotBundle_homepage:
  2652.      pattern:  /
  2653.      defaults: { _controller: AQSMprotBundle:Default:index }
  2654. +_user:
  2655. +    resource: "@AQSMprotBundle/Controller/UserController.php"
  2656. +    type:     annotation
  2657. +    prefix:   admin/user
  2658. +_documentTypes:
  2659. +    resource: "@AQSMprotBundle/Controller/DocumentTypesController.php"
  2660. +    type:     annotation
  2661. +    prefix:   admin/documentTypes
  2662. +_developmentAssistanceKeywords:
  2663. +    resource: "@AQSMprotBundle/Controller/DevelopmentAssistanceKeywordsController.php"
  2664. +    type:     annotation
  2665. +    prefix:   admin/developmentAssistanceKeywords
  2666. +_businessClassifications:
  2667. +    resource: "@AQSMprotBundle/Controller/BusinessClassificationsController.php"
  2668. +    type:     annotation
  2669. +    prefix:   admin/businessClassifications
  2670. +_contractingOfficers:
  2671. +    resource: "@AQSMprotBundle/Controller/ContractingOfficersController.php"
  2672. +    type:     annotation
  2673. +    prefix:   admin/contractingOfficers
  2674. +_notifications:
  2675. +    resource: "@AQSMprotBundle/Controller/NotificationsController.php"
  2676. +    type:     annotation
  2677. +    prefix:   admin/notifications
  2678. \ No newline at end of file
  2679. diff --git a/src/AQS/MprotBundle/Resources/views/BusinessClassifications/add.html.twig b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/add.html.twig
  2680. new file mode 100644
  2681. index 0000000..520a173
  2682. --- /dev/null
  2683. +++ b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/add.html.twig
  2684. @@ -0,0 +1,4 @@
  2685. +<form action="{{ path('businessClassifications_add') }}" method="post" {{ form_enctype(form) }}>
  2686. +    {{ form_widget(form) }}
  2687. +    <input type="submit" />
  2688. +</form>
  2689. diff --git a/src/AQS/MprotBundle/Resources/views/BusinessClassifications/edit.html.twig b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/edit.html.twig
  2690. new file mode 100644
  2691. index 0000000..096efaf
  2692. --- /dev/null
  2693. +++ b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/edit.html.twig
  2694. @@ -0,0 +1,4 @@
  2695. +<form action="{{ path('businessClassifications_edit', { 'id': businessClassification.id }) }}" method="post" {{ form_enctype(form) }}>
  2696. +    {{ form_widget(form) }}
  2697. +    <input type="submit" />
  2698. +</form>
  2699. diff --git a/src/AQS/MprotBundle/Resources/views/BusinessClassifications/index.html.twig b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/index.html.twig
  2700. new file mode 100644
  2701. index 0000000..dd22e1d
  2702. --- /dev/null
  2703. +++ b/src/AQS/MprotBundle/Resources/views/BusinessClassifications/index.html.twig
  2704. @@ -0,0 +1,27 @@
  2705. +<div class='message'>
  2706. +   {{ app.session.flash('success') }}
  2707. +</div>
  2708. +<table border='1'>
  2709. +   <tr>
  2710. +       <th>Buttons</th>
  2711. +       <th>Development Assistance Keyword</th>
  2712. +       <th>Active</th>
  2713. +   </tr>
  2714. +   {% for businessClassification in businessClassifications %}
  2715. +       <tr>
  2716. +           <td>
  2717. +               <a href="{{ path('businessClassifications_edit', { 'id': businessClassification.id }) }}">Edit</a>
  2718. +           </td>
  2719. +           <td>{{businessClassification.classification}}</td>
  2720. +           {% if businessClassification.active %}
  2721. +               <td>Yes</td>
  2722. +           {% else %}
  2723. +               <td>No</td>
  2724. +           {% endif %}
  2725. +       </tr>
  2726. +   {% endfor %}
  2727. +</table>
  2728. +
  2729. +<div>
  2730. +   <input type="button" value="Add Business Classification" id="add_button" onclick='window.location.href = "{{ path('businessClassifications_add')}}"'/>
  2731. +</div>
  2732. diff --git a/src/AQS/MprotBundle/Resources/views/ContractingOfficers/add.html.twig b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/add.html.twig
  2733. new file mode 100644
  2734. index 0000000..a544727
  2735. --- /dev/null
  2736. +++ b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/add.html.twig
  2737. @@ -0,0 +1,4 @@
  2738. +<form action="{{ path('contractingOfficers_add') }}" method="post" {{ form_enctype(form) }}>
  2739. +    {{ form_widget(form) }}
  2740. +    <input type="submit" />
  2741. +</form>
  2742. diff --git a/src/AQS/MprotBundle/Resources/views/ContractingOfficers/edit.html.twig b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/edit.html.twig
  2743. new file mode 100644
  2744. index 0000000..673f53b
  2745. --- /dev/null
  2746. +++ b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/edit.html.twig
  2747. @@ -0,0 +1,4 @@
  2748. +<form action="{{ path('contractingOfficers_edit', { 'id': contractingOfficer.id }) }}" method="post" {{ form_enctype(form) }}>
  2749. +    {{ form_widget(form) }}
  2750. +    <input type="submit" />
  2751. +</form>
  2752. diff --git a/src/AQS/MprotBundle/Resources/views/ContractingOfficers/index.html.twig b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/index.html.twig
  2753. new file mode 100644
  2754. index 0000000..82a5872
  2755. --- /dev/null
  2756. +++ b/src/AQS/MprotBundle/Resources/views/ContractingOfficers/index.html.twig
  2757. @@ -0,0 +1,37 @@
  2758. +<div class='message'>
  2759. +   {{ app.session.flash('success') }}
  2760. +</div>
  2761. +<table border='1'>
  2762. +   <tr>
  2763. +       <th>Buttons</th>
  2764. +       <th>Fist Name</th>
  2765. +       <th>Last Name</th>
  2766. +       <th>Office</th>
  2767. +       <th>Business Title</th>
  2768. +       <th>Phone</th>
  2769. +       <th>Email</th>
  2770. +       <th>Status</th>
  2771. +   </tr>
  2772. +   {% for contractingOfficer in contractingOfficers %}
  2773. +       <tr>
  2774. +           <td>
  2775. +               <a href="{{ path('contractingOfficers_edit', { 'id': contractingOfficer.id }) }}">Edit</a>
  2776. +               <a href="{{ path('contractingOfficers_delete', { 'id': contractingOfficer.id }) }}" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
  2777. +           </td>
  2778. +           <td>{{contractingOfficer.firstName}}</td>
  2779. +           <td>{{contractingOfficer.lastName}}</td>
  2780. +           <td>{{contractingOfficer.office}}</td>
  2781. +           <td>{{contractingOfficer.title}}</td>
  2782. +           <td>{{contractingOfficer.phone}}</td>
  2783. +           <td>{{contractingOfficer.email}}</td>
  2784. +           {% if contractingOfficer.status %}
  2785. +               <td>Yes</td>
  2786. +           {% else %}
  2787. +               <td>No</td>
  2788. +           {% endif %}
  2789. +       </tr>
  2790. +   {% endfor %}
  2791. +</table>
  2792. +<div>
  2793. +   <input type="button" value="Add Contracting Officer" id="add_button" onclick='window.location.href = "{{ path('contractingOfficers_add')}}"'/>
  2794. +</div>
  2795. diff --git a/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/add.html.twig b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/add.html.twig
  2796. new file mode 100644
  2797. index 0000000..56c7ba4
  2798. --- /dev/null
  2799. +++ b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/add.html.twig
  2800. @@ -0,0 +1,4 @@
  2801. +<form action="{{ path('developmentAssistanceKeywords_add') }}" method="post" {{ form_enctype(form) }}>
  2802. +    {{ form_widget(form) }}
  2803. +    <input type="submit" />
  2804. +</form>
  2805. diff --git a/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/edit.html.twig b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/edit.html.twig
  2806. new file mode 100644
  2807. index 0000000..147094a
  2808. --- /dev/null
  2809. +++ b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/edit.html.twig
  2810. @@ -0,0 +1,4 @@
  2811. +<form action="{{ path('developmentAssistanceKeywords_edit', { 'id': developmentAssistanceKeyword.id }) }}" method="post" {{ form_enctype(form) }}>
  2812. +    {{ form_widget(form) }}
  2813. +    <input type="submit" />
  2814. +</form>
  2815. diff --git a/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/index.html.twig b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/index.html.twig
  2816. new file mode 100644
  2817. index 0000000..fc13177
  2818. --- /dev/null
  2819. +++ b/src/AQS/MprotBundle/Resources/views/DevelopmentAssistanceKeywords/index.html.twig
  2820. @@ -0,0 +1,26 @@
  2821. +<div class='message'>
  2822. +   {{ app.session.flash('success') }}
  2823. +</div>
  2824. +<table border='1'>
  2825. +   <tr>
  2826. +       <th>Buttons</th>
  2827. +       <th>Development Assistance Keyword</th>
  2828. +       <th>Active</th>
  2829. +   </tr>
  2830. +   {% for developmentAssistanceKeyword in developmentAssistanceKeywords %}
  2831. +       <tr>
  2832. +           <td>
  2833. +               <a href="{{ path('developmentAssistanceKeywords_edit', { 'id': developmentAssistanceKeyword.id }) }}">Edit</a>
  2834. +           </td>
  2835. +           <td>{{developmentAssistanceKeyword.keyword}}</td>
  2836. +           {% if developmentAssistanceKeyword.active %}
  2837. +               <td>Yes</td>
  2838. +           {% else %}
  2839. +               <td>No</td>
  2840. +           {% endif %}
  2841. +       </tr>
  2842. +   {% endfor %}
  2843. +</table>
  2844. +<div>
  2845. +   <input type="button" value="Add Development Assistance Keyword" id="add_button" onclick='window.location.href = "{{ path('developmentAssistanceKeywords_add')}}"'/>
  2846. +</div>
  2847. diff --git a/src/AQS/MprotBundle/Resources/views/DocumentTypes/add.html.twig b/src/AQS/MprotBundle/Resources/views/DocumentTypes/add.html.twig
  2848. new file mode 100644
  2849. index 0000000..b2f5064
  2850. --- /dev/null
  2851. +++ b/src/AQS/MprotBundle/Resources/views/DocumentTypes/add.html.twig
  2852. @@ -0,0 +1,4 @@
  2853. +<form action="{{ path('documentTypes_add') }}" method="post" {{ form_enctype(form) }}>
  2854. +    {{ form_widget(form) }}
  2855. +    <input type="submit" />
  2856. +</form>
  2857. diff --git a/src/AQS/MprotBundle/Resources/views/DocumentTypes/edit.html.twig b/src/AQS/MprotBundle/Resources/views/DocumentTypes/edit.html.twig
  2858. new file mode 100644
  2859. index 0000000..e8e558f
  2860. --- /dev/null
  2861. +++ b/src/AQS/MprotBundle/Resources/views/DocumentTypes/edit.html.twig
  2862. @@ -0,0 +1,4 @@
  2863. +<form action="{{ path('documentTypes_edit', { 'id': documentType.id }) }}" method="post" {{ form_enctype(form) }}>
  2864. +    {{ form_widget(form) }}
  2865. +    <input type="submit" />
  2866. +</form>
  2867. diff --git a/src/AQS/MprotBundle/Resources/views/DocumentTypes/index.html.twig b/src/AQS/MprotBundle/Resources/views/DocumentTypes/index.html.twig
  2868. new file mode 100644
  2869. index 0000000..dce9539
  2870. --- /dev/null
  2871. +++ b/src/AQS/MprotBundle/Resources/views/DocumentTypes/index.html.twig
  2872. @@ -0,0 +1,22 @@
  2873. +<div class='message'>
  2874. +   {{ app.session.flash('success') }}
  2875. +</div>
  2876. +<table border='1'>
  2877. +   <tr>
  2878. +       <th>Buttons</th>
  2879. +       <th>Document Type</th>
  2880. +   </tr>
  2881. +   {% for documentType in documentTypes %}
  2882. +       <tr>
  2883. +           <td>
  2884. +               <a href="{{ path('documentTypes_edit', { 'id': documentType.id }) }}">Edit</a>
  2885. +               <a href="{{ path('documentTypes_delete', { 'id': documentType.id }) }}" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
  2886. +           </td>
  2887. +           <td>{{documentType.documentType}}</td>
  2888. +       </tr>
  2889. +   {% endfor %}
  2890. +</table>
  2891. +
  2892. +<div>
  2893. +   <input type="button" value="Add Document Type" id="add_button" onclick='window.location.href = "{{ path('documentTypes_add')}}"'/>
  2894. +</div>
  2895. diff --git a/src/AQS/MprotBundle/Resources/views/Notifications/add.html.twig b/src/AQS/MprotBundle/Resources/views/Notifications/add.html.twig
  2896. new file mode 100644
  2897. index 0000000..f3971da
  2898. --- /dev/null
  2899. +++ b/src/AQS/MprotBundle/Resources/views/Notifications/add.html.twig
  2900. @@ -0,0 +1,4 @@
  2901. +<form action="{{ path('notifications_add') }}" method="post" {{ form_enctype(form) }}>
  2902. +    {{ form_widget(form) }}
  2903. +    <input type="submit" />
  2904. +</form>
  2905. diff --git a/src/AQS/MprotBundle/Resources/views/Notifications/edit.html.twig b/src/AQS/MprotBundle/Resources/views/Notifications/edit.html.twig
  2906. new file mode 100644
  2907. index 0000000..b984460
  2908. --- /dev/null
  2909. +++ b/src/AQS/MprotBundle/Resources/views/Notifications/edit.html.twig
  2910. @@ -0,0 +1,4 @@
  2911. +<form action="{{ path('notifications_edit', { 'id': notification.id }) }}" method="post" {{ form_enctype(form) }}>
  2912. +    {{ form_widget(form) }}
  2913. +    <input type="submit" />
  2914. +</form>
  2915. diff --git a/src/AQS/MprotBundle/Resources/views/Notifications/index.html.twig b/src/AQS/MprotBundle/Resources/views/Notifications/index.html.twig
  2916. new file mode 100644
  2917. index 0000000..2ed4741
  2918. --- /dev/null
  2919. +++ b/src/AQS/MprotBundle/Resources/views/Notifications/index.html.twig
  2920. @@ -0,0 +1,30 @@
  2921. +<div class='message'>
  2922. +   {{ app.session.flash('success') }}
  2923. +</div>
  2924. +<table border='1'>
  2925. +   <tr>
  2926. +       <th>Buttons</th>
  2927. +       <th>Subject</th>
  2928. +       <th>CC</th>
  2929. +       <th>BCC</th>
  2930. +       <th>Email</th>
  2931. +       <th>Message</th>
  2932. +   </tr>
  2933. +   {% for notification in notifications %}
  2934. +       <tr>
  2935. +           <td>
  2936. +               <a href="{{ path('notifications_edit', { 'id': notification.id }) }}">Edit</a>
  2937. +               <a href="{{ path('notifications_delete', { 'id': notification.id }) }}" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
  2938. +           </td>
  2939. +           <td>{{notification.subject}}</td>
  2940. +           <td>{{notification.cc}}</td>
  2941. +           <td>{{notification.bcc}}</td>
  2942. +           <td>{{notification.email}}</td>
  2943. +           <td>{{notification.message}}</td>
  2944. +       </tr>
  2945. +   {% endfor %}
  2946. +</table>
  2947. +
  2948. +<div>
  2949. +   <input type="button" value="Add Notification" id="add_button" onclick='window.location.href = "{{ path('notifications_add')}}"'/>
  2950. +</div>
  2951. diff --git a/src/AQS/MprotBundle/Resources/views/User/add.html.twig b/src/AQS/MprotBundle/Resources/views/User/add.html.twig
  2952. new file mode 100644
  2953. index 0000000..7065498
  2954. --- /dev/null
  2955. +++ b/src/AQS/MprotBundle/Resources/views/User/add.html.twig
  2956. @@ -0,0 +1,4 @@
  2957. +<form action="{{ path('user_add') }}" method="post" {{ form_enctype(form) }}>
  2958. +    {{ form_widget(form) }}
  2959. +    <input type="submit" />
  2960. +</form>
  2961. diff --git a/src/AQS/MprotBundle/Resources/views/User/edit.html.twig b/src/AQS/MprotBundle/Resources/views/User/edit.html.twig
  2962. new file mode 100644
  2963. index 0000000..6c4fa97
  2964. --- /dev/null
  2965. +++ b/src/AQS/MprotBundle/Resources/views/User/edit.html.twig
  2966. @@ -0,0 +1,4 @@
  2967. +<form action="{{ path('user_edit', { 'id': user.id }) }}" method="post" {{ form_enctype(form) }}>
  2968. +    {{ form_widget(form) }}
  2969. +    <input type="submit" />
  2970. +</form>
  2971. diff --git a/src/AQS/MprotBundle/Resources/views/User/index.html.twig b/src/AQS/MprotBundle/Resources/views/User/index.html.twig
  2972. new file mode 100644
  2973. index 0000000..af1ccf7
  2974. --- /dev/null
  2975. +++ b/src/AQS/MprotBundle/Resources/views/User/index.html.twig
  2976. @@ -0,0 +1,27 @@
  2977. +<div class='message'>
  2978. +   {{ app.session.flash('success') }}
  2979. +</div>
  2980. +<table border='1'>
  2981. +   <tr>
  2982. +       <th>Buttons</th>
  2983. +       <th>Fist Name</th>
  2984. +       <th>Last Name</th>
  2985. +       <th>Email</th>
  2986. +       <th>Business Title</th>
  2987. +   </tr>
  2988. +   {% for user in users %}
  2989. +       <tr>
  2990. +           <td>
  2991. +               <a href="{{ path('user_edit', { 'id': user.id }) }}">Edit</a>
  2992. +               <a href="{{ path('user_delete', { 'id': user.id }) }}" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
  2993. +           </td>
  2994. +           <td>{{user.firstName}}</td>
  2995. +           <td>{{user.lastName}}</td>
  2996. +           <td>{{user.email}}</td>
  2997. +           <td>{{user.title}}</td>
  2998. +       </tr>
  2999. +   {% endfor %}
  3000. +</table>
  3001. +<div>
  3002. +   <input type="button" value="Add User" id="add_button" onclick='window.location.href = "{{ path('user_add')}}"'/>
  3003. +</div>
Add Comment
Please, Sign In to add comment