Beispiel #1
0
		 <div class="col-sm-10">
		<?php 
echo $form->textField($model, 'url', array('class' => 'form-control', 'maxlength' => 255, 'placeholder' => 'Url'));
?>
		<?php 
echo $form->error($model, 'url');
?>
		</div>
	</div>
	<div class="form-group">
                <?php 
echo $form->labelEx($model, 'status', array('class' => 'col-sm-2 control-label'));
?>
                <div class="col-sm-10">
                <?php 
echo $form->dropDownList($model, 'status', Press::getStatusNames(), array('encode' => false, 'class' => 'form-control', 'options' => array(Press::STATUS_ACTIVE => array('selected' => 'selected'))));
?>
                </div>
        </div>
    
         <div class="form-group">
        <?php 
echo $form->label($model, 'image', array('class' => 'col-sm-2 control-label'));
?>
        <div class="col-sm-10">
        <?php 
$this->widget('ext.dropzone.EDropzone', array('id' => 'part' . $model->id, 'model' => $model, 'name' => 'image', 'attribute' => 'image', 'formId' => 'press-form', 'sizeLimit' => $sizeLimit, 'deleteFile' => Yii::app()->createAbsoluteUrl('/admin/article/deletefile'), 'unlinkFile' => Yii::app()->createAbsoluteUrl('/file/upload/unlink', array('uploadsession' => $this->uploadsession)), 'url' => $this->createAbsoluteUrl('/file/upload/upload', array('inputName' => 'image', 'uploadsession' => $this->uploadsession)), 'options' => array()));
?>
 
        <?php 
echo $form->error($model, 'image');