Fixing content type ordering when content_type is not defined.
[akelos.git] / lib / utils / generators / scaffold / templates / form.tpl
blob60f08c57c4ec08b89fd694af9325cd207a05b514
1 <?php  echo '<?php  echo '?>$active_record_helper->error_messages_for('<?php  echo $singular_name?>');?>
3 <?php  if(empty($content_columns)) : ?>
4 <?php  echo '<?php  echo '?>$active_record_helper->all_input_tags($<?php  echo $model_name?>, '<?php  echo $singular_name?>', array()) ?>
5 <?php  else : 
6         foreach ($content_columns as $column=>$details){
7             if($column == 'id'){
8                 continue;
9             }
10             echo "
11     <p>
12         <label for=\"{$singular_name}_{$column}\">_{".
13             AkInflector::humanize($details['name']).
14             "}</label><br />
15         <?php  echo \$active_record_helper->input('$singular_name', '$column')?>
16     </p>
18         }
19 endif;