mirror of
https://github.com/janickiy/yii2-nomer
synced 2025-03-09 15:39:59 +00:00
add files to project
This commit is contained in:
commit
5cac498444
3729 changed files with 836998 additions and 0 deletions
22
modules/admin/views/wallets/_form.php
Normal file
22
modules/admin/views/wallets/_form.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $model \app\models\Wallet */
|
||||
|
||||
use yii\helpers\ArrayHelper;
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
use app\models\Site;
|
||||
use app\models\Wallet;
|
||||
|
||||
$form = ActiveForm::begin(['method' => 'POST']);
|
||||
echo $form->field($model, 'type_id')->dropDownList(Wallet::getWalletTypes());
|
||||
echo $form->field($model, 'site_id')->dropDownList(ArrayHelper::map(Site::find()->all(), 'id', 'name'), ['prompt' => 'Нет']);
|
||||
echo $form->field($model, 'wallet_id');
|
||||
echo $form->field($model, 'login');
|
||||
echo $form->field($model, 'password');
|
||||
echo $form->field($model, 'phone');
|
||||
echo $form->field($model, 'status')->checkbox();
|
||||
echo $form->field($model, 'comment')->textarea();
|
||||
echo Html::submitButton('Сохранить', ['class' => 'btn btn-success']);
|
||||
$form::end();
|
Loading…
Add table
Add a link
Reference in a new issue