edit_usergroup.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <{include file="admin/permission/header.html"}>
  2. <{include file="admin/permission/nav.html"}>
  3. <form name='edit_usergroup_from' action="<{$web_cfg.domain}>" method="post">
  4. <input name="c" type="hidden" value="permission" />
  5. <input name="a" type="hidden" value="editUsergroup" />
  6. <input name="groupid" type="hidden" value="<{$group.id}>" />
  7. <table class="">
  8. <tr>
  9. <th style="width:100px;">用户组名称</th>
  10. <td style="width:200px;">
  11. <input name="description" type="text" value="<{$group.description}>" class="input-sm form-control"/>
  12. </td>
  13. </tr>
  14. <tr><td></td><td></td></tr>
  15. <tr>
  16. <td colspan='2' align="center">
  17. <input type="submit" value="提交" id="edit_usergroup_btn" class="btn btn-default btn-sm btn-primary"/>
  18. </td>
  19. </tr>
  20. </table>
  21. </form>
  22. <script type="text/javascript">
  23. KISSY.use('node', function (S, Node) {
  24. var $ = S.all;
  25. $('#edit_usergroup_btn').on('click', function () {
  26. var new_group_name = S.trim($('input[name=description]').val());
  27. if (new_group_name == '') {
  28. alert('请填写增加的组名称');
  29. return false;
  30. }
  31. });
  32. });
  33. </script>
  34. <{include file="admin/permission/bottom.html"}>