Commit d7ffdab5 by sawit

Edit view Datasource Table

parent 0ad76c64
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
<th scope="col" class="text-start">{{ 'Database Name' | translate}}</th> <th scope="col" class="text-start">{{ 'Database Name' | translate}}</th>
<th scope="col" class="text-start">{{ 'Server Name' | translate}}</th> <th scope="col" class="text-start">{{ 'Server Name' | translate}}</th>
<th scope="col" class="text-start">{{ 'Status' | translate}}</th> <th scope="col" class="text-start">{{ 'Status' | translate}}</th>
<th scope="col" class="text-start">{{ 'User Name' | translate}}</th> <!-- <th scope="col" class="text-start">{{ 'User Name' | translate}}</th> -->
<th scope="col" class="text-start">{{ 'Password' | translate}}</th> <!-- <th scope="col" class="text-start">{{ 'Password' | translate}}</th> -->
<th scope="col" class="text-start">{{ 'Action' | translate}}</th> <th scope="col" class="text-start">{{ 'Action' | translate}}</th>
</tr> </tr>
</thead> </thead>
...@@ -99,19 +99,19 @@ ...@@ -99,19 +99,19 @@
</span> </span>
</div> </div>
</td> </td>
<td> <!-- <td>
<div> <div>
<span class="block mb-1"> <span class="block mb-1">
{{item.userName}} {{item.userName}}
</span> </span>
</div> </div>
</td> </td> -->
<td class="text-center" style="white-space: normal !important;word-break: break-word;"> <!-- <td class="text-center" style="white-space: normal !important;word-break: break-word;">
<span class="cursor-pointer" (click)="selectData(item)"> <span class="cursor-pointer" (click)="selectData(item)">
{{tableShowPassword.get(item.companyId)?item.password : '*'.repeat(item.password?.length || 0) }}</span>&nbsp; {{tableShowPassword.get(item.companyId)?item.password : '*'.repeat(item.password?.length || 0) }}</span>&nbsp;
<i class="cursor-pointer fa fa-eye" *ngIf="tableShowPassword.get(item.companyId)" (click)="tableShowPassword.set(item.companyId,false)"></i> <i class="cursor-pointer fa fa-eye" *ngIf="tableShowPassword.get(item.companyId)" (click)="tableShowPassword.set(item.companyId,false)"></i>
<i class="cursor-pointer fa fa-eye-slash" *ngIf="!tableShowPassword.get(item.companyId)" (click)="tableShowPassword.set(item.companyId,true)"></i> <i class="cursor-pointer fa fa-eye-slash" *ngIf="!tableShowPassword.get(item.companyId)" (click)="tableShowPassword.set(item.companyId,true)"></i>
</td> </td> -->
<td> <td>
<div class="flex flex-row items-center !gap-2 "> <div class="flex flex-row items-center !gap-2 ">
<a aria-label="anchor" (click)="view(item)" data-hs-overlay="#modal-detail" <a aria-label="anchor" (click)="view(item)" data-hs-overlay="#modal-detail"
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
<div class="ti-modal-body px-4"> <div class="ti-modal-body px-4">
<div class="grid grid-cols-12 gap-4"> <div class="grid grid-cols-12 gap-4">
<div class="xl:col-span-12 col-span-12" *ngIf="action == 'edit'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="action == 'edit'">
<label for="companyId" class="form-label">{{'รหัสบริษัท' | translate}}</label> <label for="companyId" class="form-label">{{'รหัสบริษัท' | translate}}</label>
<input type="text" class="form-control !bg-input-readonly" id="companyId" placeholder="" [(ngModel)]="selectModel.companyId" <input type="text" class="form-control !bg-input-readonly" id="companyId" placeholder="" [(ngModel)]="selectModel.companyId"
[disabled]="action === 'edit'" > [disabled]="action === 'edit'" >
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
</div> --> </div> -->
</div> </div>
<div class="xl:col-span-12 col-span-12" *ngIf="modalStatus=='add'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="modalStatus=='add'">
<label for="deal-title" class="form-label">{{ 'Company Name' | translate}}</label> <label for="deal-title" class="form-label">{{ 'Company Name' | translate}}</label>
<input type="text" class="form-control" id="deal-title" placeholder="" <input type="text" class="form-control" id="deal-title" placeholder=""
[(ngModel)]="selectModel.companyName"> [(ngModel)]="selectModel.companyName">
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="xl:col-span-12 col-span-12" *ngIf="modalStatus=='add'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="modalStatus=='add'">
<label for="deal-title" class="form-label">{{ 'Database Type' | translate}}</label> <label for="deal-title" class="form-label">{{ 'Database Type' | translate}}</label>
<!-- <input type="text" class="form-control" id="deal-title" placeholder="" <!-- <input type="text" class="form-control" id="deal-title" placeholder=""
[(ngModel)]="selectModel.dbType"> --> [(ngModel)]="selectModel.dbType"> -->
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
{{'Please fill in information' | translate}} {{'Please fill in information' | translate}}
</div> </div>
</div> </div>
<div class="xl:col-span-12 col-span-12" *ngIf="modalStatus=='add'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="modalStatus=='add'">
<label for="deal-title" class="form-label">{{ 'Port Number' | translate}}</label> <label for="deal-title" class="form-label">{{ 'Port Number' | translate}}</label>
<input type="text" class="form-control" id="deal-title" placeholder="" <input type="text" class="form-control" id="deal-title" placeholder=""
[(ngModel)]="selectModel.portNumber"> [(ngModel)]="selectModel.portNumber">
...@@ -244,13 +244,13 @@ ...@@ -244,13 +244,13 @@
{{'Please fill in information' | translate}} {{'Please fill in information' | translate}}
</div> </div>
</div> </div>
<div class="xl:col-span-12 col-span-12" *ngIf="modalStatus=='add'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="modalStatus=='add'">
<label for="deal-title" class="form-label">{{ 'Database Name' | translate}}</label> <label for="deal-title" class="form-label">{{ 'Database Name' | translate}}</label>
<input type="text" class="form-control" id="deal-title" placeholder="" [(ngModel)]="selectModel.databaseName"> <input type="text" class="form-control" id="deal-title" placeholder="" [(ngModel)]="selectModel.databaseName">
<div class="text-danger" *ngIf="!selectModel.databaseName"> <div class="text-danger" *ngIf="!selectModel.databaseName">
{{'Please fill in information' | translate}} {{'Please fill in information' | translate}}
</div> </div>
<div class="xl:col-span-12 col-span-12" *ngIf="modalStatus=='add'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="modalStatus=='add'">
<label for="deal-title" class="form-label">{{ 'Server Name' | translate}}</label> <label for="deal-title" class="form-label">{{ 'Server Name' | translate}}</label>
<input type="text" class="form-control" id="deal-title" placeholder="" <input type="text" class="form-control" id="deal-title" placeholder=""
[(ngModel)]="selectModel.serverName"> [(ngModel)]="selectModel.serverName">
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
{{'Please fill in information' | translate}} {{'Please fill in information' | translate}}
</div> </div>
</div> </div>
<div class="xl:col-span-12 col-span-12" *ngIf="modalStatus=='add'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="modalStatus=='add'">
<label for="deal-title" class="form-label">{{ 'Status' | translate}}</label> <label for="deal-title" class="form-label">{{ 'Status' | translate}}</label>
<!-- <input type="text" class="form-control" id="deal-title" placeholder="" <!-- <input type="text" class="form-control" id="deal-title" placeholder=""
[(ngModel)]="selectModel.status"> --> [(ngModel)]="selectModel.status"> -->
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
{{'Please fill in information' | translate}} {{'Please fill in information' | translate}}
</div> </div>
</div> </div>
<div class="xl:col-span-12 col-span-12" *ngIf="modalStatus=='add'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="modalStatus=='add'">
<label for="deal-title" class="form-label">{{ 'User Name' | translate}}</label> <label for="deal-title" class="form-label">{{ 'User Name' | translate}}</label>
<input type="text" class="form-control" id="deal-title" placeholder="" <input type="text" class="form-control" id="deal-title" placeholder=""
[(ngModel)]="selectModel.userName"> [(ngModel)]="selectModel.userName">
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
{{'Please fill in information' | translate}} {{'Please fill in information' | translate}}
</div> </div>
</div> </div>
<div class="xl:col-span-12 col-span-12" *ngIf="modalStatus=='add'"> <div class="xl:col-span-12 col-span-12 my-2" *ngIf="modalStatus=='add'">
<label for="deal-title" class="form-label">{{ 'Password' | translate}}</label><br> <label for="deal-title" class="form-label">{{ 'Password' | translate}}</label><br>
<input type="text" class="form-control" style="width: 95%" id="deal-title" placeholder="" <input type="text" class="form-control" style="width: 95%" id="deal-title" placeholder=""
[(ngModel)]="selectModel.password" [class.secure-input]="!showPassword"> [(ngModel)]="selectModel.password" [class.secure-input]="!showPassword">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment