人人商城

tplnotice.html 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {template 'common/header'}
  2. {template 'profile/common'}
  3. <div id="js-profile-tplnotice" ng-controller="tplCtrl" ng-cloak>
  4. <table class="table we7-table table-hover table-form">
  5. <col width="200px " />
  6. <col />
  7. <col width="100px" />
  8. <tr>
  9. <th class="text-left" colspan="3">设置通知模板</th>
  10. </tr>
  11. <tr ng-repeat="(key, tpl) in tplList track by key">
  12. <td class="text-left">
  13. {{ tpl.name }}
  14. </td>
  15. <td class="text-left color-gray">
  16. {{ tpl.tpl }}
  17. </td>
  18. <td class="text-left ">
  19. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#jsauth_acid" ng-click="changeActive(key)">修改</a></div>
  20. </td>
  21. </tr>
  22. </table>
  23. <div class="modal fade" id="jsauth_acid" tabindex="-1" role="dialog" aria-hidden="true">
  24. <div class="we7-modal-dialog modal-dialog">
  25. <div class="modal-content">
  26. <div class="modal-header">
  27. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  28. <div class="modal-title">{{ tplList[active]['name'] }}</div>
  29. </div>
  30. <div class="modal-body">
  31. <div class="form-group">
  32. <input type="" name="" id="" ng-model="activetpl" class="form-control" placeholder="{{ tplList[active]['name'] }}" />
  33. <span class="help-block">{{ tplList[active]['help'] }}</span>
  34. </div>
  35. </div>
  36. <div class="modal-footer">
  37. <button type="button" class="btn btn-primary" ng-click="saveTpl()">确定</button>
  38. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <script>
  45. angular.module('profileApp').value('config', {
  46. 'tplList' : {php echo json_encode($tpl)},
  47. 'url' : "{php echo url('profile/tplnotice/set')}"
  48. });
  49. angular.bootstrap($('#js-profile-tplnotice'), ['profileApp']);
  50. </script>
  51. {template 'common/footer'}