| <!-- /******************************************************************************** |
| * 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]="addressTypesSandbox.formState$ | async"> |
| <h4>{{ 'AddressTypes.DetailsTitle' | translate }}</h4> |
| <div> |
| <!-- type --> |
| <div class="form-group row"> |
| <label for="addressTypesTyp" class="col-sm-2 col-form-label">{{ 'AddressTypes.Type' | translate }}</label> |
| <div class="col-sm-6"> |
| <input type="text" |
| required |
| maxlength="30" |
| class="form-control" |
| id="addressTypesTyp" |
| [ngrxFormControlState]="((addressTypesSandbox.formState$ | async)?.controls)['type']" |
| autocomplete="off" |
| /> |
| </div> |
| </div> |
| |
| <!-- description --> |
| <div class="form-group row"> |
| <label for="addressTypesDescription" class="col-sm-2 col-form-label">{{ 'AddressTypes.Description' | translate }}</label> |
| <div class="col-sm-6"> |
| <input type="text" |
| required |
| maxlength="255" |
| class="form-control" |
| id="addressTypesDescription" |
| [ngrxFormControlState]="((addressTypesSandbox.formState$ | async)?.controls)['description']" |
| autocomplete="off" |
| /> |
| </div> |
| </div> |
| |
| <!-- buttons --> |
| <button |
| type="button" |
| class="btn btn-primary btn-sm btn-success" |
| (click)="addressTypesSandbox.saveAddressType()" |
| > |
| {{ 'SaveBtn' | translate }} |
| </button> |
| |
| <button |
| type="button" |
| class="btn btn-primary btn-sm" |
| (click)="addressTypesSandbox.cancel()" |
| > |
| {{ 'CancelBtn' | translate }} |
| </button> |
| </div> |
| </form> |