Skip to content

Commit

Permalink
Merge pull request #18 from utahcon/master
Browse files Browse the repository at this point in the history
A simple change to _form.php to use more native code
  • Loading branch information
Phil Sturgeon committed Jul 15, 2011
2 parents a8e1387 + 0f8e5e1 commit 4be84aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions views/default/scaffold/views/_form.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@


<?php foreach ($fields as $field): ?> <?php foreach ($fields as $field): ?>
<p> <p>
<label for="<?php echo $field['name']; ?>"><?php echo \Inflector::humanize($field['name']); ?>:</label>
<?php <?php
echo "<?php echo Form::label('". \Inflector::humanize($field['name'] ."', '{$field['name']}'); ?>\n";

switch($field['type']): switch($field['type']):


case 'text': case 'text':
Expand All @@ -23,4 +24,4 @@
<?php echo '<?php echo Form::submit(); ?>'; ?> <?php echo '<?php echo Form::submit(); ?>'; ?>
</div> </div>


<?php echo '<?php echo Form::close(); ?>' ?> <?php echo '<?php echo Form::close(); ?>' ?>

0 comments on commit 4be84aa

Please sign in to comment.