Commit f3785c46 authored by shajiaiming's avatar shajiaiming

auth

parent 51683f82
...@@ -28,6 +28,24 @@ use common\helpers\ArrayHelper; ...@@ -28,6 +28,24 @@ use common\helpers\ArrayHelper;
<textarea class="form-control c-md-4" name="param[description]" rows="3"></textarea> <textarea class="form-control c-md-4" name="param[description]" rows="3"></textarea>
<span class="help-block"></span> <span class="help-block"></span>
</div> </div>
<div class="form-group">
<div>
<label>所属钱包</label>
<span class="help-inline"></span>
</div>
<div class="layui-input-inline">
<select class="layui-select" name="param[platform_id]" id="param[platform_id]">
<option value="">选择一个钱包</option>
<?php foreach($platforms as $key => $value): ?>
<option value="<?= $value['id'] ?>">
<?= $value['name'] ?>
</option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="form-actions"> <div class="form-actions">
<?= Html::submitButton('确定', ['class' => 'btn blue ajax-post', 'target-form' => 'form-aaa']) ?> <?= Html::submitButton('确定', ['class' => 'btn blue ajax-post', 'target-form' => 'form-aaa']) ?>
<?= Html::button('返回', ['class' => 'btn ', 'onclick' => "javascript:history.go(-1);"]) ?> <?= Html::button('返回', ['class' => 'btn ', 'onclick' => "javascript:history.go(-1);"]) ?>
......
...@@ -28,6 +28,30 @@ use yii\helpers\Html; ...@@ -28,6 +28,30 @@ use yii\helpers\Html;
<span class="help-block"></span> <span class="help-block"></span>
</div> </div>
<div class="form-group">
<div>
<label>所属钱包</label>
<span class="help-inline"></span>
</div>
<div class="layui-input-inline">
<select class="layui-select" name="param[platform_id]" id="param[platform_id]">
<option value="">选择一个钱包</option>
<?php foreach($platforms as $key => $value): ?>
<option
value="<?= $value['id'] ?>"
<?php
if ($value['id'] == $role->data){
echo "selected=selected";
}
?>
>
<?= $value['name'] ?>
</option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="form-actions"> <div class="form-actions">
<?= Html::submitButton('确定', ['class' => 'btn blue ajax-post','target-form'=>'form-aaa']) ?> <?= Html::submitButton('确定', ['class' => 'btn blue ajax-post','target-form'=>'form-aaa']) ?>
<?= Html::button('返回', ['class' => 'btn ','onclick'=>"javascript:history.go(-1);"]) ?> <?= Html::button('返回', ['class' => 'btn ','onclick'=>"javascript:history.go(-1);"]) ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment