edit.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <include file="public/head"/>
  5. <title>后台管理插件演示首页</title>
  6. <meta name="description" content="ThinkCMF插件演示首页">
  7. <meta name="keywords" content="ThinkCMF插件演示首页">
  8. </head>
  9. <body>
  10. <div class="wrap js-check-wrap">
  11. <ul class="nav nav-tabs">
  12. <li><a href="{:cmf_plugin_url('Wxapp://AdminIndex/index')}">小程序管理</a></li>
  13. <li><a href="{:cmf_plugin_url('Wxapp://AdminWxapp/add')}">添加小程序</a></li>
  14. <li class="active"><a>编辑小程序</a></li>
  15. </ul>
  16. <form method="post" class="form-horizontal js-ajax-form margin-top-20"
  17. action="{:cmf_plugin_url('Wxapp://AdminWxapp/editPost')}">
  18. <div class="form-group">
  19. <label class="col-sm-2 control-label"><span class="form-required">*</span>名称</label>
  20. <div class="col-md-6 col-sm-10">
  21. <input type="text" class="form-control" name="name" value="{$wxapp.name|default=''}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="col-sm-2 control-label"><span class="form-required">*</span>App ID</label>
  26. <div class="col-md-6 col-sm-10">
  27. <input type="text" class="form-control" name="app_id" value="{$wxapp.app_id|default=''}" readonly>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="col-sm-2 control-label"><span class="form-required">*</span>App Secret</label>
  32. <div class="col-md-6 col-sm-10">
  33. <input type="text" class="form-control" name="app_secret" value="{$wxapp.app_secret|default=''}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-sm-2 control-label">默认小程序</label>
  38. <div class="col-md-6 col-sm-10">
  39. <div class="checkbox">
  40. <label>
  41. <if condition="!empty($default_wxapp['app_id']) && !empty($wxapp['app_id']) && $default_wxapp['app_id']== $wxapp['app_id']">
  42. <input type="checkbox" name="is_default" value="1" checked>
  43. <else/>
  44. <input type="checkbox" name="is_default" value="1">
  45. </if>
  46. </label>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="col-sm-offset-2 col-sm-10">
  51. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
  52. </div>
  53. </form>
  54. </div>
  55. <include file="public/scripts"/>
  56. </body>
  57. </html>