role_edit.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('rbac/index')}">{:lang('ADMIN_RBAC_INDEX')}</a></li>
  7. <li><a href="{:url('rbac/roleadd')}">{:lang('ADMIN_RBAC_ROLEADD')}</a></li>
  8. <li class="active"><a>编辑角色</a></li>
  9. </ul>
  10. <form class="form-horizontal js-ajax-form margin-top-20" action="{:url('rbac/roleeditpost')}" method="post">
  11. <div class="form-group">
  12. <label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('ROLE_NAME')}</label>
  13. <div class="col-md-6 col-sm-10">
  14. <input type="text" class="form-control" id="input-name" name="name" value="{$data.name}">
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label for="input-remark" class="col-sm-2 control-label">{:lang('ROLE_DESCRIPTION')}</label>
  19. <div class="col-md-6 col-sm-10">
  20. <textarea type="text" class="form-control" id="input-remark" name="remark">{$data.remark}</textarea>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label">{:lang('STATUS')}</label>
  25. <div class="col-md-6 col-sm-10">
  26. <label class="radio-inline">
  27. <php>$active_true_checked=($data['status']==1)?"checked":"";</php>
  28. <input type="radio" name="status" value="1" {$active_true_checked}> {:lang('ENABLED')}
  29. </label>
  30. <label class="radio-inline">
  31. <php>$active_false_checked=($data['status']==0)?"checked":"";</php>
  32. <input type="radio" name="status" value="0" {$active_false_checked}> {:lang('DISABLED')}
  33. </label>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <div class="col-sm-offset-2 col-sm-10">
  38. <input type="hidden" name="id" value="{$data.id}"/>
  39. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
  40. <a class="btn btn-default" href="{:url('admin/rbac/index')}">{:lang('BACK')}</a>
  41. </div>
  42. </div>
  43. </form>
  44. </div>
  45. <script src="__STATIC__/js/admin.js"></script>
  46. </body>
  47. </html>