modal.html 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <!--
  2. // Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
  3. //
  4. // This program is free software: you can redistribute it and/or modify it
  5. // under the terms of the GNU General Public License as published by the Free
  6. // Software Foundation, either version 3 of the License, or (at your option)
  7. // any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful, but WITHOUT
  10. // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. // more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <div class="modal fade" tabindex="-1" ng-attr-data-backdrop="{{ close ? true : 'static' }}" ng-attr-data-keyboard="{{ Boolean(close) }}">
  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>