hyperlink.tpl.html 1.2 KB

1234567891011121314151617181920212223242526
  1. <div class="modal-header">
  2. <h3 class="modal-title">链接</h3>
  3. </div>
  4. <div class="modal-body">
  5. <form>
  6. <div class="form-group" id="link-url-wrap" ng-class="{true: 'has-success', false: 'has-error'}[urlPassed]">
  7. <label for="link-url">链接地址:</label>
  8. <input type="text"
  9. class="form-control"
  10. ng-model="url"
  11. ng-blur="urlPassed = R_URL.test(url)"
  12. ng-focus="this.value = url"
  13. ng-keydown="shortCut($event)"
  14. id="link-url"
  15. placeholder="必填:以 http(s):// 或 ftp:// 开头">
  16. </div>
  17. <div class="form-group" ng-class="{'has-success' : titlePassed}">
  18. <label for="link-title">提示文本:</label>
  19. <input type="text" class="form-control" ng-model="title" ng-blur="titlePassed = true" id="link-title" placeholder="选填:鼠标在链接上悬停时提示的文本">
  20. </div>
  21. </form>
  22. </div>
  23. <div class="modal-footer">
  24. <button class="btn btn-primary" ng-click="ok()">确定</button>
  25. <button class="btn btn-warning" ng-click="cancel()">取消</button>
  26. </div>