pictcode / app / View / Images / edit.ctp @ dd7691f4
履歴 | 表示 | アノテート | ダウンロード (1.018 KB)
1 |
<div class="images form"> |
---|---|
2 |
<?php //echo $this->Form->create('Image'); ?> |
3 |
<?php echo $this->Form->create('Image',array('type'=>'file')); ?> |
4 |
<fieldset> |
5 |
<legend><?php echo __('Edit Image'); ?></legend> |
6 |
<?php |
7 |
echo $this->Form->input('id'); |
8 |
echo $this->Form->input('name'); |
9 |
echo $this->Form->input('image_file_name'); |
10 |
echo $this->Form->input('image',array('type'=>'file','label'=>'画像')); |
11 |
echo $this->Form->input('status', array( |
12 |
'type' => 'select', |
13 |
'options' => array('1' => 'Active', '0' => 'Expire') |
14 |
)); |
15 |
?> |
16 |
</fieldset> |
17 |
<?php echo $this->Form->end(__('Submit')); ?> |
18 |
</div> |
19 |
<?php echo $this->element('admin_action'); ?> |
20 |
<div class="actions"> |
21 |
<h3><?php echo __('Actions'); ?></h3> |
22 |
<ul> |
23 |
|
24 |
<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Image.id')), array('confirm' => __('Are you sure you want to delete # %s?', $this->Form->value('Image.id')))); ?></li> |
25 |
<li><?php echo $this->Html->link(__('List Images'), array('action' => 'index')); ?></li> |
26 |
</ul> |
27 |
</div> |