add.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('user/index')}">{:lang('ADMIN_USER_INDEX')}</a></li>
  7. <li class="active"><a href="{:url('user/add')}">{:lang('ADMIN_USER_ADD')}</a></li>
  8. </ul>
  9. <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('user/addpost')}">
  10. <div class="form-group">
  11. <label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('USERNAME')}</label>
  12. <div class="col-md-6 col-sm-10">
  13. <input type="text" class="form-control" id="input-user_login" name="user_login">
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label for="input-user_pass" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('PASSWORD')}</label>
  18. <div class="col-md-6 col-sm-10">
  19. <input type="text" class="form-control" id="input-user_pass" name="user_pass" placeholder="******">
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('EMAIL')}</label>
  24. <div class="col-md-6 col-sm-10">
  25. <input type="text" class="form-control" id="input-user_email" name="user_email">
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('ROLE')}</label>
  30. <div class="col-md-6 col-sm-10">
  31. <foreach name="roles" item="vo">
  32. <label class="checkbox-inline">
  33. <input value="{$vo.id}" type="checkbox" name="role_id[]" <if condition="cmf_get_current_admin_id() neq 1 && $vo['id'] eq 1">disabled="true"</if>>{$vo.name}
  34. </label>
  35. </foreach>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <div class="col-sm-offset-2 col-sm-10">
  40. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
  41. </div>
  42. </div>
  43. </form>
  44. </div>
  45. <script src="__STATIC__/js/admin.js"></script>
  46. </body>
  47. </html>