shortcut.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {template 'common/header'}
  2. <div id="js-module-shortcut" ng-controller="userModuleShortcutCtrl">
  3. <div class="clearfix we7-margin-bottom">
  4. <a href="./index.php?c=module&a=shortcut&do=post&m={$module_name}&uniacid={$uniacid}" class="btn btn-primary pull-right">添加快捷入口</a>
  5. </div>
  6. <table class="tbble we7-table">
  7. <tr>
  8. <th>快捷入口列表</th>
  9. <th></th>
  10. <th></th>
  11. </tr>
  12. <tr ng-repeat="item in lists" ng-if="!(lists | we7IsEmpty)">
  13. <td>
  14. <img ng-src="{{ attachurl}}{{ item.icon }}" class="module-img logo" alt="">
  15. </td>
  16. <td>
  17. <span class="title" ng-bind="item.title"></span>
  18. </td>
  19. <td>
  20. <div class="link-group">
  21. <a href="javascript:void(0);" ng-click="edit(item.id)">编辑</a>
  22. <a href="javascript:void(0);" ng-click="delete(item.id)">删除</a>
  23. </div>
  24. </td>
  25. </tr>
  26. <tr ng-if="lists | we7IsEmpty">
  27. <td colspan="3">
  28. 暂无快捷入口
  29. </td>
  30. </tr>
  31. </table>
  32. </div>
  33. <script>
  34. angular.module('moduleApp').value('config', {
  35. 'lists' : {php echo !empty($list['lists']) ? json_encode($list['lists']) : 'null'},
  36. 'attachurl' : "{$_W['attachurl']}",
  37. 'links' : {
  38. 'post_url' : "{php echo url('module/shortcut/post', array('uniacid' => $uniacid, 'm' => $module_name))}",
  39. 'delete_url' : "{php echo url('module/shortcut/delete', array('uniacid' => $uniacid, 'm' => $module_name))}",
  40. }
  41. });
  42. angular.bootstrap($('#js-module-shortcut'), ['moduleApp']);
  43. </script>
  44. {template 'common/footer'}