add kulcsok, add tartós beszedés, add ticket type with intallments
This commit is contained in:
@@ -56,8 +56,12 @@ use yii\helpers\ArrayHelper;
|
||||
<?= $form->field($model, 'status')->checkbox( ['value' => 10, 'label' => Yii::t('common/ticket_type', "Active") ]) ?>
|
||||
|
||||
<?= $form->field($model, 'flag_student')->checkbox( ['value' => 1, 'label' => Yii::t('common/ticket_type', "Student") ]) ?>
|
||||
|
||||
|
||||
|
||||
<?= mkTitle("Csoportos beszedés")?>
|
||||
<?= $form->field($model, 'installment_enabled')->checkbox( ['value' => 1, 'label' => Yii::t('common/ticket_type', "Csoportos beszedéses a bruttó áron felül") ]) ?>
|
||||
<p>A részletek havonta kerülnek beszedésre</p>
|
||||
<?= $form->field($model, 'installment_money')->textInput() ?>
|
||||
<?= $form->field($model, 'installment_count')->textInput() ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton($model->isNewRecord ? Yii::t('common/ticket_type', 'Create') : Yii::t('common/ticket_type', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
|
||||
|
||||
@@ -52,6 +52,12 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
],
|
||||
'created_at:datetime',
|
||||
'updated_at:datetime',
|
||||
[
|
||||
'attribute' => 'installment_enabled',
|
||||
'value' => ( $model->isInstallment() ? Yii::t('common', 'Yes' ) : Yii::t('common', 'No' ) ),
|
||||
],
|
||||
'installment_money',
|
||||
'installment_count',
|
||||
],
|
||||
]) ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user