Created
October 24, 2012 22:40
-
-
Save jamband/3949409 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form"> | |
<?php echo CHtml::statefulForm(); ?> | |
<?php if ($item->scenario !== 'change'): ?> | |
<div class="row"> | |
<?php echo CHtml::activeLabel($item, 'title'); ?> | |
<?php echo CHtml::encode($item->title); ?> | |
</div><!-- /.row --> | |
<?php endif; ?> | |
<?php if ($item->scenario !== 'update'): ?> | |
<div class="row"> | |
<?php echo CHtml::activeLabel($item, 'image'); ?> | |
<?php echo CHtml::image(Yii::app()->baseUrl.'/images/tmp/'.$item->image); ?> | |
</div><!-- /.row --> | |
<?php endif; ?> | |
<div class="row"> | |
<?php echo CHtml::submitButton('戻る', array('name' => 'back')); ?> | |
<?php echo CHtml::submitButton('完了する', array('name' => 'finish')); ?> | |
</div><!-- /.row --> | |
</div><!-- /.form --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment