人人商城

module-group.html 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {template "common/header"}
  2. <div class="steps">
  3. <div class="steps-item steps-status-wait">
  4. <div class="steps-line"><span class="steps-num">1</span></div>
  5. <div class="steps-state">安装应用</div>
  6. </div>
  7. <div class="steps-item steps-status-finish">
  8. <div class="steps-line"><span class="steps-num">2</span></div>
  9. <div class="steps-state">分配应用权限</div>
  10. </div>
  11. <div class="steps-item steps-status-wait">
  12. <div class="steps-line"><span class="steps-num">3</span></div>
  13. <div class="steps-state">安装成功</div>
  14. </div>
  15. </div>
  16. <div class="clearfix">
  17. <h5 class="page-header">安装 {if $action == 'module'}{$module['title']}{else}模板{/if}</h5>
  18. <div class="alert alert-info">
  19. 您正在安装 {if $action == 'module'}{$module['title']} 模块{else}模板{/if}. 请选择哪些公众号服务套餐组可使用
  20. {if $action == 'module'}{$module['title']} 功能{else}该模板{/if} .
  21. </div>
  22. <div class="alert alert-info">
  23. 默认将{if $action == 'module'}{$module['title']} 模块{else}模板{/if}加入<span class="label label-info">所有服务</span>套餐服务
  24. </div>
  25. <form class="form-horizontal form we7-form" action="" method="post" id="form1">
  26. <h5 class="page-header">可用的公众号服务套餐组 <small>这里来定义哪些公众号服务套餐组可使用 {if $action == 'module'}{$module['title']} 功能{else}该模板{/if}</small></h5>
  27. <div class="form-group">
  28. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">公众号服务套餐组</label>
  29. <div class="col-sm-10 col-xs-12">
  30. {loop $module_group $group}
  31. <div class="checkbox">
  32. <input id="checkbox-{$group['id']}" type="checkbox" name="group[]" value="{$group['id']}">
  33. <label for="checkbox-{$group['id']}" class="ng-binding">{$group['name']}</label>
  34. </div>
  35. {/loop}
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
  40. <div class="col-sm-10 col-xs-12">
  41. <input type="submit" class="btn btn-primary" name="submit" value="确定继续安装 {$module['title']}">
  42. </div>
  43. </div>
  44. <input type="hidden" name="flag" value="1">
  45. <input type="hidden" name="tid" value="{$tid}">
  46. <input type="hidden" name="support" value="{$module_support_name}">
  47. </form>
  48. <div class="distribution-steps">
  49. <div class="we7-margin-bottom-sm font-lg">分配应用权限的流程说明</div>
  50. <div class="steps-container">
  51. <div>
  52. <div class="num">1</div>
  53. <div class="title">
  54. <span class="wi wi-appjurisdiction"></span>添加应用权限组
  55. </div>
  56. <div class="content">
  57. 设置应用权限组名称,选择需要添加的公众号应用、小程序应用、微站模板,保存提交。
  58. <div><a href="{php echo url('module/group/post')}" class="color-default">去添加应用组 ></a></div>
  59. </div>
  60. </div>
  61. <div>
  62. <div class="num">2</div>
  63. <div class="title">
  64. <span class="wi wi-distribution"></span>分配应用到应用权限组
  65. </div>
  66. <div class="content">
  67. 选择上方相应的应用权限组,把应用添加到组中。或者到应用权限中编辑应用权限组。
  68. <div><a href="{php echo url('module/group')}" class="color-default">选择/去编辑应用组 ></a></div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <script>
  74. $('#form1').submit(function(){
  75. var num = $("input[name='group[]']:checked").length;
  76. if(num == 0) {
  77. return confirm("您没有选择可使用该模块/模板的公众号服务套餐组,模块/模板安装成功后可在 公众号服务套餐 编辑");
  78. }
  79. return true;
  80. });
  81. </script>
  82. </div>
  83. {template 'common/footer'}