working on configuring an item template UI.
modified db to have fields concept for templates.
This commit is contained in:
parent
c0206ff8f4
commit
16581088d9
24 changed files with 509 additions and 1652 deletions
|
@ -189,16 +189,28 @@ class PlayouthistoryController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
public function configureItemTemplateAction() {
|
||||
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
|
||||
$this->view->headScript()->appendFile($baseUrl.'js/airtime/playouthistory/template.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||
|
||||
$template_id = $this->_getParam('id', null);
|
||||
|
||||
$historyService = new Application_Service_HistoryService();
|
||||
$mandatoryFields = $historyService->mandatoryItemTemplate();
|
||||
|
||||
$this->view->template_id = $template_id;
|
||||
$this->view->fileMD = $historyService->getFileMetadataTypes();
|
||||
$this->view->fields = $historyService->getFieldTypes();
|
||||
$this->view->required = $mandatoryFields;
|
||||
}
|
||||
|
||||
public function createTemplateAction()
|
||||
{
|
||||
|
||||
$request = $this->getRequest();
|
||||
$params = $request->getPost();
|
||||
Logging::info($params);
|
||||
}
|
||||
|
||||
public function editTemplateAction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue