modal.html 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <div class="modal fade" tabindex="-1" ng-attr-data-backdrop="{{ close ? true : 'static' }}" ng-attr-data-keyboard="{{ Boolean(close) }}">
  2. <!--
  3. // Copyright (C) 2014 The Syncthing Authors.
  4. //
  5. // This program is free software: you can redistribute it and/or modify it
  6. // under the terms of the GNU General Public License as published by the Free
  7. // Software Foundation, either version 3 of the License, or (at your option)
  8. // any later version.
  9. //
  10. // This program is distributed in the hope that it will be useful, but WITHOUT
  11. // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. // more details.
  14. //
  15. // You should have received a copy of the GNU General Public License along
  16. // with this program. If not, see <http://www.gnu.org/licenses/>.
  17. -->
  18. <div class="modal-dialog" ng-class="{'modal-lg': large}">
  19. <div class="modal-content">
  20. <div class="modal-header alert alert-{{status}}">
  21. <h4 class="modal-title">
  22. <span ng-if="icon" class="glyphicon glyphicon-{{icon}}"></span>
  23. {{title}}
  24. </h4>
  25. </div>
  26. <div class="modal-body" ng-transclude>
  27. </div>
  28. <div ng-if="close" class="modal-footer">
  29. <button type="button" class="btn btn-default btn-sm" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>&emsp;<span translate>Close</span></button>
  30. </div>
  31. </div>
  32. </div>
  33. </div>