|
@@ -7,20 +7,20 @@
|
|
<div class="col-6 col-md-3">
|
|
<div class="col-6 col-md-3">
|
|
<div class="recordsContent-w">
|
|
<div class="recordsContent-w">
|
|
<!-- <ul class="list-unstyled">
|
|
<!-- <ul class="list-unstyled">
|
|
- <li *ngFor="let hospital of hospitalCenters; let i = index" (click)="open(hospital,i)" style="cursor: pointer;">
|
|
|
|
|
|
+ <li *ngFor="let hospital of hospitalCenters; let i = index" (click)="open(hospital,i)" style="cursor: pointer;">
|
|
{{hospital.name}}
|
|
{{hospital.name}}
|
|
- <div *ngIf="i == expandedIndex">
|
|
|
|
|
|
+ <div *ngIf="i == expandedIndex">
|
|
<div class="containetttt" *ngFor="let field of hospital['fields']">
|
|
<div class="containetttt" *ngFor="let field of hospital['fields']">
|
|
<ul class="list-unstyled nestedMenu">
|
|
<ul class="list-unstyled nestedMenu">
|
|
<li (click)="showDescriptionDetails(field)" [className]=" authSer.arabicTemplate ? '' : 'achievementsLangHeading-w' ">
|
|
<li (click)="showDescriptionDetails(field)" [className]=" authSer.arabicTemplate ? '' : 'achievementsLangHeading-w' ">
|
|
- {{field.title}}
|
|
|
|
|
|
+ {{field.title}}
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</li>
|
|
</li>
|
|
</ul> -->
|
|
</ul> -->
|
|
- <div class="accordion nothome" id="accordionExample">
|
|
|
|
|
|
+ <!-- <div class="accordion" id="accordionExample">
|
|
<div class="panel-group testGroup-w" *ngFor="let hospital of hospitalCenters; let i = index" id="accordion">
|
|
<div class="panel-group testGroup-w" *ngFor="let hospital of hospitalCenters; let i = index" id="accordion">
|
|
<div class="panel panel-default">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading accordion-toggle collapsed" [ngClass]="{ 'collapsed' : i == 0 }" id="{{ 'heading' + (i+1) }}" data-toggle="collapse" [attr.data-target]=" '#collapse' + (i+1) " [attr.aria-controls] = " 'collapse' + (i+1) ">
|
|
<div class="panel-heading accordion-toggle collapsed" [ngClass]="{ 'collapsed' : i == 0 }" id="{{ 'heading' + (i+1) }}" data-toggle="collapse" [attr.data-target]=" '#collapse' + (i+1) " [attr.aria-controls] = " 'collapse' + (i+1) ">
|
|
@@ -30,15 +30,34 @@
|
|
<div class="panel-body testBody-w">
|
|
<div class="panel-body testBody-w">
|
|
<ul class="list-unstyled nestedMenu">
|
|
<ul class="list-unstyled nestedMenu">
|
|
<li (click)="showDescriptionDetails(field)" [className]=" authSer.arabicTemplate ? '' : 'achievementsLangHeading-w' ">
|
|
<li (click)="showDescriptionDetails(field)" [className]=" authSer.arabicTemplate ? '' : 'achievementsLangHeading-w' ">
|
|
- {{field.title}}
|
|
|
|
|
|
+ {{field.title}}
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
|
|
+ <div id="accordion">
|
|
|
|
+ <div class="card" *ngFor="let hospital of hospitalCenters; let i = index">
|
|
|
|
+ <div class="card-header" [attr.id]="'heading'+(i+1)">
|
|
|
|
+ <button class="btn btn-link" data-toggle="collapse" [attr.data-target]="'#collapse'+(i+1)" [attr.aria-expanded]="(i+1)==1 ? true :false" [attr.aria-controls]="'collapse'+(i+1)">
|
|
|
|
+ <h4 class="panel-title">{{hospital.name}}</h4>
|
|
|
|
+ </button>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div *ngFor="let field of hospital['fields']" [attr.id]="'collapse'+(i+1)" class="collapse" [ngClass]="{'show' : (i+1) == 1}" [attr.aria-labelledby]="'heading' + (i+1)" data-parent="#accordion">
|
|
|
|
+ <div class="card-body testBody-w">
|
|
|
|
+ <ul class="list-unstyled">
|
|
|
|
+ <li (click)="showDescriptionDetails(field)" [className]=" authSer.arabicTemplate ? '' : 'achievementsLangHeading-w' " style="text-align:right;margin-right:-23px">
|
|
|
|
+ {{field.title}}
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-6 col-md-9">
|
|
<div class="col-6 col-md-9">
|
|
@@ -46,16 +65,16 @@
|
|
<h2>{{detailsField.title}}</h2>
|
|
<h2>{{detailsField.title}}</h2>
|
|
<p [innerHTML]="detailsField.description"></p>
|
|
<p [innerHTML]="detailsField.description"></p>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
</ng-template>
|
|
-
|
|
|
|
|
|
+
|
|
<ng-template #englishTemplate>
|
|
<ng-template #englishTemplate>
|
|
<div class="container" style="direction:ltr">
|
|
<div class="container" style="direction:ltr">
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="col-6 col-md-3">
|
|
<div class="col-6 col-md-3">
|
|
<div class="recordsContent-w">
|
|
<div class="recordsContent-w">
|
|
- <div class="accordion nothome" id="accordionExample">
|
|
|
|
|
|
+ <!-- <div class="accordion nothome" id="accordionExample">
|
|
<div class="panel-group testGroupEn-w" *ngFor="let hospital of hospitalCenters; let i = index" id="accordion">
|
|
<div class="panel-group testGroupEn-w" *ngFor="let hospital of hospitalCenters; let i = index" id="accordion">
|
|
<div class="panel panel-default">
|
|
<div class="panel panel-default">
|
|
<div class="panel-headingEn accordion-toggle collapsed" [ngClass]="{ 'collapsed' : i == 0 }" id="{{ 'heading' + (i+1) }}" data-toggle="collapse" [attr.data-target]=" '#collapse' + (i+1) " [attr.aria-controls] = " 'collapse' + (i+1) ">
|
|
<div class="panel-headingEn accordion-toggle collapsed" [ngClass]="{ 'collapsed' : i == 0 }" id="{{ 'heading' + (i+1) }}" data-toggle="collapse" [attr.data-target]=" '#collapse' + (i+1) " [attr.aria-controls] = " 'collapse' + (i+1) ">
|
|
@@ -65,26 +84,48 @@
|
|
<div class="panel-body testBodyEn-w">
|
|
<div class="panel-body testBodyEn-w">
|
|
<ul class="list-unstyled nestedMenu">
|
|
<ul class="list-unstyled nestedMenu">
|
|
<li (click)="showDescriptionDetails(field)">
|
|
<li (click)="showDescriptionDetails(field)">
|
|
- {{field.title_en}}
|
|
|
|
|
|
+ {{field.title_en}}
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
|
|
+ <div id="accordion">
|
|
|
|
+ <div class="card" *ngFor="let hospital of hospitalCenters; let i = index">
|
|
|
|
+ <div class="card-header" [attr.id]="'heading'+(i+1)">
|
|
|
|
+ <h5 class="mb-0">
|
|
|
|
+ <button class="btn btn-link" data-toggle="collapse" [attr.data-target]="'#collapse'+(i+1)" [attr.aria-expanded]="(i+1)==1 ? true :false" [attr.aria-controls]="'collapse'+(i+1)">
|
|
|
|
+ <h4 class="panel-title">{{hospital.name_en}}</h4>
|
|
|
|
+ </button>
|
|
|
|
+ </h5>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div *ngFor="let field of hospital['fields']" [attr.id]="'collapse'+(i+1)" class="collapse" [ngClass]="{'show' : (i+1) == 1}" [attr.aria-labelledby]="'heading' + (i+1)" data-parent="#accordion">
|
|
|
|
+ <div class="card-body testBody-w">
|
|
|
|
+ <ul class="list-unstyled nestedMenu">
|
|
|
|
+ <li (click)="showDescriptionDetails(field)" [className]=" authSer.arabicTemplate ? '' : 'achievementsLangHeading-w' " style="text-align:left">
|
|
|
|
+ {{field.title_en}}
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- <ul class="list-unstyled">
|
|
<!-- <ul class="list-unstyled">
|
|
- <li *ngFor="let hospital of hospitalCenters; let i = index" (click)="open(hospital,i)" style="cursor: pointer;">
|
|
|
|
- {{hospital.name_en}}
|
|
|
|
- <div *ngIf="i == expandedIndex">
|
|
|
|
|
|
+ <li *ngFor="let hospital of hospitalCenters; let i = index" (click)="open(hospital,i)" style="cursor: pointer;">
|
|
|
|
+ {{hospital.name_en}}
|
|
|
|
+ <div *ngIf="i == expandedIndex">
|
|
<div class="containetttt" c>
|
|
<div class="containetttt" c>
|
|
<ul class="list-unstyled nestedMenu">
|
|
<ul class="list-unstyled nestedMenu">
|
|
<li (click)="showDescriptionDetails(field)">
|
|
<li (click)="showDescriptionDetails(field)">
|
|
- {{field.title_en}}
|
|
|
|
|
|
+ {{field.title_en}}
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</li>
|
|
</li>
|
|
</ul> -->
|
|
</ul> -->
|
|
</div>
|
|
</div>
|
|
@@ -94,11 +135,11 @@
|
|
<h2>{{detailsField.title_en}}</h2>
|
|
<h2>{{detailsField.title_en}}</h2>
|
|
<p>{{detailsField.description_en}}</p>
|
|
<p>{{detailsField.description_en}}</p>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
</ng-template>
|
|
-
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|