예제 #1
0
 /**
  * __construct
  */
 public function __construct()
 {
     $this->setPageTitle('Send Certificates');
     $this->addEvent('sendCert', 'doSendCert');
     $this->addEvent('prevCert', 'doPrevCert');
     $item = \Mod\Menu\Item::create('Setup', \Tk\Url::createHomeUrl('/term/coa/setup.html'), 'fa fa-cogs');
     $item->setTitle('Setup Certificate');
     $this->add(AdminPageInterface::PANEL_ACTIONS_LINKS, $item);
     $item = \Mod\Menu\Item::create('Preview', $this->getUri()->set('prevCert'), 'fa fa-eye');
     $item->setTitle('Preview Certificate');
     $this->add(AdminPageInterface::PANEL_ACTIONS_LINKS, $item);
     $item = \Mod\Menu\Item::create('Send Certificates', $this->getUri()->set('sendCert'), 'fa fa-envelope-o');
     $item->setTitle('Send Certificate to the companies in the list');
     $item->setCssClass('coaSend');
     $this->add(AdminPageInterface::PANEL_ACTIONS_LINKS, $item);
 }
예제 #2
0
 /**
  * @param \Ext\Module\Company\Manager  $obj
  */
 public function update($obj)
 {
     $obj->getPage()->getActionPanel()->addItem(\Mod\Menu\Item::create('Certificates', \Tk\Url::createHomeUrl('/term/coa/send.html'), 'fa fa-certificate'));
 }
예제 #3
0
 /**
  * __construct
  */
 public function __construct()
 {
     $this->setPageTitle('Consumers');
     $this->set(\Mod\AdminPageInterface::CRUMBS_RESET, true);
     $this->add(\Mod\AdminPageInterface::PANEL_ACTIONS_LINKS, \Mod\Menu\Item::create('Add Consumer', \Tk\Url::createHomeUrl('/consumer/edit.html'), 'fa fa-user'));
 }