{{ include('partials/main.html.twig') }}
<head>
{{ include('partials/title-meta.html.twig', {title: 'Form Mask'}) }}
{{ include('partials/head-css.html.twig') }}
</head>
{{ include('partials/body.html.twig') }}
<!-- Begin page -->
<div id="layout-wrapper">
{{ include('partials/menu.html.twig') }}
<!-- ============================================================== -->
<!-- Start right Content here -->
<!-- ============================================================== -->
<div class="main-content">
<div class="page-content">
<div class="container-fluid">
{{ include('partials/page-title.html.twig', {pagetitle: 'Forms', title: 'Form Mask'}) }}
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Imask</h4>
<p class="card-title-desc mb-0">vanilla javascript input mask</p>
</div>
<div class="card-body">
<form>
<div class="row">
<div class="col-lg-6">
<div>
<div>
<label for="regexp-mask" class="form-label">RegExp (Russian postal code)</label>
<input type="text" class="form-control" id="regexp-mask">
<div class="text-muted">/^[1-6]\d{0,5}$/</div>
</div>
<div class="mt-4">
<label for="phone-mask" class="form-label">Pattern (Phone)</label>
<input type="text" class="form-control" id="phone-mask">
<div class="text-muted">+{7}(000)000-00-00</div>
</div>
<div class="mt-4">
<label for="number-mask" class="form-label">Number</label>
<input type="text" class="form-control" id="number-mask">
<div class="text-muted">in range [-10000, 10000]</div>
</div>
</div>
</div>
<!-- end col -->
<div class="col-lg-6">
<div class="mt-4 mt-lg-0">
<div>
<label for="date-mask" class="form-label">Date</label>
<input type="text" class="form-control" id="date-mask">
<div class="text-muted">'dd.mm.yyyy' in range [01.01.1990, 01.01.2020]</div>
</div>
<div class="mt-4">
<label class="form-label">On-the-fly select</label>
<input type="text" class="form-control" id="dynamic-mask">
<div class="text-muted">phone or email</div>
</div>
<div class="mt-4">
<label class="form-label">Mask in mask</label>
<input type="text" class="form-control" id="currency-mask">
<div class="text-muted">currency input</div>
</div>
</div>
</div>
<!-- end col -->
</div>
<!-- end row -->
</form>
<!-- end form -->
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
<!-- end col -->
</div>
<!-- end row -->
</div> <!-- container-fluid -->
</div>
<!-- End Page-content -->
{{ include('partials/footer.html.twig') }}
</div>
<!-- end main content-->
</div>
<!-- END layout-wrapper -->
{{ include('partials/right-sidebar.html.twig') }}
{{ include('partials/vendor-scripts.html.twig') }}
<!-- form mask -->
<script src="/libs/imask/dist/imask.min.js"></script>
<!-- form mask init -->
<script src="/js/pages/form-mask.init.js"></script>
<script src="/js/app.js"></script>
</body>
</html>