<?php
/** @var $image CarouselImages */

?>

<div id="image_form_<?php echo $image->id; ?>" class="image_form">
    <?php echo CHtml::errorSummary($image); ?>

    <?php
    $this->widget('application.modules.lang.components.langFieldWidget', array(
        'model' => $image,
        'field' => 'title',
        'type' => 'string',
    ));

    ?>

    <?php
    $this->widget('application.modules.lang.components.langFieldWidget', array(
        'model' => $image,
        'field' => 'text',
        'type' => 'text',
    ));

    ?>

    <?php echo CHtml::hiddenField(Yii::app()->request->csrfTokenName, Yii::app()->request->csrfToken); ?>
    <?php echo CHtml::hiddenField('scenario', 'image'); ?>
    <?php echo CHtml::hiddenField('CarouselImages[id]', $image->id); ?>

    <?php echo CHtml::submitButton(tc('Save'), array('onclick' => 'js:saveDataImage(' . $image->id . '); return false;', 'class' => 'button-blue submit-button')); ?>
    &nbsp;<?php echo CHtml::button(tc('Close'), array('onclick' => 'js:closeDataImage(' . $image->id . '); return false;', 'class' => 'button-blue button-gray')); ?>
</div>