add changes to account state
This commit is contained in:
80
frontend/views/account-state/_form_open.php
Normal file
80
frontend/views/account-state/_form_open.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
use frontend\components\HtmlHelper;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\AccountState */
|
||||
/* @var $form yii\widgets\ActiveForm */
|
||||
?>
|
||||
|
||||
<div class="account-state-form">
|
||||
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
|
||||
<?php echo Html::activeHiddenInput($model, "prev_state") ?>
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-md-6'>
|
||||
<?= $form->field($model, 'id_account')->dropDownList( HtmlHelper::mkAccountOptions($accounts) ) ?>
|
||||
</div>
|
||||
<div class='col-md-6'>
|
||||
<?= $form->field($model, 'money')->textInput(['class' => 'form-control text-right']); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $this->render('_notes',[ 'form' => $form, 'model' => $model])?>
|
||||
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
<?php echo $model->getAttributeLabel('money') ?>
|
||||
</th>
|
||||
<td class="text-right">
|
||||
<span class="money "></span> Ft
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
<?php echo Yii::t('frontend/account-state', "Notes total")?>
|
||||
</th>
|
||||
<td class="text-right">
|
||||
<span class="notes-total "></span> Ft
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
<?php echo Yii::t('frontend/account-state', "Difference total")?>
|
||||
</th>
|
||||
<td class="text-right">
|
||||
<span class="diff-total "></span> Ft
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
<?php echo Yii::t("frontend/account-state", "Last closing money")?>
|
||||
</th>
|
||||
<td class="text-right">
|
||||
<span class="last-closing-money "></span> Ft
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
<?php echo Yii::t('frontend/account-state', "Difference closing money")?>
|
||||
</th>
|
||||
<td class="text-right">
|
||||
<span class="diff-closing "></span> Ft
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?= $form->field($model, 'comment')->textarea() ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton($model->isNewRecord ? Yii::t('frontend/account-state', 'Create') : Yii::t('frontend/account-state', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user