Skip to content

Commit

Permalink
adding mass actions to cms.featured
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 4, 2010
1 parent c9c0caf commit dfdd6f1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions plugins/cms/views/features/admin_index.ctp
@@ -1,5 +1,4 @@
<?php
echo $this->Cms->adminIndexHead( $this, $paginator, $filterOptions );
/**
* Comment Template.
*
Expand All @@ -19,10 +18,19 @@
* @since 0.5a
*/

echo $this->Form->create( 'Feature', array( 'url' => array( 'controller' => 'features', 'action' => 'mass', 'admin' => 'true' ) ) );
$massActions = $this->Cms->massActionButtons(
array(
'add',
'delete'
)
);
echo $this->Cms->adminIndexHead( $this, $paginator, $filterOptions, $massActions );

?>
<div class="table">
<?php echo $this->Cms->adminTableHeadImages(); ?>
<?php echo $this->Form->create( 'Feature', array( 'url' => array( 'controller' => 'features', 'action' => 'mass', 'admin' => 'true' ) ) ); ?>
<?php ?>
<table class="listing" cellpadding="0" cellspacing="0">
<?php
echo $this->Cms->adminTableHeader(
Expand All @@ -44,9 +52,6 @@
),
__( 'Status', true ) => array(
'style' => 'width:50px;'
),
__( 'Actions', true ) => array(
'style' => 'width:100px;'
)
)
);
Expand Down Expand Up @@ -82,17 +87,12 @@
echo $this->Status->toggle( $feature['Content']['active'], $feature['Content']['id'], array( 'controller' => 'features', 'action' => 'toggle' ) );
?>
</td>
<td class="actions">
<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $feature['Feature']['content_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $feature['Feature']['content_id'])); ?>
</td>
</tr>
<?php
}
?>
</table>
<?php
echo $this->Form->button( __( 'Delete', true ), array( 'value' => 'delete', 'name' => 'delete' ) );
echo $this->Form->button( __( 'Toggle', true ), array( 'value' => 'toggle' ) );
echo $this->Form->end();

?>
Expand Down

0 comments on commit dfdd6f1

Please sign in to comment.