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

Revision 836, 0.7 kB (checked in by aarkerio, 7 weeks ago)

Models extended

Line 
1<?php
2 echo $html->addCrumb('Control Panel', '/admin/entries/start');
3 echo $html->addCrumb(__('Polls', true), '/admin/polls/listing');
4 echo $html->getCrumbs('/');
5 echo $form->create('Poll');
6?>
7<fieldset>
8<legend><?php __('New poll'); ?></legend>
9 <?php
10    echo $form->input('Poll.question', array('size' => 60, 'maxlength'=>90));
11  ?>
12 
13  <div style="margin:15px auto 15px auto;border:1px dotted gray;padding-left:40px;width:80%;">
14
15<?php
16for ($i=1;$i<10;$i++)
17{
18  echo $form->input('Pollrow.0.answer'.$i, array('size' => 50, 'maxlenght'=>100)); 
19}
20?>
21</div>
22
23<?php
24  echo $form->label('Poll.status', __('Published', true)) . '<br />';
25  echo $form->checkbox('Poll.status');
26  echo $html->para(null,$form->end(__('Save', true)));
27?>
28</fieldset>
29
Note: See TracBrowser for help on using the browser.