root/trunk/app/views/questions/admin_add.ctp

Revision 269, 1.1 kB (checked in by aarkerio, 10 months ago)

Update karamelo to 1.2 cake version

Line 
1<?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>
2<?php echo $html->addCrumb('Test', '/admin/tests/listing'); ?>
3<?php echo $html->getCrumbs(' / '); ?>
4
5<?php echo $html->formTag('/admin/questions/edit','post', array("onsubmit"=>"return validateNew()")); ?>
6<fieldset>
7<legend>New test</legend>
8<div class="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</div>
13
14<div class="required">
15<?php
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?>
20</div>
21
22<div class="required">
23<?php
24          echo $form->labelTag( 'Question/status', 'Published:' );
25          echo $html->checkbox('Question/status', null, array("value"=>1));
26?>
27</div>
28
29<div>
30    <?php echo $html->submit('Add'); ?> </form>
31</div>
32</fieldset>
Note: See TracBrowser for help on using the browser.