OSDN Git Service

status表示をSelectヘルパー対応
[trpgtools-onweb/cake-frame.git] / app / views / characters / edit.ctp
1 <div class="characters form">
2 <?php echo $form->create('Character');?>
3         <fieldset>
4                 <legend><?php __('Add Character');?></legend>
5 <?php
6         echo $form->input('name', array(
7                         'type' => 'text',
8                         'label' => __('Name', true),
9                         'after' => $html->tag(
10                                 'span',
11                                 __(' * required', true),
12                                 array('class' => 'required')
13                         )
14                 )
15         );
16         echo $form->input('system_id', array(
17                         'label' => __('System', true),
18                 )
19         );
20         echo $form->input('sort_order', array(
21                         'label' => __('Sort Order', true)               )
22         );
23         echo $select->create_status_select($status, 'status', array(
24                         'label' => __('Status', true)
25                 )
26         );
27         echo $select->create_publicflag_select($public_flags, 'public_flag', array(
28                         'label' => __('Public Flag', true)
29                 )
30         );
31         echo $form->input('notes', array(
32                         'label' => __('Notes', true)
33                 )
34         );
35
36         echo $token->create();
37         ?>
38         </fieldset>
39 <?php echo $form->end('Submit');?>
40 </div>
41 <div class="actions">
42         <ul>
43                 <li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('Character.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Character.id'))); ?></li>
44                 <li><?php echo $html->link(__('List Characters', true), array('action' => 'index'));?></li>
45                 <li><?php echo $html->link(__('List Systems', true), array('controller' => 'systems', 'action' => 'index')); ?> </li>
46         </ul>
47 </div>