cakebook / branches / master / views / nodes / admin_import.ctp

history
<?php
echo $form->create(null, array('type' => 'file', 'url' => '/' . $this->params['url']['url']));
echo $form->inputs(array(
	'legend' => 'Import contents from another install, or restore to a previous backup',
	'file' => array('type' => 'file', 'label' => 'XML file to import'),
	'backup' => array('options' => $backups, 'label' => 'Or choose a previous backup', 'empty' => true),
	'delete_missing' => array('type' => 'checkbox', 'label' => 'Delete any nodes in this install that are not in the import file?'),
	'allow_moves' => array('type' => 'checkbox', 'label' => 'Allow moving nodes around?'),
	'auto_approve' => array('type' => 'checkbox', 'label' => 'Auto approve changes?'),
	'take_backup' => array('type' => 'checkbox', 'checked' => 'checked', 'label' => 'Backup current contents before import?'),
));
echo $form->submit();
echo $form->end();
?>