暫無描述

ui-notifications.html 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {% extends "base-site.html" %}
  2. {% block title %} UI Notifications {% endblock %}
  3. <!-- Specific Page CSS goes HERE -->
  4. {% block stylesheets %}{% endblock stylesheets %}
  5. {% block content %}
  6. <div class="row">
  7. <div class="col-md-6">
  8. <div class="card">
  9. <div class="card-header">
  10. <h4 class="card-title">Notifications Style</h4>
  11. </div>
  12. <div class="card-body">
  13. <div class="alert alert-info">
  14. <span>This is a plain notification</span>
  15. </div>
  16. <div class="alert alert-info">
  17. <button type="button" aria-hidden="true" class="close" data-dismiss="alert" aria-label="Close">
  18. <i class="tim-icons icon-simple-remove"></i>
  19. </button>
  20. <span>This is a notification with close button.</span>
  21. </div>
  22. <div class="alert alert-info alert-with-icon" data-notify="container">
  23. <button type="button" aria-hidden="true" class="close" data-dismiss="alert" aria-label="Close">
  24. <i class="tim-icons icon-simple-remove"></i>
  25. </button>
  26. <span data-notify="icon" class="tim-icons icon-bell-55"></span>
  27. <span data-notify="message">This is a notification with close button and icon.</span>
  28. </div>
  29. <div class="alert alert-info alert-with-icon" data-notify="container">
  30. <button type="button" aria-hidden="true" class="close" data-dismiss="alert" aria-label="Close">
  31. <i class="tim-icons icon-simple-remove"></i>
  32. </button>
  33. <span data-notify="icon" class="tim-icons icon-bell-55"></span>
  34. <span data-notify="message">This is a notification with close button and icon and have many lines. You can see that the icon and the close button are always vertically aligned. This is a beautiful notification. So you don't have to worry about the style.</span>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="col-md-6">
  40. <div class="card">
  41. <div class="card-header">
  42. <h4 class="card-title">Notification states</h4>
  43. </div>
  44. <div class="card-body">
  45. <div class="alert alert-primary">
  46. <button type="button" aria-hidden="true" class="close" data-dismiss="alert" aria-label="Close">
  47. <i class="tim-icons icon-simple-remove"></i>
  48. </button>
  49. <span><b> Primary - </b> This is a regular notification made with ".alert-primary"</span>
  50. </div>
  51. <div class="alert alert-info">
  52. <button type="button" aria-hidden="true" class="close" data-dismiss="alert" aria-label="Close">
  53. <i class="tim-icons icon-simple-remove"></i>
  54. </button>
  55. <span><b> Info - </b> This is a regular notification made with ".alert-info"</span>
  56. </div>
  57. <div class="alert alert-success">
  58. <button type="button" aria-hidden="true" class="close" data-dismiss="alert" aria-label="Close">
  59. <i class="tim-icons icon-simple-remove"></i>
  60. </button>
  61. <span><b> Success - </b> This is a regular notification made with ".alert-success"</span>
  62. </div>
  63. <div class="alert alert-warning">
  64. <button type="button" aria-hidden="true" class="close" data-dismiss="alert" aria-label="Close">
  65. <i class="tim-icons icon-simple-remove"></i>
  66. </button>
  67. <span><b> Warning - </b> This is a regular notification made with ".alert-warning"</span>
  68. </div>
  69. <div class="alert alert-danger">
  70. <button type="button" aria-hidden="true" class="close" data-dismiss="alert" aria-label="Close">
  71. <i class="tim-icons icon-simple-remove"></i>
  72. </button>
  73. <span><b> Danger - </b> This is a regular notification made with ".alert-danger"</span>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="col-md-12">
  79. <div class="card">
  80. <div class="card-body">
  81. <div class="places-buttons">
  82. <div class="row">
  83. <div class="col-md-6 ml-auto mr-auto text-center">
  84. <h4 class="card-title">
  85. Notifications Places
  86. <p class="category">Click to view notifications</p>
  87. </h4>
  88. </div>
  89. </div>
  90. <div class="row">
  91. <div class="col-lg-8 ml-auto mr-auto">
  92. <div class="row">
  93. <div class="col-md-4">
  94. <button class="btn btn-primary btn-block" onclick="demo.showNotification('top','left')">Top Left</button>
  95. </div>
  96. <div class="col-md-4">
  97. <button class="btn btn-primary btn-block" onclick="demo.showNotification('top','center')">Top Center</button>
  98. </div>
  99. <div class="col-md-4">
  100. <button class="btn btn-primary btn-block" onclick="demo.showNotification('top','right')">Top Right</button>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="row">
  106. <div class="col-lg-8 ml-auto mr-auto">
  107. <div class="row">
  108. <div class="col-md-4">
  109. <button class="btn btn-primary btn-block" onclick="demo.showNotification('bottom','left')">Bottom Left</button>
  110. </div>
  111. <div class="col-md-4">
  112. <button class="btn btn-primary btn-block" onclick="demo.showNotification('bottom','center')">Bottom Center</button>
  113. </div>
  114. <div class="col-md-4">
  115. <button class="btn btn-primary btn-block" onclick="demo.showNotification('bottom','right')">Bottom Right</button>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. {% endblock content %}
  126. <!-- Specific Page JS goes HERE -->
  127. {% block javascripts %}{% endblock javascripts %}