<div class="modal fade" tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="exportTitle">
    <div class="modal-dialog" role="document">
        <form class="modal-content" #form (ngSubmit)="submit()">
            <div class="modal-body">
                <div class="box">
                    <div class="box-header" id="exportTitle">
                        {{'exportVault' | i18n}}
                    </div>
                    <div class="box-content">
                        <div class="box-content-row" appBoxRow>
                            <label for="format">{{'fileFormat' | i18n}}</label>
                            <select id="format" name="Format" [(ngModel)]="format">
                                <option value="json">.json</option>
                                <option value="csv">.csv</option>
                            </select>
                        </div>
                        <div class="box-content-row box-content-row-flex" appBoxRow>
                            <div class="row-main">
                                <label for="masterPassword">{{'masterPass' | i18n}}</label>
                                <input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}"
                                    name="MasterPassword" class="monospaced" [(ngModel)]="masterPassword" required
                                    appAutofocus>
                            </div>
                            <div class="action-buttons">
                                <a class="row-btn" href="#" appStopClick appBlurClick role="button"
                                    appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="togglePassword()">
                                    <i class="fa fa-lg" aria-hidden="true"
                                        [ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="box-footer">
                        <p>{{'exportMasterPassword' | i18n}}</p>
                        <strong>{{'warning' | i18n}}</strong>: {{'exportWarningDesc' | i18n}}
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button appBlurClick type="submit" class="primary" appA11yTitle="{{'submit' | i18n}}">
                    <i class="fa fa-download fa-lg fa-fw" aria-hidden="true"></i>
                </button>
                <button type="button" data-dismiss="modal">{{'cancel' | i18n}}</button>
            </div>
        </form>
    </div>
</div>
