Permalink
Browse files

add type file to scaffold of add and edit

  • Loading branch information...
1 parent 25cc3bb commit 747c4621bbdbd1c2d3eaaa2b4a652d11f6460fde @marciotrindade committed Feb 6, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 views/admin/scaffolds/add.ctp
  2. +1 −1 views/admin/scaffolds/edit.ctp
@@ -1,6 +1,6 @@
<div class="<?php echo $controllerLow ?> add">
<h1>New <?php echo $model; ?></h1>
-<?php echo $form->create($model, array("class"=>"validate", "action" => "create"));?>
+<?php echo $form->create($model, array("class"=>"validate", "action" => "create", "type" => "file"));?>
<?php echo $this->element("../admin/{$controllerLow}/_form"); ?>
<?php echo $form->end("Create");?>
</div>
@@ -1,6 +1,6 @@
<div class="<?php echo $controllerLow ?> edit">
<h1>Editing <?php echo $model; ?></h1>
-<?php echo $form->create($model, array("class"=>"validate", "action" => "update"));?>
+<?php echo $form->create($model, array("class"=>"validate", "action" => "update", "type" => "file"));?>
<?php echo $this->element("../admin/{$controllerLow}/_form"); ?>
<?php echo $form->end("Update");?>
</div>

0 comments on commit 747c462

Please sign in to comment.