addrole.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/7
  6. * Time: 上午8:56
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/role.js");
  10. ?>
  11. <style>
  12. .layui_w_box {width:80%;margin:0 auto;}
  13. </style>
  14. <form class="layui-form" action="" style="margin-top: 50px" >
  15. <div class="layui_w_box">
  16. <div class="layui-form-item">
  17. <label class="layui-form-label">角色名称</label>
  18. <div class="layui-input-block" style="width: 250px;">
  19. <input type="text" name="name"required lay-verify="required" autocomplete="off" class="layui-input">
  20. </div>
  21. </div>
  22. <div class="layui-form-item">
  23. <label class="layui-form-label">描述</label>
  24. <div class="layui-input-block" style="width: 250px;">
  25. <input type="text" name="describe" autocomplete="off" class="layui-input">
  26. </div>
  27. </div>
  28. <div class="layui-form-item">
  29. <div class="layui-input-block">
  30. <button class="layui-btn" lay-submit="" lay-filter="rolesubmit" >立即提交</button>
  31. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  32. </div>
  33. </div>
  34. </div>
  35. </form>