sms-sign.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {template 'common/header'}
  2. <form action="" method="post" class="we7-form sms-sign-page" id="js-sms-sign" ng-controller="SmsSignCtrl" ng-cloak>
  3. <div class="form-group">
  4. <label for="" class="control-label col-sm-2" >注册/绑定短信签名设置</label>
  5. <div class="form-controls col-sm-8">
  6. <select class="" ng-model="site_sms_sign.register" >
  7. <option value="" ng-selected="site_sms_sign.register == ''">请选择短信签名</option>
  8. <option ng-repeat="row in all_signatures" value="{{row}}" ng-bind="row" ng-selected="site_sms_sign.register == row"></option>
  9. </select>
  10. <span class="help-block">请选择短信签名。未审核签名可以通过云短信审核签名</span>
  11. </div>
  12. </div>
  13. <div class="form-group">
  14. <label for="" class="control-label col-sm-2" >找回密码短信签名设置</label>
  15. <div class="form-controls col-sm-8">
  16. <select class="" ng-model="site_sms_sign.find_password">
  17. <option value="" ng-selected="site_sms_sign.find_password == ''">请选择短信签名</option>
  18. <option ng-repeat="row in all_signatures" value="{{row}}" ng-bind="row" ng-selected="site_sms_sign.find_password == row"></option>
  19. </select>
  20. <span class="help-block">请选择短信签名。未审核签名可以通过云短信审核签名</span>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label for="" class="control-label col-sm-2" >用户过期短信签名设置</label>
  25. <div class="form-controls col-sm-8">
  26. <select class="" ng-model="site_sms_sign.user_expire">
  27. <option value="" ng-selected="site_sms_sign.user_expire == ''">请选择短信签名</option>
  28. <option ng-repeat="row in all_signatures" value="{{row}}" ng-bind="row" ng-selected="site_sms_sign.user_expire == row"></option>
  29. </select>
  30. <span class="help-block">请选择短信签名。未审核签名可以通过云短信审核签名</span>
  31. </div>
  32. </div>
  33. <div class="col-sm-offset-2">
  34. <button type="button" class="btn btn-primary" ng-click="saveSms()" >确定</button>
  35. </div>
  36. </form>
  37. <script>
  38. angular.module('systemApp').value('config', {
  39. 'all_signatures' : {php echo !empty($cloud_sms_signs) ? json_encode($cloud_sms_signs) : 'null'},
  40. 'site_sms_sign' : {php echo !empty($setting_sms_sign) ? json_encode($setting_sms_sign) : 'null'},
  41. 'links' : {
  42. 'site_sms_sign_link' : "{php echo url('cloud/sms-sign/save_sms_sign')}"
  43. }
  44. });
  45. angular.bootstrap($('#js-sms-sign'), ['systemApp']);
  46. </script>
  47. {template 'common/footer'}