人人商城

create.html 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {template 'common/header'}
  2. <div class="new-keyword">
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{url 'founder/display'}"><i class="wi wi-back-circle"></i> </a>
  5. <li><a href="{url 'founder/display'}">副创始人管理</a></li>
  6. <li>添加副创始人</li>
  7. </ol>
  8. <form action="" class="we7-form" method="post" id="js-user-create" ng-controller="UserCreate" ng-cloak>
  9. <div class="form-group">
  10. <label for="" class="control-label col-sm-2">用户名</label>
  11. <div class="form-controls col-sm-8">
  12. <input type="text" name="username" id="username" ng-style="{'width': '600px'}" class="form-control" ng-model="user.username" placeholder="" autocomplete="off">
  13. <div class="help-block">请输入用户名,用户名为 3 到 15 个字符组成,包括汉字,大小写字母(不区分大小写)</div>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label for="" class="control-label col-sm-2">密码</label>
  18. <div class="form-controls col-sm-8">
  19. <input type="text" value="" class="hidden"/>
  20. <input type="text" name="password" id="password" ng-style="{'width': '600px'}" class="form-control" ng-model="user.password" placeholder="" autocomplete="off" ng-focus="changeType($event)">
  21. <div class="help-block">请填写密码,最小长度为 8 个字符</div>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label for="" class="control-label col-sm-2">确认密码</label>
  26. <div class="form-controls col-sm-8">
  27. <input type="text" name="repassword" id="repassword" ng-style="{'width': '600px'}" class="form-control" ng-model="user.repassword" placeholder="" autocomplete="off" ng-focus="changeType($event)">
  28. <div class="help-block">重复输入密码,确认正确输入</div>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label for="" class="control-label col-sm-2">所属用户组</label>
  33. <div class="form-controls col-sm-8">
  34. <select name="groupid" class="we7-select" id="groupid">
  35. <option value="0">请选择所属用户组</option>
  36. <option ng-repeat="group in groups" ng-value="group.id" ng-bind="group.name"></option>
  37. </select>
  38. <span class="help-block"> 分配用户所属用户组后,该用户会自动拥有此用户组内的模块操作权限</span>
  39. <span class="help-block"><strong class="text-danger">设置用户组后,系统会根据对应用户组的服务期限对用户的服务开始时间和结束时间进行初始化</strong></span>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label for="" class="control-label col-sm-2">备注</label>
  44. <div class="form-controls col-sm-8">
  45. <textarea name="remark" rows="6" class="form-control" ng-style="{'width': '600px'}" ng-bind="user.remark" placeholder="方便注明此用户的身份"></textarea>
  46. </div>
  47. </div>
  48. <input type="submit" name="submit" id="" value="提交" class="btn btn-primary" ng-click="checkSubmit($event)" ng-style="{'padding': '6px 50px'}"/>
  49. <input type="hidden" name="token" value="{$_W['token']}" />
  50. <input type="hidden" name="do" value="{$_GPC['do']}" />
  51. </form>
  52. </div>
  53. <script type="text/javascript">
  54. angular.module('userManageApp').value('config', {
  55. groups: {php echo !empty($groups) ? json_encode($groups) : 'null'},
  56. });
  57. angular.bootstrap($('#js-user-create'), ['userManageApp']);
  58. </script>
  59. {template 'common/footer'}