1234567891011121314151617181920212223242526272829 |
- <?php
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- /* @var $this yii\web\View */
- /* @var $model plugins\donation\models\Donation */
- /* @var $form yii\widgets\ActiveForm */
- ?>
- <div class="donation-form">
- <?php $form = ActiveForm::begin(); ?>
- <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
- <?= $form->field($model, 'source')->textInput(['maxlength' => true]) ?>
- <?= $form->field($model, 'money')->textInput(['maxlength' => true]) ?>
- <?= $form->field($model, 'remark')->textInput(['maxlength' => true]) ?>
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
|