manage-expired-message.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {template 'common/header'}
  2. <div id="js-system-account-expired-message" ng-controller="SystemAccountExpiredMessageCtrl" ng-cloak>
  3. <!-- 列表数据 start -->
  4. <table class="table we7-table table-hover vertical-middle table-manage">
  5. <col width="200px"/>
  6. <col width="600px"/>
  7. <col width="50px"/>
  8. <col width="100px"/>
  9. <tr>
  10. <th>平台类型</th>
  11. <th colspan="2">到期提示</th>
  12. <th>状态</th>
  13. <th>操作</th>
  14. </tr>
  15. <tr ng-repeat="(account_type, account_type_info) in account_types" >
  16. <td ng-bind="account_type_info.title"></td>
  17. <td colspan="2" ng-bind="account_type_info.expired_message.message"></td>
  18. <td>
  19. <label>
  20. <div ng-class="account_type_info.expired_message.status == undefined || account_type_info.expired_message.status == 0 ? 'switch' : 'switch switchOn'" ng-click="saveSettingSwitch('status', account_type, account_type_info.expired_message)"></div>
  21. </label>
  22. </td>
  23. <td class="form-file">
  24. <div class="form-edit">
  25. <we7-modal-form label="'到期提示'" on-confirm="saveSetting(formValue, account_type, account_type_info.expired_message)" value="account_type_info.expired_message.message"></we7-modal-form>
  26. </div>
  27. </td>
  28. </tr>
  29. </table>
  30. <!-- 列表数据 end -->
  31. </div>
  32. <script>
  33. $(function(){
  34. $('[data-toggle="tooltip"]').tooltip();
  35. });
  36. angular.module('accountApp').value('config', {
  37. account_types: {php echo !empty($account_all_type_sign) ? json_encode($account_all_type_sign) : 'null'},
  38. links: {
  39. saveSettingUrl: "{php echo url('account/expired-message/save')}",
  40. }
  41. });
  42. angular.bootstrap($('#js-system-account-expired-message'), ['accountApp']);
  43. </script>
  44. {template 'common/footer'}