| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <?php
- global $lang, $app;
- $app->loadLang('job');
- $app->loadLang('compile');
- $config->job->dtable = new stdclass();
- $config->job->dtable->fieldList['id']['title'] = 'ID';
- $config->job->dtable->fieldList['id']['name'] = 'id';
- $config->job->dtable->fieldList['id']['fixed'] = 'left';
- $config->job->dtable->fieldList['id']['type'] = 'id';
- $config->job->dtable->fieldList['id']['sortType'] = 'text';
- $config->job->dtable->fieldList['id']['checkbox'] = false;
- $config->job->dtable->fieldList['name']['title'] = $lang->job->name;
- $config->job->dtable->fieldList['name']['name'] = 'name';
- $config->job->dtable->fieldList['name']['fixed'] = 'left';
- $config->job->dtable->fieldList['name']['type'] = 'desc';
- $config->job->dtable->fieldList['name']['sortType'] = true;
- $config->job->dtable->fieldList['name']['minWidth'] = '350';
- $config->job->dtable->fieldList['name']['hint'] = true;
- $config->job->dtable->fieldList['name']['show'] = true;
- $config->job->dtable->fieldList['name']['required'] = true;
- $config->job->dtable->fieldList['name']['checkbox'] = false;
- $config->job->dtable->fieldList['name']['link'] = array('module' => 'job', 'method' => 'view', 'params' => 'jobID={id}');
- $config->job->dtable->fieldList['name']['data-toggle'] = 'modal';
- $config->job->dtable->fieldList['lastStatus']['title'] = $lang->job->lastStatus;
- $config->job->dtable->fieldList['lastStatus']['name'] = 'lastStatus';
- $config->job->dtable->fieldList['lastStatus']['sortType'] = true;
- $config->job->dtable->fieldList['lastStatus']['width'] = '110';
- $config->job->dtable->fieldList['lastStatus']['hint'] = true;
- $config->job->dtable->fieldList['lastStatus']['map'] = $lang->compile->statusList;
- $config->job->dtable->fieldList['lastStatus']['show'] = true;
- $config->job->dtable->fieldList['buildSpec']['title'] = $lang->job->buildSpec;
- $config->job->dtable->fieldList['buildSpec']['name'] = 'buildSpec';
- $config->job->dtable->fieldList['buildSpec']['type'] = 'text';
- $config->job->dtable->fieldList['buildSpec']['sortType'] = false;
- $config->job->dtable->fieldList['buildSpec']['minWidth'] = '120';
- $config->job->dtable->fieldList['buildSpec']['hint'] = true;
- $config->job->dtable->fieldList['buildSpec']['show'] = true;
- $config->job->dtable->fieldList['productName']['title'] = $lang->job->product;
- $config->job->dtable->fieldList['productName']['type'] = 'text';
- $config->job->dtable->fieldList['productName']['sortType'] = false;
- $config->job->dtable->fieldList['productName']['minWidth'] = '120';
- $config->job->dtable->fieldList['productName']['hint'] = true;
- $config->job->dtable->fieldList['productName']['show'] = true;
- $config->job->dtable->fieldList['repoName']['title'] = $lang->job->repo;
- $config->job->dtable->fieldList['repoName']['sortType'] = true;
- $config->job->dtable->fieldList['repoName']['width'] = '100';
- $config->job->dtable->fieldList['repoName']['hint'] = true;
- $config->job->dtable->fieldList['repoName']['show'] = true;
- $config->job->dtable->fieldList['engine']['title'] = $lang->job->engine;
- $config->job->dtable->fieldList['engine']['name'] = 'engine';
- $config->job->dtable->fieldList['engine']['sortType'] = true;
- $config->job->dtable->fieldList['engine']['width'] = '80';
- $config->job->dtable->fieldList['engine']['hint'] = true;
- $config->job->dtable->fieldList['engine']['show'] = true;
- $config->job->dtable->fieldList['frame']['title'] = $lang->job->frame;
- $config->job->dtable->fieldList['frame']['name'] = 'frame';
- $config->job->dtable->fieldList['frame']['sortType'] = true;
- $config->job->dtable->fieldList['frame']['width'] = '100';
- $config->job->dtable->fieldList['frame']['hint'] = true;
- $config->job->dtable->fieldList['frame']['show'] = true;
- $config->job->dtable->fieldList['triggerType']['title'] = $lang->job->triggerType;
- $config->job->dtable->fieldList['triggerType']['name'] = 'triggerType';
- $config->job->dtable->fieldList['triggerType']['sortType'] = false;
- $config->job->dtable->fieldList['triggerType']['width'] = '100';
- $config->job->dtable->fieldList['triggerType']['hint'] = true;
- $config->job->dtable->fieldList['triggerType']['show'] = true;
- $config->job->dtable->fieldList['lastExec']['title'] = $lang->job->lastExec;
- $config->job->dtable->fieldList['lastExec']['name'] = 'lastExec';
- $config->job->dtable->fieldList['lastExec']['type'] = 'datetime';
- $config->job->dtable->fieldList['lastExec']['sortType'] = true;
- $config->job->dtable->fieldList['lastExec']['hint'] = true;
- $config->job->dtable->fieldList['lastExec']['show'] = true;
- $config->job->dtable->fieldList['lastExec']['formatDate'] = 'YYYY-MM-dd hh:mm';
- $config->job->actionList = array();
- $config->job->actionList['compile']['icon'] = 'file-log';
- $config->job->actionList['compile']['text'] = $lang->compile->browse;
- $config->job->actionList['compile']['hint'] = $lang->compile->browse;
- $config->job->actionList['compile']['url'] = array('module' => 'compile', 'method' => 'browse', 'params' => "repoID={repo}&jobID={id}");
- $config->job->actionList['trigger']['icon'] = 'trigger';
- $config->job->actionList['trigger']['text'] = $lang->job->trigger;
- $config->job->actionList['trigger']['hint'] = $lang->job->trigger;
- $config->job->actionList['trigger']['url'] = helper::createLink('job', 'trigger',"jobID={id}");
- $config->job->actionList['edit']['icon'] = 'edit';
- $config->job->actionList['edit']['text'] = $lang->job->edit;
- $config->job->actionList['edit']['hint'] = $lang->job->edit;
- $config->job->actionList['edit']['url'] = helper::createLink('job', 'edit',"jobID={id}");
- $config->job->actionList['exec']['icon'] = 'play';
- $config->job->actionList['exec']['text'] = $lang->job->exec;
- $config->job->actionList['exec']['hint'] = $lang->job->exec;
- $config->job->actionList['exec']['className'] = 'ajax-submit';
- $config->job->actionList['exec']['url'] = helper::createLink('job', 'exec',"jobID={id}");
- $config->job->actionList['delete']['icon'] = 'trash';
- $config->job->actionList['delete']['text'] = $lang->job->delete;
- $config->job->actionList['delete']['hint'] = $lang->job->delete;
- $config->job->actionList['delete']['ajaxSubmit'] = true;
- $config->job->actionList['delete']['url'] = helper::createLink('job', 'delete',"jobID={id}");
- $config->job->dtable->fieldList['actions']['name'] = 'actions';
- $config->job->dtable->fieldList['actions']['title'] = $lang->actions;
- $config->job->dtable->fieldList['actions']['width'] = 150;
- $config->job->dtable->fieldList['actions']['type'] = 'actions';
- $config->job->dtable->fieldList['actions']['menu'] = array('compile', 'trigger', 'edit', 'exec', 'delete');
- $config->job->dtable->fieldList['actions']['list'] = $config->job->actionList;
|