Alpha/View/Renderer/Html/RendererProviderHTML.php 1 location
|
@@ 463-468 (lines=6) @@
|
| 460 |
|
$fields['tableNeedsUpdate'] = ($this->BO->checkTableNeedsUpdate() ? '<span class="warning">Yes</span>' : '<span class="success">No</span>'); |
| 461 |
|
|
| 462 |
|
// create button |
| 463 |
|
if ($this->BO->checkTableExists()) { |
| 464 |
|
$button = new Button("document.location = '".FrontController::generateSecureURL('act=Alpha\\Controller\\ActiveRecordController&ActiveRecordType='.get_class($this->BO))."'", 'Create New', 'create'.stripslashes(get_class($this->BO)).'But'); |
| 465 |
|
$fields['createButton'] = $button->render(); |
| 466 |
|
} else { |
| 467 |
|
$fields['createButton'] = ''; |
| 468 |
|
} |
| 469 |
|
|
| 470 |
|
// list all button |
| 471 |
|
if ($this->BO->checkTableExists()) { |
Alpha/View/ArticleView.php 1 location
|
@@ 175-178 (lines=4) @@
|
| 172 |
|
$tags = $this->BO->getPropObject('tags')->getRelatedObjects(); |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
if (count($tags) > 0) { |
| 176 |
|
$button = new Button("document.location = '".FrontController::generateSecureURL('act=Alpha\Controller\TagController&ActiveRecordType='.get_class($this->BO).'&ActiveRecordOID='.$this->BO->getOID())."'", 'Edit Tags', 'tagsBut'); |
| 177 |
|
$fields['tagsButton'] = $button->render(); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
// buffer security fields to $formSecurityFields variable |
| 181 |
|
$fields['formSecurityFields'] = $this->renderSecurityFields(); |