<div class="kt-portlet">
    <div class="kt-portlet__head">
        <div class="kt-portlet__head-label">
            <h3 class="kt-portlet__head-title">
                Input Mask
            </h3>
        </div>
    </div>
    <div class="kt-portlet__body">
        <form role="form" class="kt-form">

            <div class="form-group row">
                <label for="DateInputMask" class="col-lg-12">Date</label>
                <div class="col-lg-10 col-md-9 col-sm-8">
                    <p-inputMask id="DateInputMask" [(ngModel)]="dateValue" name="dateValue" mask="99/99/9999" placeholder="mm/dd/yyyy" slotChar="mm/dd/yyyy" styleClass="form-control"></p-inputMask>
                </div>
                <div class="col-lg-2 col-md-3 col-sm-4">
                    <button class="btn btn-primary btn-brand btn-pill" type="button" (click)="submitDateValue()">{{"Submit" | localize}}</button>
                </div>
            </div>

            <div class="form-group row">
                <label for="PhoneInputMask" class="col-lg-12">Phone</label>
                <div class="col-lg-10 col-md-9 col-sm-8">
                    <p-inputMask id="PhoneInputMask" [(ngModel)]="phoneValue" name="phoneValue" mask="(999) 999-9999" placeholder="(999) 999-9999" styleClass="form-control"></p-inputMask>
                </div>
                <div class="col-lg-2 col-md-3 col-sm-4">
                    <button class="btn btn-primary btn-brand btn-pill" type="button" (click)="submiPhoneValue()">{{"Submit" | localize}}</button>
                </div>
            </div>

            <div class="form-group row">
                <label for="PhoneExtInputMask" class="col-lg-12">Phone Ext</label>
                <div class="col-lg-10 col-md-9 col-sm-8">
                    <p-inputMask id="PhoneExtInputMask" mask="(999) 999-9999? x99999" name="phoneExtValue" [(ngModel)]="phoneExtValue" placeholder="(999) 999-9999? x99999" styleClass="form-control"></p-inputMask>
                </div>
                <div class="col-lg-2 col-md-3 col-sm-4">
                    <button class="btn btn-primary btn-brand btn-pill" type="button" (click)="submitPhoneExtValue()">{{"Submit" | localize}}</button>
                </div>
            </div>

            <div class="form-group row">
                <label for="SerialInputMask" class="col-lg-12">Serial</label>
                <div class="col-lg-10 col-md-9 col-sm-8">
                    <p-inputMask id="SerialInputMask" [(ngModel)]="serialValue" name="serialValue" mask="a*-999-a999" placeholder="a*-999-a999" styleClass="form-control"></p-inputMask>
                </div>
                <div class="col-lg-2 col-md-3 col-sm-4">
                    <button class="btn btn-primary btn-brand btn-pill" type="button" (click)="submitSerialValue()">{{"Submit" | localize}}</button>
                </div>
            </div>


            <div class="form-group m-form__group row">
                <label for="EmailAddress"  class="col-lg-12">{{"EmailAddress" | localize}}</label>
                <div class="col-lg-10 col-md-9 col-sm-8">
                    <input id="EmailAddress" #emailAddressInput="ngModel" type="email" placeholder="sample@email.com" name="EmailAddress" class="form-control" [(ngModel)]="emailAddress" required maxlength="256" email />
                    <validation-messages [formCtrl]="emailAddressInput"></validation-messages>
                </div>
                <div class="col-lg-2 col-md-3 col-sm-4">
                    <button class="btn btn-primary btn-brand btn-pill" type="button" (click)="submitSerialEmail()">{{"Submit" | localize}}</button>
                </div>
            </div>

        </form>
    </div>
</div>
