Changeset 159 for trunk/app/views/questions
- Timestamp:
- 09/25/07 22:18:30 (15 months ago)
- Location:
- trunk/app/views/questions
- Files:
-
- 1 added
- 1 modified
-
admin_add.thtml (modified) (2 diffs)
-
admin_edit.thtml (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/questions/admin_add.thtml
r158 r159 3 3 <?php echo $html->getCrumbs(' / '); ?> 4 4 5 <?php echo $html->formTag('/admin/ tests/add/','post', array("onsubmit"=>"return validateNew()")); ?>5 <?php echo $html->formTag('/admin/questions/edit','post', array("onsubmit"=>"return validateNew()")); ?> 6 6 <fieldset> 7 7 <legend>New test</legend> 8 8 <div class="required"> 9 <?php echo $form->labelTag( 'Test/title', 'Title' ); ?>10 <?php echo $html->input(' Test/title', array("size" => 40, "maxlength" => 120)); ?>11 <?php echo $html->tagErrorMsg(' Test/title', 'Title is required.'); ?>9 <?php echo $form->labelTag('Question/title', 'Title' ); ?> 10 <?php echo $html->input('Question/title', array("size" => 40, "maxlength" => 120)); ?> 11 <?php echo $html->tagErrorMsg('Question/title', 'Title is required.'); ?> 12 12 </div> 13 13 14 14 <div class="required"> 15 15 <?php 16 echo $form->labelTag(' Test/description', 'Description:' );17 echo $html->textarea(' Test/description', array("cols" => 50, "rows" => 5));18 echo $html->tagErrorMsg(' Test/description', 'Description is required.');16 echo $form->labelTag('Question/description', 'Description:' ); 17 echo $html->textarea('Question/description', array("cols" => 50, "rows" => 5)); 18 echo $html->tagErrorMsg('Question/description', 'Description is required.'); 19 19 ?> 20 20 </div> … … 22 22 <div class="required"> 23 23 <?php 24 echo $form->labelTag( 'Test/status', 'Published:' );25 echo $html->checkbox('Test/status', null, array("value"=>1));24 echo $form->labelTag( 'Question/status', 'Published:' ); 25 echo $html->checkbox('Question/status', null, array("value"=>1)); 26 26 ?> 27 27 </div>
