Not finished editing -> not published

pull/61/head
Christophe Vandeplas 2012-03-21 11:01:37 +01:00
parent 5907c86520
commit 4bbbfc36c3
3 changed files with 3 additions and 3 deletions

View File

@ -551,7 +551,7 @@ class EventsController extends AppController {
$rules= array();
// find events that are finished
// find events that are published
$events = $this->Event->findAllByAlerted(1);
$classtype = 'targeted-attack';

View File

@ -32,7 +32,7 @@
<?php
if (0 == $event['Event']['alerted'] && ($isAdmin || $event['Event']['org'] == $me['org']))
echo $this->Form->postLink('Publish Event', array('action' => 'alert', $event['Event']['id']), null, 'Are you sure this event is complete and everyone should be alerted?');
elseif (0 == $event['Event']['alerted']) echo 'Not finished editing';
elseif (0 == $event['Event']['alerted']) echo 'Not published';
?>
<?php
if ($isAdmin || $event['Event']['org'] == $me['org']) {

View File

@ -7,7 +7,7 @@
echo $this->Form->postLink('Publish Event', array('action' => 'alert', $event['Event']['id']), null, 'Are you sure this event is complete and everyone should be alerted?');
?> </li></ul>
<?php elseif (0 == $event['Event']['alerted']): ?>
<ul><li>Not finished editing</li></ul>
<ul><li>Not published</li></ul>
<?php else: ?>
<!-- ul><li>Alert already sent</li></ul -->
<?php endif; ?>