OSDN Git Service

Character編集画面のデザイン変更
[trpgtools-onweb/cake-frame.git] / app / views / characters / edit.ctp
1 <div class="characters form edit">
2 <h2><?php echo __('Edit Character'); ?></h2>
3 <p>
4 <?php echo $form->create('Character');?>
5
6 <table class="Character">
7 <tbody>
8 <tr>
9 <td colspan="2" class="SystemRow">
10 <table class="System">
11 <tbody>
12 <tr>
13 <td>
14 <?php 
15         echo $form->input('system_id', array(
16                         'label' => __('System', true),
17                 )
18         );
19  ?>
20 </td>
21 <td class="sort_order">
22 <?php 
23         echo $form->input('sort_order', array(
24                         'label' => __('Order', true),
25                         'class' => 'sortOrder',
26                 )
27         );
28  ?>
29 </td>
30 <td>
31 <?php 
32         echo $select->create_status_select($status, 'status', array(
33                         'label' => __('Status', true)
34                 )
35         );
36  ?>
37 </td>
38 </tr>
39 </table>
40 </td>
41 <td class="image" rowspan="4">
42 <div class="imagefile">
43 <?php if ($this->data['Character']['image_filename']): ?>
44 <?php 
45         echo $html->link(
46                 $html->image($this->data['Character']['image_filename'], array(
47                         'alt' => $this->data['Character']['name'],
48                 )),
49                 array('action' => 'edit_image', $this->data['Character']['id'])
50         );
51  ?>
52 <?php else: ?>
53 <div class="editImageLink">
54 <?php 
55         echo $html->link(__('Edit Image', true), array('action' => 'edit_image', $this->data['Character']['id']));
56  ?>
57 </div>
58 <?php endif; ?>
59 </div>
60 </td>
61 </tr>
62
63 <tr>
64 <th class="CharacterName">
65 <?php
66         __('Charater Name');
67         echo $html->div('required',
68                 __(' * required', true)
69         );
70 ?>
71 </th>
72 <td class="CharacterName">
73 <?php 
74         echo $form->input('name', array(
75                         'type' => 'text',
76                         'label' => false,
77                         'class' => 'name character',
78                 )
79         );
80 ?>
81 </td>
82 </tr>
83 <tr>
84 <th class="UserName">
85 <?php
86         __('Player Name');
87 ?>
88 </th>
89 <td class="UserName">
90 <?php 
91         echo $this->data['User']['name'];
92 ?>
93 </td>
94 </tr>
95 <tr>
96 <th>
97         <?php __('Public Flag'); ?>
98 </th>
99 <td>
100 <?php 
101         echo $select->create_publicflag_select($public_flags, 'public_flag', array(
102                         'label' => false,
103                 )
104         );
105  ?>
106 </td>
107 </tr>
108 <tr>
109 <th>
110         <?php __('Notes'); ?>
111 </th>
112 <td colspan="3">
113 <?php 
114         echo $form->input('notes', array(
115                         'label' => false,
116                 )
117         );
118  ?>
119 </td>
120 </tr>
121 </tbody>
122 </table>
123
124 <?php
125         echo $token->create();
126         ?>
127 <?php echo $form->end('Submit');?>
128 </p>
129 </div>
130 <div class="actions">
131         <ul>
132                 <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>
133                 <li><?php echo $html->link(__('List Characters', true), array('action' => 'index'));?></li>
134                 <li><?php echo $html->link(__('List Systems', true), array('controller' => 'systems', 'action' => 'index')); ?> </li>
135         </ul>
136 </div>