<?php
/* @var $this TutorialsController */
/* @var $model Tutorial */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form = $this->beginWidget('TbActiveForm', array(
    'id' => 'tutorials-form',
    // Please note: When you enable ajax validation, make sure the corresponding
    // controller action is handling ajax validation correctly.
    // There is a call to performAjaxValidation() commented in generated controller code.
    // See class documentation of CActiveForm for details on this.
    'enableAjaxValidation' => false,
)); ?>

    <p class="note"><?php echo sprintf(gT('Fields with %s are required.'), '<span class="required">*</span>'); ?></p>

    <?php
    $this->widget('ext.AlertWidget.AlertWidget', ['errorSummaryModel' => $model]);
    ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'name'); ?>
        <?php echo $form->textField($model, 'name', array('size' => 60,'maxlength' => 128)); ?>
        <?php echo $form->error($model, 'name'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'description'); ?>
        <?php echo $form->textArea($model, 'description', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($model, 'description'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'active'); ?>
        <?php echo $form->textField($model, 'active'); ?>
        <?php echo $form->error($model, 'active'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'permission'); ?>
        <?php echo $form->textField($model, 'permission', array('size' => 60,'maxlength' => 128)); ?>
        <?php echo $form->error($model, 'permission'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'permission_grade'); ?>
        <?php echo $form->textField($model, 'permission_grade', array('size' => 60,'maxlength' => 128)); ?>
        <?php echo $form->error($model, 'permission_grade'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->
