Skip to content

Commit

Permalink
mass actions added to filemanager and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 5, 2010
1 parent 0a42fea commit bde2b8f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
6 changes: 2 additions & 4 deletions infinitas/management/views/configs/admin_index.ctp
Expand Up @@ -22,11 +22,9 @@

$massActions = $this->Core->massActionButtons(
array(
'upload',
'view',
'add',
'edit',
'copy',
'delete'
'copy', // @todo -c Implement .should read the file populate $this->data and render add
)
);
echo $this->Core->adminIndexHead( $this, $paginator, null, $massActions );
Expand Down
23 changes: 14 additions & 9 deletions infinitas/management/views/file_manager/admin_index.ctp
Expand Up @@ -17,11 +17,22 @@
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @since 0.5a
*/
echo $this->Core->adminIndexHead( $this, null, null );

echo $this->Form->create( 'FileManager', array( 'url' => array( 'controller' => 'posts', 'action' => 'mass', 'admin' => 'true' ) ) );

$massActions = $this->Core->massActionButtons(
array(
'upload',
'view',
'edit',
'copy',
'delete'
)
);
echo $this->Core->adminIndexHead( $this, null, null, $massActions );
?>
<div class="table">
<?php echo $this->Core->adminTableHeadImages(); ?>
<?php echo $this->Form->create( 'FileManager', array( 'url' => array( 'controller' => 'posts', 'action' => 'mass', 'admin' => 'true' ) ) ); ?>
<table class="listing" cellpadding="0" cellspacing="0">
<?php
echo $this->Core->adminTableHeader(
Expand Down Expand Up @@ -177,11 +188,5 @@
}
?>
</table>
<?php
echo $this->Form->button( __( 'Copy', true ), array( 'value' => 'copy', 'name' => 'copy' ) );
echo $this->Form->button( __( 'Move', true ), array( 'value' => 'move', 'name' => 'move' ) );
echo $this->Form->button( __( 'Delete', true ), array( 'value' => 'delete', 'name' => 'delete' ) );
echo $this->Form->end();

?>
<?php echo $this->Form->end(); ?>
</div>

0 comments on commit bde2b8f

Please sign in to comment.