chore: reorder components in email provider forms
This commit is contained in:
committed by
Aditya Chandel
parent
4fdd612dc3
commit
2cf1042b6b
+5
-5
@@ -34,6 +34,11 @@
|
||||
<input type="password" pInputText formControlName="password" placeholder="Enter password..." class="w-full md:w-80"/>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-4">
|
||||
<label class="w-40 text-right font-medium">From Address:</label>
|
||||
<input type="text" pInputText formControlName="fromAddress" placeholder="Enter from address... " class="w-full md:w-80"/>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-4">
|
||||
<label class="w-40 text-right font-medium">Auth:</label>
|
||||
<p-checkbox formControlName="auth" [binary]="true"></p-checkbox>
|
||||
@@ -44,11 +49,6 @@
|
||||
<p-checkbox formControlName="startTls" [binary]="true"></p-checkbox>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-4">
|
||||
<label class="w-40 text-right font-medium">From Address:</label>
|
||||
<input type="text" pInputText formControlName="fromAddress" placeholder="Enter from address... " class="w-full md:w-80"/>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end">
|
||||
<p-button label="Create Email Provider" [disabled]="emailProviderForm.invalid" type="submit">
|
||||
</p-button>
|
||||
|
||||
@@ -12,17 +12,17 @@
|
||||
<p-table [value]="emailProviders">
|
||||
<ng-template pTemplate="header">
|
||||
<tr>
|
||||
<th style="width: 5%;">Default</th>
|
||||
<th style="width: 6%;">Default</th>
|
||||
<th style="width: 10%;">Name</th>
|
||||
<th style="width: 15%;">Host</th>
|
||||
<th style="width: 6%;">Port</th>
|
||||
<th style="width: 15%;">Username</th>
|
||||
<th style="width: 15%;">Password</th>
|
||||
<th style="width: 4%;">Auth</th>
|
||||
<th style="width: 5%;">StartTLS</th>
|
||||
<th style="width: 14%;">Username</th>
|
||||
<th style="width: 12%;">Password</th>
|
||||
<th style="width: 12%;">From Address</th>
|
||||
<th style="width: 8%;">Edit</th>
|
||||
<th style="width: 10%;">Delete</th>
|
||||
<th style="width: 5%;">Auth</th>
|
||||
<th style="width: 5%;">StartTLS</th>
|
||||
<th style="width: 7%;">Edit</th>
|
||||
<th style="width: 8%;">Delete</th>
|
||||
</tr>
|
||||
</ng-template>
|
||||
|
||||
@@ -62,6 +62,11 @@
|
||||
<span *ngIf="!provider.isEditing" class="text-gray-400 italic">Hidden</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input *ngIf="provider.isEditing" type="text" [(ngModel)]="provider.fromAddress" class="p-inputtext w-full"/>
|
||||
<span *ngIf="!provider.isEditing">{{ provider.fromAddress }}</span>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<p-checkbox
|
||||
[(ngModel)]="provider.auth"
|
||||
@@ -78,11 +83,6 @@
|
||||
</p-checkbox>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input *ngIf="provider.isEditing" type="text" [(ngModel)]="provider.fromAddress" class="p-inputtext w-full"/>
|
||||
<span *ngIf="!provider.isEditing">{{ provider.fromAddress }}</span>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<p-button *ngIf="!provider.isEditing" icon="pi pi-pencil" outlined="true" severity="info" (onClick)="toggleEdit(provider)"></p-button>
|
||||
<p-button *ngIf="provider.isEditing" icon="pi pi-check" outlined="true" severity="success" (onClick)="saveProvider(provider)"></p-button>
|
||||
|
||||
Reference in New Issue
Block a user