123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/6
- * Time: 下午5:49
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/menufront.js");
- ?>
- <form class="layui-form" action="" style="margin-top: 50px">
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color: red">*</span>菜单名称</label>
- <div class="layui-input-block" style="width: 200px;">
- <input type="text" name="name" required lay-verify="required" value="<?php echo $model['name'] ?>" placeholder="请输入标题" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color: red">*</span>url</label>
- <div class="layui-input-block" style="width: 200px;">
- <input type="text" name="url" required lay-verify="required" value="<?php echo $model['url'] ?>" placeholder="请输入标题" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">排序</label>
- <div class="layui-input-block" style="width: 200px;">
- <input type="text" name="sort" placeholder="请输入标题" value="<?php echo $model['sort'] ?>" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <input type="hidden" name="id" value="<?php echo $model['id'] ?>">
- <div class="layui-input-block">
- <button class="layui-btn" lay-submit lay-filter="editmenu">立即提交</button>
- </div>
- </div>
- </form>
|