edit.html 1.8 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('nav/index')}">{:lang('ADMIN_NAV_INDEX')}</a></li>
  7. <li><a href="{:url('nav/add')}">{:lang('ADMIN_NAV_ADD')}</a></li>
  8. <li class="active" ><a>{:lang('ADMIN_NAV_EDIT')}</a></li>
  9. </ul>
  10. <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('nav/editPost')}">
  11. <div class="form-group">
  12. <label class="col-sm-2 control-label"><span class="form-required">*</span>名称:</label>
  13. <div class="col-md-6 col-sm-10">
  14. <input type="hidden" name="id" value="{$id}">
  15. <input type="text" class="form-control" name="name" value="{$name}">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="col-sm-2 control-label">备注:</label>
  20. <div class="col-md-6 col-sm-10">
  21. <textarea class="form-control" name="remark" >{$remark}</textarea>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="col-sm-2 control-label">主菜单:</label>
  26. <div class="col-md-6 col-sm-10">
  27. <div class="checkbox">
  28. <label>
  29. <php>$strMainMenuChecked=$is_main?"checked":"";</php>
  30. <input type="checkbox" name="is_main" value="1" {$strMainMenuChecked} >
  31. </label>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="col-sm-offset-2 col-sm-10">
  36. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
  37. <a class="btn btn-default" href="{:url('Nav/index')}">返回</a>
  38. </div>
  39. </form>
  40. </div>
  41. <script src="__STATIC__/js/admin.js"></script>
  42. </body>
  43. </html>