templates/form-mask.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: 'Form Mask'}) }}
  5.         {{ include('partials/head-css.html.twig') }}
  6.     </head>
  7.     {{ include('partials/body.html.twig') }}
  8.         <!-- Begin page -->
  9.         <div id="layout-wrapper">
  10.             {{ include('partials/menu.html.twig') }}
  11.             <!-- ============================================================== -->
  12.             <!-- Start right Content here -->
  13.             <!-- ============================================================== -->
  14.             <div class="main-content">
  15.                 <div class="page-content">
  16.                     <div class="container-fluid">
  17.                         {{ include('partials/page-title.html.twig', {pagetitle: 'Forms', title: 'Form Mask'}) }}
  18.                         
  19.                         <div class="row">
  20.                             <div class="col-lg-12">
  21.                                 <div class="card">
  22.                                     <div class="card-header">
  23.                                         <h4 class="card-title">Imask</h4>
  24.                                         <p class="card-title-desc mb-0">vanilla javascript input mask</p>
  25.                                     </div>
  26.                                     <div class="card-body">
  27.                                         <form>
  28.                                             <div class="row">
  29.                                                 <div class="col-lg-6">
  30.                                                     <div>
  31.                                                         <div>
  32.                                                             <label for="regexp-mask" class="form-label">RegExp (Russian postal code)</label>
  33.                                                             <input type="text" class="form-control" id="regexp-mask">
  34.                                                             <div class="text-muted">/^[1-6]\d{0,5}$/</div>
  35.                                                         </div>
  36.     
  37.                                                         <div class="mt-4">
  38.                                                             <label for="phone-mask" class="form-label">Pattern (Phone)</label>
  39.                                                             <input type="text" class="form-control" id="phone-mask">
  40.                                                             <div class="text-muted">+{7}(000)000-00-00</div>
  41.                                                         </div>
  42.                                                         <div class="mt-4">
  43.                                                             <label for="number-mask" class="form-label">Number</label>
  44.                                                             <input type="text" class="form-control" id="number-mask">
  45.                                                             <div class="text-muted">in range [-10000, 10000]</div>
  46.                                                         </div>
  47.                                                     </div>
  48.                                                 </div>
  49.                                                 <!-- end col -->
  50.                                                 <div class="col-lg-6">
  51.                                                     <div class="mt-4 mt-lg-0">
  52.                                                         <div>
  53.                                                             <label for="date-mask" class="form-label">Date</label>
  54.                                                             <input type="text" class="form-control" id="date-mask">
  55.                                                             <div class="text-muted">'dd.mm.yyyy' in range [01.01.1990, 01.01.2020]</div>
  56.                                                         </div>
  57.     
  58.                                                         <div class="mt-4">
  59.                                                             <label class="form-label">On-the-fly select</label>
  60.                                                             <input type="text" class="form-control" id="dynamic-mask">
  61.                                                             <div class="text-muted">phone or email</div>
  62.                                                         </div>
  63.                                                         <div class="mt-4">
  64.                                                             <label class="form-label">Mask in mask</label>
  65.                                                             <input type="text" class="form-control" id="currency-mask">
  66.                                                             <div class="text-muted">currency input</div>
  67.                                                         </div>
  68.                                                     </div>
  69.                                                 </div>
  70.                                                 <!-- end col -->
  71.                                             </div>
  72.                                             <!-- end row -->
  73.                                         </form>
  74.                                         <!-- end form -->
  75.                                     </div>
  76.                                     <!-- end card body -->
  77.                                 </div>
  78.                                 <!-- end card -->
  79.                             </div>
  80.                             <!-- end col -->
  81.                         </div>
  82.                         <!-- end row -->
  83.                     </div> <!-- container-fluid -->
  84.                 </div>
  85.                 <!-- End Page-content -->
  86.                 {{ include('partials/footer.html.twig') }}
  87.             </div>
  88.             <!-- end main content-->
  89.         </div>
  90.         <!-- END layout-wrapper -->
  91.         {{ include('partials/right-sidebar.html.twig') }}
  92.         {{ include('partials/vendor-scripts.html.twig') }}
  93.         <!-- form mask -->
  94.         <script src="/libs/imask/dist/imask.min.js"></script>
  95.         <!-- form mask init -->
  96.         <script src="/js/pages/form-mask.init.js"></script>
  97.         <script src="/js/app.js"></script>
  98.     </body>
  99. </html>