<div>
	<h2 mat-dialog-title>
		Edit item category
	</h2>
	<div mat-dialog-content>
		<form [formGroup]="editForm!" (ngSubmit)="onSubmitClick()">
			<div class="row">
				<div class="col-md-6">
					<div class="text-inside">
						<mat-form-field class="example-full-width">
							<mat-label>Name</mat-label>
							<input matInput value={{category.name}} formControlName="name">
						</mat-form-field>
					</div>
				</div>
				<div class="col-md-6">
					<div class="text-inside">
						<mat-checkbox class="example-margin" formControlName="isInternal">Is internal motion</mat-checkbox>
					</div>
				</div>
			</div>
			<mat-dialog-actions class="mat-dialog-actions">
				<div class="mat-dialog-left">
					<div class="alert alert-danger mat-dialog-error" *ngIf="errorMessage">
						{{errorMessage}}
					</div>
				</div>
				<div class="mat-dialog-right">
					<div class="button-bottom">
						<button type="button" mat-button (click)="closeDialog()">Cancel</button>
						<button class="btn-space" mat-raised-button color="primary">Save</button>
					</div>
				</div>
			</mat-dialog-actions>

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