templates/ui-toasts.html.twig line 1

Open in your IDE?
  1. {{ include('partials/main.html.twig') }}
  2.     <head>
  3.         
  4.         {{ include('partials/title-meta.html.twig', {title: 'Toasts'}) }}
  5.         {{ include('partials/head-css.html.twig') }}
  6.     </head>
  7.     {{ include('partials/body.html.twig') }}
  8.         <!-- Begin page -->
  9.         <div id="layout-wrapper">
  10.         
  11.             {{ include('partials/menu.html.twig') }}
  12.         
  13.             <!-- ============================================================== -->
  14.             <!-- Start right Content here -->
  15.             <!-- ============================================================== -->
  16.             <div class="main-content">
  17.                 <div class="page-content">
  18.                     <div class="container-fluid">
  19.         
  20.                         {{ include('partials/page-title.html.twig', {pagetitle: 'UI Elements', title: 'Toasts'}) }}
  21.         
  22.                         <div class="row">
  23.                             <div class="col-xl-12">
  24.                                 <div class="card">
  25.                                     <div class="card-header">
  26.                                         <h5 class="card-title">Live Example</h5>
  27.                                         <p class="card-title-desc">Click the button below to show a toast (positioned with our
  28.                                             utilities in the
  29.                                             lower right corner) that has been hidden by default.</p>
  30.                                     </div>
  31.                                     <div class="card-body">        
  32.                                         <button type="button" class="btn btn-primary" id="liveToastBtn">Show live toast</button>
  33.                                         <div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
  34.                                             <div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
  35.                                                 <div class="toast-header">
  36.                                                     <img src="/images/logo-sm.svg" alt="" class="me-2" height="18">
  37.                                                     <strong class="me-auto">Minia</strong>
  38.                                                     <small class="text-muted">11 mins ago</small>
  39.                                                     <button type="button" class="btn-close" data-bs-dismiss="toast"
  40.                                                         aria-label="Close"></button>
  41.                                                 </div>
  42.                                                 <div class="toast-body">
  43.                                                     Hello, world! This is a toast message.
  44.                                                 </div>
  45.                                             </div>
  46.                                         </div>
  47.                                     </div>
  48.                                 </div>
  49.                             </div>
  50.                             <!-- end col -->
  51.                         </div>
  52.                         <!-- end row -->
  53.                         <div class="row">
  54.                             <div class="col-xl-6">
  55.                                 <div class="card">
  56.                                     <div class="card-header">
  57.                                         <h5 class="card-title">Basic Toast</h5>
  58.                                         <p class="card-title-desc">Toasts are as flexible as you need and have very little
  59.                                             required markup.
  60.                                             At a minimum, we require a single element to contain your
  61.                                             “toasted” content and strongly encourage a dismiss button.
  62.                                         </p>
  63.                                     </div>
  64.                                     <div class="card-body">
  65.                                         <div style="min-height: 110px;">
  66.                                             <div class="toast fade show" role="alert" aria-live="assertive"
  67.                                                 data-bs-autohide="false" aria-atomic="true">
  68.                                                 <div class="toast-header">
  69.                                                     <img src="/images/logo-sm.svg" alt="" class="me-2" height="18">
  70.                                                     <strong class="me-auto">Minia</strong>
  71.                                                     <small class="text-muted">11 mins ago</small>
  72.                                                     <button type="button" class="btn-close" data-bs-dismiss="toast"
  73.                                                         aria-label="Close"></button>
  74.                                                 </div>
  75.                                                 <div class="toast-body">
  76.                                                     Hello, world! This is a toast message.
  77.                                                 </div>
  78.                                             </div>
  79.                                         </div>
  80.                                         <!--end toast-->
  81.                                     </div>
  82.                                 </div>
  83.                             </div>
  84.                             <!-- end col -->
  85.         
  86.                             <div class="col-xl-6">
  87.                                 <div class="card">
  88.                                     <div class="card-header">
  89.                                         <h5 class="card-title">Translucent</h5>
  90.                                         <p class="card-title-desc">Toasts are slightly translucent, too, so they blend over
  91.                                             whatever they might appear over. For browsers that
  92.                                             support the <code>backdrop-filter</code> CSS property,
  93.                                             we’ll also attempt to blur the elements under a toast.
  94.                                         </p>
  95.                                     </div>
  96.                                     <div class="card-body">                                                  
  97.                                         <div style="min-height: 110px;">
  98.                                             <div class="toast fade show" role="alert" aria-live="assertive"
  99.                                                 data-bs-autohide="false" aria-atomic="true">
  100.                                                 <div class="toast-header">
  101.                                                     <img src="/images/logo-sm.svg" alt="" class="me-2" height="18">
  102.                                                     <strong class="me-auto">Minia</strong>
  103.                                                     <small class="text-muted">11 mins ago</small>
  104.                                                     <button type="button" class="btn-close" data-bs-dismiss="toast"
  105.                                                         aria-label="Close"></button>
  106.                                                 </div>
  107.                                                 <div class="toast-body">
  108.                                                     Hello, world! This is a toast message.
  109.                                                 </div>
  110.                                             </div>
  111.                                             <!--end toast-->
  112.                                         </div>
  113.                                         <!--end /div-->
  114.                                     </div>
  115.                                 </div>
  116.                             </div>
  117.                             <!-- end col -->
  118.         
  119.                         </div>
  120.                         <!-- end row -->
  121.         
  122.                         <div class="row">
  123.                             <div class="col-xl-6">
  124.                                 <div class="card">
  125.                                     <div class="card-header">
  126.                                         <h5 class="card-title">Stacking</h5>
  127.                                         <p class="card-title-desc">For systems that generate more notifications, consider using
  128.                                             a wrapping element
  129.                                             so they can easily stack.
  130.                                         </p>
  131.                                     </div>
  132.                                     <div class="card-body">
  133.                                         <div style="min-height: 230px;">
  134.                                             <div aria-live="polite" aria-atomic="true" class="position-relative">
  135.                                                 <!-- Position it: -->
  136.                                                 <!-- - `.toast-container` for spacing between toasts -->
  137.                                                 <!-- - `.position-absolute`, `top-0` & `end-0` to position the toasts in the upper right corner -->
  138.                                                 <!-- - `.p-3` to prevent the toasts from sticking to the edge of the container  -->
  139.                                                 <div class="toast-container position-absolute top-0 end-0 p-2 p-lg-3">
  140.         
  141.                                                     <!-- Then put toasts within -->
  142.                                                     <div class="toast fade show" role="alert" aria-live="assertive"
  143.                                                         data-bs-autohide="false" aria-atomic="true">
  144.                                                         <div class="toast-header">
  145.                                                             <img src="/images/logo-sm.svg" alt="" class="me-2" height="18">
  146.                                                             <strong class="me-auto">Minia</strong>
  147.                                                             <small class="text-muted">just now</small>
  148.                                                             <button type="button" class="btn-close" data-bs-dismiss="toast"
  149.                                                                 aria-label="Close"></button>
  150.                                                         </div>
  151.                                                         <div class="toast-body">
  152.                                                             See? Just like this.
  153.                                                         </div>
  154.                                                     </div>
  155.         
  156.                                                     <div class="toast fade show" role="alert" aria-live="assertive"
  157.                                                         data-bs-autohide="false" aria-atomic="true">
  158.                                                         <div class="toast-header">
  159.                                                             <img src="/images/logo-sm.svg" alt="" class="me-2" height="18">
  160.                                                             <strong class="me-auto">Minia</strong>
  161.                                                             <small class="text-muted">2 sec ago</small>
  162.                                                             <button type="button" class="btn-close" data-bs-dismiss="toast"
  163.                                                                 aria-label="Close"></button>
  164.                                                         </div>
  165.                                                         <div class="toast-body">
  166.                                                             Heads up, toasts will stack automatically
  167.                                                         </div>
  168.                                                     </div>
  169.                                                 </div>
  170.                                             </div>
  171.                                         </div>
  172.                                         <!--end /div-->
  173.                                     </div>
  174.                                 </div>
  175.                             </div>
  176.                             <!-- end col -->
  177.         
  178.                             <div class="col-xl-6">
  179.                                 <div class="card">
  180.                                     <div class="card-header">
  181.                                         <h5 class="card-title">Custom content</h5>
  182.                                         <p class="card-title-desc">Customize your toasts by removing sub-components, tweaking them with utilities, or by adding your own markup.</p>
  183.                                     </div>
  184.                                     <div class="card-body">
  185.                                         <div class="d-flex flex-column gap-3">
  186.                                             <div aria-live="polite" aria-atomic="true" class="position-relative">
  187.                                                 <div class="toast fade show" role="alert" aria-live="assertive"
  188.                                                     aria-atomic="true">
  189.                                                     <div class="toast-body">
  190.                                                         Hello, world! This is a toast message.
  191.                                                         <div class="mt-2 pt-2 border-top">
  192.                                                             <button type="button" class="btn btn-primary btn-sm">Take
  193.                                                                 action</button>
  194.                                                             <button type="button" class="btn btn-secondary btn-sm"
  195.                                                                 data-bs-dismiss="toast">Close</button>
  196.                                                         </div>
  197.                                                     </div>
  198.                                                 </div>
  199.                                             </div>
  200.                                             <div class="toast align-items-center fade show" role="alert" aria-live="assertive" aria-atomic="true">
  201.                                                 <div class="d-flex">
  202.                                                     <div class="toast-body">
  203.                                                         Hello, world! This is a toast message.
  204.                                                     </div>
  205.                                                     <button type="button" class="btn-close me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
  206.                                                 </div>
  207.                                             </div>
  208.                                             <div aria-live="polite" aria-atomic="true">
  209.                                                 <div class="toast fade show align-items-center text-white bg-primary border-0"
  210.                                                     role="alert" aria-live="assertive" aria-atomic="true">
  211.                                                     <div class="d-flex">
  212.                                                         <div class="toast-body">
  213.                                                             Hello, world! This is a toast message.
  214.                                                         </div>
  215.                                                         <button type="button" class="btn-close btn-close-white me-2 m-auto"
  216.                                                             data-bs-dismiss="toast" aria-label="Close"></button>
  217.                                                     </div>
  218.                                                 </div>
  219.                                             </div>
  220.                                         </div>
  221.                                         <!--end /div-->
  222.                                     </div>
  223.                                 </div>
  224.                             </div>
  225.                             <!-- end col -->
  226.         
  227.                         </div>
  228.                         <!-- end row -->
  229.                         <div class="row">
  230.                             <div class="col-xl-12">
  231.                                 <div class="card">
  232.                                     <div class="card-header">
  233.                                         <h5 class="card-title">Toasts Example</h5>
  234.                                         <p class="card-title-desc">Click the button below to show a toast</p>
  235.                                     </div>
  236.                                     <div class="card-body">
  237.                                         <div class="d-flex flex-wrap gap-2">
  238.                                             <div class="position-relative">
  239.                                                 <div class="hstack flex-wrap gap-2">
  240.                                                     <button type="button" class="btn btn-primary" id="borderedToast1Btn">Primary toast</button>
  241.                                                     <button type="button" class="btn btn-success" id="borderedToast2Btn">Success toast</button>
  242.                                                     <button type="button" class="btn btn-warning" id="borderedTost3Btn">Warning toast</button>
  243.                                                     <button type="button" class="btn btn-danger" id="borderedToast4Btn">danger toast</button>
  244.                                                 </div>
  245.                                     
  246.                                                 <div style="z-index: 11">
  247.                                                     <div id="borderedToast1" class="toast overflow-hidden mt-3" role="alert" aria-live="assertive"
  248.                                                         aria-atomic="true">
  249.                                                         <div class="align-items-center text-white bg-primary border-0">
  250.                                                             <div class="d-flex">
  251.                                                                 <div class="toast-body">
  252.                                                                     Hello, world! This is a toast message.
  253.                                                                 </div>
  254.                                                                 <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"
  255.                                                                     aria-label="Close"></button>
  256.                                                             </div>
  257.                                                         </div>
  258.                                                     </div>
  259.                                                 </div>
  260.                                     
  261.                                                 <div style="z-index: 11">
  262.                                                     <div id="borderedToast2" class="toast overflow-hidden mt-3" role="alert" aria-live="assertive"
  263.                                                         aria-atomic="true">
  264.                                                         <div class="align-items-center text-white bg-success border-0">
  265.                                                             <div class="d-flex">
  266.                                                                 <div class="toast-body">
  267.                                                                     Hello, world! This is a toast message.
  268.                                                                 </div>
  269.                                                                 <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"
  270.                                                                     aria-label="Close"></button>
  271.                                                             </div>
  272.                                                         </div>
  273.                                                     </div>
  274.                                                 </div>
  275.                                     
  276.                                                 <div style="z-index: 11">
  277.                                                     <div id="borderedTost3" class="toast overflow-hidden mt-3" role="alert" aria-live="assertive"
  278.                                                         aria-atomic="true">
  279.                                                         <div class="align-items-center text-white bg-warning border-0">
  280.                                                             <div class="d-flex">
  281.                                                                 <div class="toast-body">
  282.                                                                     Hello, world! This is a toast message.
  283.                                                                 </div>
  284.                                                                 <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"
  285.                                                                     aria-label="Close"></button>
  286.                                                             </div>
  287.                                                         </div>
  288.                                                     </div>
  289.                                                 </div>
  290.                                     
  291.                                                 <div style="z-index: 11">
  292.                                                     <div id="borderedToast4" class="toast overflow-hidden mt-3" role="alert" aria-live="assertive"
  293.                                                         aria-atomic="true">
  294.                                                         <div class="align-items-center text-white bg-danger border-0">
  295.                                                             <div class="d-flex">
  296.                                                                 <div class="toast-body">
  297.                                                                     Hello, world! This is a toast message.
  298.                                                                 </div>
  299.                                                                 <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"
  300.                                                                     aria-label="Close"></button>
  301.                                                             </div>
  302.                                                         </div>
  303.                                                     </div>
  304.                                                 </div>
  305.                                     
  306.                                             </div>
  307.                                     
  308.                                         </div>
  309.                                 </div>
  310.                             </div>
  311.                             <!-- end col -->
  312.                         </div>
  313.                         <!-- end row -->
  314.                         <div class="row">
  315.                             <div class="col-xl-12">
  316.                                 <div class="card">
  317.                                     <div class="card-header">
  318.                                         <h5 class="card-title">Live Example</h5>
  319.                                         <p class="card-title-desc">Click the button below to show a toast (positioned with our
  320.                                             utilities in the
  321.                                             lower right corner) that has been hidden by default.
  322.                                         </p>
  323.                                     </div>
  324.                                     <div class="card-body">
  325.                                         <form>
  326.                                             <div class="mb-3">
  327.                                                 <select class="form-select mt-2" id="selectToastPlacement">
  328.                                                     <option value="" selected>Select a position...</option>
  329.                                                     <option value="top-0 start-0">Top left ( top-0 start-0 )</option>
  330.                                                     <option value="top-0 start-50 translate-middle-x">Top center ( top-0 start-50 translate-middle-x )</option>
  331.                                                     <option value="top-0 end-0">Top right( top-0 end-0 ) </option>
  332.                                                     <option value="top-50 start-0 translate-middle-y">Middle left ( top-50 start-0 translate-middle-y )</option>
  333.                                                     <option value="top-50 start-50 translate-middle">Middle center ( top-50 start-50 translate-middle )</option>
  334.                                                     <option value="top-50 end-0 translate-middle-y">Middle right ( top-50 end-0 translate-middle-y )</option>
  335.                                                     <option value="bottom-0 start-0">Bottom left ( bottom-0 start-0 )</option>
  336.                                                     <option value="bottom-0 start-50 translate-middle-x">Bottom center ( bottom-0 start-50 translate-middle-x )</option>
  337.                                                     <option value="bottom-0 end-0">Bottom right ( bottom-0 end-0 )</option>
  338.                                                 </select>
  339.                                             </div>
  340.                                         </form>
  341.                                         <div aria-live="polite" aria-atomic="true" class="bd-example bg-light position-relative" style="height: 300px;">
  342.                                             <div class="toast-container position-absolute p-3" id="toastPlacement">
  343.                                                 <div class="toast">
  344.                                                     <div class="toast-header">
  345.                                                         <img src="/images/logo-sm.svg" class="rounded me-2"
  346.                                                             alt="..." height="20">
  347.                                                         <strong class="me-auto">Minia</strong>
  348.                                                         <small>11 mins ago</small>
  349.                                                         <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
  350.                                                     </div>
  351.                                                     <div class="toast-body">
  352.                                                         Hello, world! This is a toast message.
  353.                                                     </div>
  354.                                                 </div>
  355.                                             </div>
  356.                                         </div>
  357.                                     </div>
  358.                                 </div>
  359.                             </div>
  360.                             <!-- end col -->
  361.                         </div>
  362.                         <!-- end row -->
  363.                     </div> <!-- container-fluid -->
  364.                 </div>
  365.                 <!-- End Page-content -->
  366.         
  367.                 {{ include('partials/footer.html.twig') }}
  368.             </div>
  369.             <!-- end main content-->
  370.         
  371.         </div>
  372.         <!-- END layout-wrapper -->
  373.         {{ include('partials/right-sidebar.html.twig') }}
  374.         {{ include('partials/vendor-scripts.html.twig') }}
  375.         <!-- Bootstrap Toasts Js -->
  376.         <script src="/js/pages/bootstrap-toasts.init.js"></script>
  377.         <script src="/js/app.js"></script>
  378.     </body>
  379. </html>