66 lines
2.2 KiB
HTML
66 lines
2.2 KiB
HTML
<div class="modal-header" style="background-color: #FBFBFB !important">
|
|
<h4 class="modal-title" style="color: #242222">{{labelModal}}</h4>
|
|
<button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross click')">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body" style="background-color: #FBFBFB !important">
|
|
<form [formGroup]="myForm">
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6">
|
|
<label for="name" style="color: #242222">Name:</label>
|
|
<input
|
|
type="text"
|
|
class="form-control"
|
|
id="name"
|
|
formControlName="name"
|
|
maxlength="50"
|
|
/>
|
|
<div *ngIf="myForm.get('name').touched && myForm.get('name').invalid" class="text-danger">
|
|
Name is required.
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-md-6" *ngIf="category">
|
|
<label for="icon" style="color: #242222">Icon:</label>
|
|
<app-select-icon [selectedIcon]="selectedIcon" (iconSelected)="onIconSelected($event)"></app-select-icon>
|
|
<div *ngIf="myForm.get('icon').touched && myForm.get('icon').invalid" class="text-danger">
|
|
Icon is required.
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<label for="status" style="color: #242222">Status:</label>
|
|
<select
|
|
id="projectinput5"
|
|
class="form-control"
|
|
formControlName="status"
|
|
>
|
|
<option *ngFor="let data of dataMasterStatus" [value]="data.id">
|
|
{{ data.name }}
|
|
</option>
|
|
</select>
|
|
<div *ngIf="myForm.get('status').touched && myForm.get('status').invalid" class="text-danger">
|
|
Status is required.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer" style="background-color: #FBFBFB !important">
|
|
<button
|
|
type="button"
|
|
class="btn btn-secondary"
|
|
style="color: #242222 !important; background-color: #FBFBFB !important; border-color: #FBFBFB !important;"
|
|
(click)="activeModal.dismiss('Cross click')"
|
|
>
|
|
Close
|
|
</button>
|
|
<button
|
|
type="button"
|
|
style="color: #ffffff !important; background-color: #37A647 !important"
|
|
class="btn btn-primary"
|
|
(click)="addRow()"
|
|
>
|
|
Save
|
|
</button>
|
|
</div>
|