-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from Incredible-Technologies/link-frontend-to-…
…backend Final demo preparation
- Loading branch information
Showing
12 changed files
with
599 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,37 +14,75 @@ <h1>Электронная медицинская карта</h1> | |
</div> | ||
</div> | ||
|
||
<!-- Patient Personal Information --> | ||
<div class="personal-info med-card "> | ||
<h2><i class="fas fa-user-circle"></i> Личная информация</h2> | ||
<div class="info-content"> | ||
<div class="info-item"> | ||
<label><i class="fas fa-id-card"></i> Имя</label> | ||
<span>Иван Иванов</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-birthday-cake"></i> Дата рождения</label> | ||
<span>01.01.1990</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-venus-mars"></i> Пол</label> | ||
<span>Мужской</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-map-marker-alt"></i> Адрес</label> | ||
<span>Москва, ул. Ленина, д. 10</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-phone"></i> Телефон</label> | ||
<span>+7 900 123 4567</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-envelope"></i> Элект почта</label> | ||
<span>[email protected]</span> | ||
</div> | ||
<!-- Patient Personal Information --> | ||
<div class="personal-info med-card"> | ||
<h2><i class="fas fa-user-circle fa-2x" style="color: #007BFF;"></i> Личная информация</h2> | ||
<button class="edit-button" (click)="toggleEdit()"><i class="fas fa-edit"></i></button> | ||
|
||
<div *ngIf="!isEditing; else editProfileForm" class="info-content"> | ||
<div class="info-item"> | ||
<label><i class="fas fa-id-card"></i> Имя</label> | ||
<span>{{ profileData?.firstName }} {{ profileData?.middleName }} {{ profileData?.lastName }}</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-birthday-cake"></i> Дата рождения</label> | ||
<span>{{ profileData?.dateOfBirth }}</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-venus-mars"></i> Пол</label> | ||
<span>{{ profileData?.gender }}</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-map-marker-alt"></i> Адрес</label> | ||
<span>{{ profileData?.address }}</span> | ||
</div> | ||
<div class="info-item"> | ||
<label><i class="fas fa-phone"></i> Телефон</label> | ||
<span>{{ profileData?.phoneNumber }}</span> | ||
</div> | ||
</div> | ||
|
||
<ng-template #editProfileForm> | ||
<form [formGroup]="profileForm" (ngSubmit)="saveProfile()" class="profile-edit-form"> | ||
<div class="form-group"> | ||
<label>Имя</label> | ||
<input type="text" formControlName="firstName" placeholder="Имя"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Отчество</label> | ||
<input type="text" formControlName="middleName" placeholder="Отчество"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Фамилия</label> | ||
<input type="text" formControlName="lastName" placeholder="Фамилия"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Дата рождения</label> | ||
<input type="text" formControlName="dateOfBirth" placeholder="Дата рождения dd/MM/yyyy"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Пол</label> | ||
<select formControlName="gender"> | ||
<option value="Мужской">Мужской</option> | ||
<option value="Женский">Женский</option> | ||
<!-- Add more options if needed --> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label>Адрес</label> | ||
<input type="text" formControlName="address" placeholder="Адрес"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Телефон</label> | ||
<input type="text" formControlName="phoneNumber" placeholder="Телефон"> | ||
</div> | ||
<button type="submit" class="save-button">Сохранить</button> | ||
</form> | ||
</ng-template> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
<!-- Medical History --> | ||
|
@@ -126,11 +164,10 @@ <h2>Медицинская история</h2> | |
</div> | ||
|
||
|
||
<!-- Diagnostics --> | ||
|
||
<div class="diagnostics med-diagnostics-card"> | ||
<h2>Диагностика</h2> | ||
<div class="diagnostics-content"> | ||
<!-- Sample Diagnostics Data --> | ||
<div class="diagnostics-item"> | ||
<i class="fas fa-stethoscope"></i> | ||
<div class="diagnostics-details"> | ||
|
@@ -215,6 +252,39 @@ <h2>Диагностика</h2> | |
</div> | ||
|
||
|
||
<!-- <div class="med-diagnostics-card"> | ||
<h2>Результаты анализов</h2> | ||
<div class="diagnostics-content"> | ||
<div *ngFor="let card of resultCards" class="diagnostics-item"> | ||
<button class="edit-button" (click)="toggleEditResultCard(card)"> | ||
<i class="fas fa-edit"></i> | ||
</button> | ||
<i class="fas fa-file-medical-alt"></i> | ||
<div class="diagnostics-details"> | ||
<strong>{{ card.dateOfShouldReady | date: 'yyyy' }}</strong> | ||
<p>{{ card.name }}</p> | ||
<span>{{ card.description }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div *ngIf="isEditingResultCard" class="result-card-edit-form"> | ||
<form [formGroup]="resultCardForm" (ngSubmit)="saveResultCard()"> | ||
<div class="form-group"> | ||
<label for="cardName">Name:</label> | ||
<input type="text" formControlName="cardName" class="form-control" id="cardName"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="cardDescription">Description:</label> | ||
<textarea formControlName="cardDescription" class="form-control" id="cardDescription"></textarea> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Save</button> | ||
<button type="button" class="btn btn-secondary" (click)="isEditingResultCard = false">Cancel</button> | ||
</form> | ||
</div> | ||
</div> | ||
--> | ||
|
||
|
||
<!-- Treatments --> | ||
<div class="treatments med-treatments-card"> | ||
<h2>Лечение и Рецепты</h2> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.