blob: e873e47c1c3ff084a432e8aa16f76a9e4b0fc181 [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div id="nifi-registry-user-login-dialog">
<div class="pad-bottom-md" fxLayout="row" fxLayoutAlign="space-between center">
<mat-card-title class="ellipsis">
Log In
</mat-card-title>
<button mat-icon-button (click)="cancel()">
<mat-icon color="primary">close</mat-icon>
</button>
</div>
<div fxLayout="column" fxLayoutAlign="space-between start" class="pad-bottom-md">
<div class="fill-available-width">
<mat-form-field floatLabel="always" fxFlex>
<input #usernameInput matInput floatPlaceholder="always" placeholder="Username">
</mat-form-field>
</div>
<div class="fill-available-width">
<mat-form-field floatLabel="always" fxFlex>
<input #passwordInput type="password" matInput floatPlaceholder="always" placeholder="Password" autocomplete="off">
</mat-form-field>
</div>
</div>
<div fxLayout="row">
<span fxFlex></span>
<button (click)="cancel()" color="fds-regular" mat-raised-button
i18n="Cancel log in|A button for cancelling the login form.@@nf-cancel-user-login-button">
Cancel
</button>
<button [disabled]="usernameInput.value.length === 0 || passwordInput.value.length === 0" class="push-left-sm" (click)="login(usernameInput, passwordInput)" color="fds-primary" mat-raised-button
i18n="Log in|A button for attempting to authenticate with the registry.@@nf-user-login-button">
Log In
</button>
</div>
</div>