Skip to content

Commit

Permalink
adding mass actions to the newsletters [#67]
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 4, 2010
1 parent edc43cf commit 97d87aa
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
1 change: 1 addition & 0 deletions plugins/blog/views/posts/admin_index.ctp
Expand Up @@ -19,6 +19,7 @@
echo $this->Form->create( 'Post', array( 'url' => array( 'controller' => 'posts', 'action' => 'mass', 'admin' => 'true' ) ) );
$massActions = $this->Blog->massActionButtons(
array(
'add',
'toggle',
'copy',
'delete'
Expand Down
4 changes: 4 additions & 0 deletions plugins/newsletter/controllers/newsletters_controller.php
Expand Up @@ -327,6 +327,10 @@ protected function admin_mass( )
case 'delete':
return parent::__massActionDelete( $this->__canDelete( $ids ) );
break;

default:
parent::admin_mass();
break;
} // switch
}

Expand Down
13 changes: 11 additions & 2 deletions plugins/newsletter/views/campaigns/admin_index.ctp
Expand Up @@ -18,11 +18,20 @@
* @since 0.5a
*/

echo $this->Letter->adminIndexHead( $this, $paginator, $filterOptions );
echo $this->Form->create( 'Campaign', array( 'url' => array( 'controller' => 'campaigns', 'action' => 'mass', 'admin' => 'true' ) ) );
$massActions = $this->Letter->massActionButtons(
array(
'add',
'copy',
'toggle',
'delete'
)
);
echo $this->Letter->adminIndexHead( $this, $paginator, $filterOptions, $massActions );

?>
<div class="table">
<?php echo $this->Letter->adminTableHeadImages(); ?>
<?php echo $this->Form->create( 'Campaign', array( 'url' => array( 'controller' => 'campaigns', 'action' => 'mass', 'admin' => 'true' ) ) ); ?>
<table class="listing" cellpadding="0" cellspacing="0">
<?php
echo $this->Letter->adminTableHeader(
Expand Down
13 changes: 11 additions & 2 deletions plugins/newsletter/views/newsletters/admin_index.ctp
Expand Up @@ -18,11 +18,20 @@
* @since 0.5a
*/

echo $this->Letter->adminIndexHead( $this, $paginator, $filterOptions );
echo $this->Form->create( 'Newsletter', array( 'url' => array( 'controller' => 'newsletters', 'action' => 'mass', 'admin' => 'true' ) ) );
$massActions = $this->Letter->massActionButtons(
array(
'add',
'copy',
'toggle',
'send',
'delete'
)
);
echo $this->Letter->adminIndexHead( $this, $paginator, $filterOptions, $massActions );
?>
<div class="table">
<?php echo $this->Letter->adminTableHeadImages(); ?>
<?php echo $this->Form->create( 'Newsletter', array( 'url' => array( 'controller' => 'newsletters', 'action' => 'mass', 'admin' => 'true' ) ) ); ?>
<table class="listing" cellpadding="0" cellspacing="0">
<tr>
<th class="first" style="width:10px;"><?php echo $this->Form->checkbox( 'all' ); ?></th>
Expand Down
1 change: 1 addition & 0 deletions plugins/newsletter/views/templates/admin_index.ctp
Expand Up @@ -22,6 +22,7 @@
echo $this->Form->create( 'Template', array( 'url' => array( 'controller' => 'templates', 'action' => 'mass', 'admin' => 'true' ) ) );
$massActions = $this->Letter->massActionButtons(
array(
'add',
'copy',
'export',
'delete'
Expand Down

0 comments on commit 97d87aa

Please sign in to comment.