Exemple #1
0
/* @var $model PayoutTask */
/* @var $form BSActiveForm */
?>

<?php 
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'method-of-collection-data-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>

    <p class="help-block">Поля, помеченные <span class="required">*</span>, обязательны для заполнения.</p>

    <?php 
echo $form->errorSummary($model);
?>

    <?php 
echo $form->dropDownListControlGroup($model, 'type', PayoutTaskHelper::getAvailableTypes(), array('class' => 'bs'));
?>
    <?php 
echo $form->fileFieldControlGroup($model, 'file');
?>
    <?php 
echo $form->numberFieldControlGroup($model, 'agentId', array('value' => Yii::app()->params['yandexPayout']['agentId']));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'contract');
?>

    <?php 
echo BsHtml::submitButton('Создать', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>