<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model frontend\modules\right\models\Pttype */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="pttype-form">

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

    <?= $form->field($model, 'pttype_code')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'pttype_name')->textInput(['maxlength' => true]) ?>
    
    <div class="form-group">
        <?= Html::submitButton('<i class="glyphicon glyphicon-floppy-save"></i> ' . ($model->isNewRecord ? 'บันทึก' : 'แก้ไข'), ['class' => ($model->isNewRecord ? 'btn btn-success' : 'btn btn-primary') . ' btn-lg btn-block']) ?>
    </div>
    <?php ActiveForm::end(); ?>

</div>
