blob: 177cf574122e848f842ce94dd09facd7be6c8567 [file] [log] [blame]
<!-- /********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/ -->
<form [ngrxFormState]="personTypesSandbox.formState$ | async">
<h4>{{ 'PersonTypes.DetailsTitle' | translate }}</h4>
<div>
<!-- type -->
<div class="form-group row">
<label for="personTypesTyp" class="col-sm-4 col-form-label">{{ 'PersonTypes.Type' | translate }}</label>
<div class="col-sm-7">
<input
type="text"
required
maxlength="30"
class="form-control"
id="personTypesTyp"
[ngrxFormControlState]="((personTypesSandbox.formState$ | async)?.controls)['type']"
autocomplete="off"
/>
</div>
</div>
<!-- description -->
<div class="form-group row">
<label for="personTypesDescription" class="col-sm-4 col-form-label">{{ 'PersonTypes.Description' | translate }}</label>
<div class="col-sm-7">
<input
type="text"
required
maxlength="255"
class="form-control"
id="personTypesDescription"
[ngrxFormControlState]="((personTypesSandbox.formState$ | async)?.controls)['description']"
autocomplete="off"
/>
</div>
</div>
<!-- buttons -->
<button *visibleByRight type="button" class="btn btn-primary btn-sm btn-success" (click)="personTypesSandbox.savePersonType()">
{{ 'SaveBtn' | translate }}
</button>
<button type="button" class="btn btn-primary btn-sm" (click)="personTypesSandbox.cancel()">
{{ 'CancelBtn' | translate }}
</button>
</div>
</form>