ui_notifications.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <!-- start: PAGE TITLE -->
  2. <section id="page-title">
  3. <div class="row">
  4. <div class="col-sm-8">
  5. <h1 class="mainTitle" translate="sidebar.nav.element.NOTIFICATIONS">{{ mainTitle }}</h1>
  6. <span class="mainDescription">A small box that appears on the display screen to give you information or to warn you about a potentially damaging operation. <small class="block">Webopedia - Online Tech Dictionary for IT Professionals</small></span>
  7. </div>
  8. <div ncy-breadcrumb></div>
  9. </div>
  10. </section>
  11. <!-- end: PAGE TITLE -->
  12. <!-- start: SWEETALERT -->
  13. <div class="container-fluid container-fullw bg-white">
  14. <!-- /// controller: 'SweetAlertCtrl' - localtion: assets/js/controllers/sweetAlertCtrl.js /// -->
  15. <div ng-controller="SweetAlertCtrl">
  16. <div class="row">
  17. <div class="col-md-12">
  18. <h5 class="over-title margin-bottom-15"><span class="text-bold">ngSweetAlert</span></h5>
  19. <p>
  20. AngularJS wrapper for SweetAlert. Sweet Alert is a beautiful replacement for Javascript's "Alert".
  21. </p>
  22. <div class="row">
  23. <div class="col-lg-4 col-sm-6">
  24. <div class="panel panel-transparent min-height-200">
  25. <div class="panel-heading">
  26. <div class="panel-title">
  27. Basic message
  28. </div>
  29. </div>
  30. <div class="panel-body">
  31. <p class="margin-bottom-30">
  32. Show a basic message to give information to the user or to warn about a potentially damaging operation.
  33. </p>
  34. <button class="btn btn-primary pull-right" ng-click="demo1();">
  35. Open Message
  36. </button>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="col-lg-4 col-sm-6">
  41. <div class="panel panel-transparent min-height-200">
  42. <div class="panel-heading">
  43. <div class="panel-title">
  44. Title with a text under
  45. </div>
  46. </div>
  47. <div class="panel-body">
  48. <p class="margin-bottom-30">
  49. Not enough basic message? Show more information to the user by entering a text below the title
  50. </p>
  51. <button class="btn btn-primary pull-right" ng-click="demo2();">
  52. Open Message
  53. </button>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="col-lg-4 col-sm-6">
  58. <div class="panel panel-transparent min-height-200">
  59. <div class="panel-heading">
  60. <div class="panel-title">
  61. Success message
  62. </div>
  63. </div>
  64. <div class="panel-body">
  65. <p class="margin-bottom-30">
  66. Shows the user a message to warn him that a certain operation is successful.
  67. </p>
  68. <button class="btn btn-primary pull-right" ng-click="demo3();">
  69. Open Message
  70. </button>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="col-lg-4 col-sm-6">
  75. <div class="panel panel-transparent min-height-200">
  76. <div class="panel-heading">
  77. <div class="panel-title">
  78. Warning message
  79. </div>
  80. </div>
  81. <div class="panel-body">
  82. <p class="margin-bottom-30">
  83. Shows the user a warning message, with a function attached to the "Confirm" button.
  84. </p>
  85. <button class="btn btn-primary pull-right" ng-click="demo4();">
  86. Open Message
  87. </button>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="col-lg-4 col-sm-6">
  92. <div class="panel panel-transparent min-height-200">
  93. <div class="panel-heading">
  94. <div class="panel-title">
  95. Another warning message
  96. </div>
  97. </div>
  98. <div class="panel-body">
  99. <p class="margin-bottom-30">
  100. By passing a parameter to warning message, you can execute something else for "Cancel".
  101. </p>
  102. <button class="btn btn-primary pull-right" ng-click="demo5();">
  103. Open Message
  104. </button>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="col-lg-4 col-sm-6">
  109. <div class="panel panel-transparent min-height-200">
  110. <div class="panel-heading">
  111. <div class="panel-title">
  112. Custom icon
  113. </div>
  114. </div>
  115. <div class="panel-body">
  116. <p class="margin-bottom-30">
  117. If desired, you can make more effective the message by adding a custom icon
  118. </p>
  119. <button class="btn btn-primary pull-right" ng-click="demo6();">
  120. Open Message
  121. </button>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <!-- end: SWEETALERT -->
  131. <!-- start: TOASTER -->
  132. <div class="container-fluid container-fullw">
  133. <div class="row">
  134. <div class="col-md-12">
  135. <h5 class="over-title margin-bottom-15"><span class="text-bold">Toaster notifications for Angular</span></h5>
  136. <p>
  137. AngularJS Toaster is an AngularJS port of the toastr non-blocking notification jQuery library.
  138. </p>
  139. <!-- /// controller: 'ToasterDemoCtrl' - localtion: assets/js/controllers/toasterCtrl.js /// -->
  140. <div ng-controller="ToasterDemoCtrl">
  141. <div class="row">
  142. <div class="col-sm-6">
  143. <div class="form-group">
  144. <label>
  145. Title
  146. </label>
  147. <input type="text" class="form-control" placeholder="Enter a title..." ng-model="toaster.title">
  148. </div>
  149. <div class="form-group">
  150. <label>
  151. Message
  152. </label>
  153. <textarea class="form-control" placeholder="Enter a message" rows="5" ng-model="toaster.text"></textarea>
  154. </div>
  155. </div>
  156. <div class="col-sm-6">
  157. <label>
  158. Toast Type
  159. </label>
  160. <div class="radio clip-radio radio-primary">
  161. <input type="radio" id="typesuccess" name="toasts" ng-model="toaster.type" value="success">
  162. <label for="typesuccess">
  163. Success
  164. </label>
  165. </div>
  166. <div class="radio clip-radio radio-primary">
  167. <input type="radio" id="typeinfo" name="toasts" ng-model="toaster.type" value="info">
  168. <label for="typeinfo">
  169. Info
  170. </label>
  171. </div>
  172. <div class="radio clip-radio radio-primary">
  173. <input type="radio" id="typewait" name="toasts" ng-model="toaster.type" value="wait">
  174. <label for="typewait">
  175. Wait
  176. </label>
  177. </div>
  178. <div class="radio clip-radio radio-primary">
  179. <input type="radio" id="typewarning" name="toasts" ng-model="toaster.type" value="warning">
  180. <label for="typewarning">
  181. Warning
  182. </label>
  183. </div>
  184. <div class="radio clip-radio radio-primary">
  185. <input type="radio" id="typeerror" name="toasts" ng-model="toaster.type" value="error">
  186. <label for="typeerror">
  187. Error
  188. </label>
  189. </div>
  190. </div>
  191. </div>
  192. <button class="btn btn-o btn-primary" ng-click="pop()">
  193. Show a Toaster
  194. </button>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. <!-- end: TOASTER -->
  200. <!-- start: ALERTS AND NOTIFICATIONS -->
  201. <div class="container-fluid container-fullw bg-white">
  202. <div class="row">
  203. <div class="col-md-12">
  204. <h5 class="over-title margin-bottom-15">Inline <span class="text-bold">Alerts and Notifications</span></h5>
  205. <p>
  206. Provide contextual feedback messages for typical user actions with the handful of available and flexible messages.
  207. </p>
  208. <div class="row">
  209. <div class="col-md-6">
  210. <!-- start: ALERTS PANEL -->
  211. <h5 class="over-title">Alerts</h5>
  212. <div class="panel panel-white">
  213. <div class="panel-body">
  214. <h5 class="margin-bottom-20">Basic</h5>
  215. <p class="text-small">
  216. Wrap any text and an optional dismiss button in <code> .alert </code>
  217. and one of the four contextual classes (e.g., <code> .alert-success </code>
  218. ) for basic alert messages.
  219. </p>
  220. <p class="text-small">
  221. Use the <code> .alert-link </code>
  222. utility class to quickly provide matching colored links within any alert.
  223. </p>
  224. <div class="alert alert-success">
  225. <button data-ct-dismiss="alert" class="close">
  226. &times;
  227. </button>
  228. <strong>Well done!</strong> You successfully read
  229. <a class="alert-link" href="#">
  230. this important alert message
  231. </a>
  232. .
  233. </div>
  234. <div class="alert alert-info">
  235. <button data-ct-dismiss="alert" class="close">
  236. &times;
  237. </button>
  238. <strong>Heads up!</strong>
  239. This
  240. <a class="alert-link" href="#">
  241. alert needs your attention
  242. </a>
  243. , but it's not super important.
  244. </div>
  245. <div class="alert alert-warning">
  246. <button data-ct-dismiss="alert" class="close">
  247. &times;
  248. </button>
  249. <strong>Warning!</strong>
  250. Better check yourself, you're
  251. <a class="alert-link" href="#">
  252. not looking too good
  253. </a>
  254. .
  255. </div>
  256. <div class="alert alert-danger">
  257. <button data-ct-dismiss="alert" class="close">
  258. &times;
  259. </button>
  260. <strong>Oh snap!</strong>
  261. <a class="alert-link" href="#">
  262. Change a few things up
  263. </a>
  264. and try submitting again.
  265. </div>
  266. <h5 class="margin-bottom-20">AngularJS-version of bootstrap's alert</h5>
  267. <p class="text-small">
  268. This directive can be used to generate alerts from the dynamic model data (using the <code>ng-repeat</code> directive);
  269. The presence of the <code>close</code> attribute determines if a close button is displayed
  270. </p>
  271. <!-- /// controller: 'AlertDemoCtrl' - localtion: assets/js/controllers/bootstrapCtrl.js /// -->
  272. <div ng-controller="AlertDemoCtrl">
  273. <alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">
  274. {{alert.msg}}
  275. </alert>
  276. <button class='btn btn-primary btn-o' ng-click="addAlert()">
  277. Add Alert
  278. </button>
  279. </div>
  280. </div>
  281. </div>
  282. <!-- end: ALERTS PANEL -->
  283. </div>
  284. <div class="col-md-6">
  285. <!-- start: NOTIFICATION PANEL -->
  286. <h5 class="over-title">Notifications</h5>
  287. <div class="panel panel-transparent">
  288. <div class="panel-body">
  289. <div class="alert alert-block alert-danger fade in">
  290. <button data-ct-dismiss="alert" class="close" type="button">
  291. &times;
  292. </button>
  293. <h4 class="alert-heading margin-bottom-10"><i class="ti-close"></i> Error!</h4>
  294. <p class="margin-bottom-10">
  295. Duis mollis, est non commodo luctus,
  296. nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.
  297. </p>
  298. <p>
  299. <a href="#" class="btn btn-danger">
  300. Take this action
  301. </a>
  302. <a href="#" class="btn btn-o btn-danger">
  303. Or do this
  304. </a>
  305. </p>
  306. </div>
  307. <div class="alert alert-block alert-success fade in">
  308. <button data-ct-dismiss="alert" class="close" type="button">
  309. &times;
  310. </button>
  311. <h4 class="alert-heading margin-bottom-10"><i class="ti-check"></i> Success!</h4>
  312. <p class="margin-bottom-10">
  313. Duis mollis, est non commodo luctus,
  314. nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.
  315. </p>
  316. <p>
  317. <a href="#" class="btn btn-success">
  318. Take this action
  319. </a>
  320. <a href="#" class="btn btn-o btn-success">
  321. Or do this
  322. </a>
  323. </p>
  324. </div>
  325. <div class="alert alert-block alert-info fade in">
  326. <button data-ct-dismiss="alert" class="close" type="button">
  327. &times;
  328. </button>
  329. <h4 class="alert-heading margin-bottom-10"><i class="ti-info"></i> Info!</h4>
  330. <p class="margin-bottom-10">
  331. Duis mollis, est non commodo luctus,
  332. nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.
  333. </p>
  334. <p>
  335. <a href="#" class="btn btn-info">
  336. Take this action
  337. </a>
  338. <a href="#" class="btn btn-o btn-info">
  339. Or do this
  340. </a>
  341. </p>
  342. </div>
  343. <div class="alert alert-block alert-warning fade in">
  344. <button data-ct-dismiss="alert" class="close" type="button">
  345. &times;
  346. </button>
  347. <h4 class="alert-heading margin-bottom-10"><i class="ti-alert"></i> Warning!</h4>
  348. <p class="margin-bottom-10">
  349. Duis mollis, est non commodo luctus,
  350. nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.
  351. </p>
  352. <p>
  353. <a href="#" class="btn btn-warning">
  354. Take this action
  355. </a>
  356. <a href="#" class="btn btn-o btn-warning">
  357. Or do this
  358. </a>
  359. </p>
  360. </div>
  361. </div>
  362. </div>
  363. <!-- end: NOTIFICATION PANEL -->
  364. </div>
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. <!-- end: ALERTS AND NOTIFICATIONS -->