Exemplo n.º 1
0
 * Time: 17:12
 */
?>

<div class="review-form">

    <?php 
$form = RoleBasedActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'is_anonymous')->checkBox();
?>

    <?php 
echo $form->field($model, 'score')->widget(StarRating::className(), ['pluginOptions' => ['size' => 'sm']]);
?>

    <?php 
echo $form->field($model, 'explanation')->textarea(['rows' => 6]);
?>

    <input type="hidden" value="create" name="step" />

<div class="form-group">
    <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>

<?php