2018-06-26 05:16:59 +02:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>{{ "domainRules" | i18n }}</h1>
|
|
|
|
</div>
|
|
|
|
<p>{{ "domainRulesDesc" | i18n }}</p>
|
2018-07-13 20:50:21 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
|
2018-06-26 17:50:23 +02:00
|
|
|
<h2>{{ "customEqDomains" | i18n }}</h2>
|
|
|
|
<p *ngIf="loading">
|
2019-10-11 16:35:24 +02:00
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-spinner bwi-spin text-muted"
|
2019-10-11 16:35:24 +02:00
|
|
|
title="{{ 'loading' | i18n }}"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
|
|
|
<span class="sr-only">{{ "loading" | i18n }}</span>
|
2018-06-26 17:50:23 +02:00
|
|
|
</p>
|
|
|
|
<ng-container *ngIf="!loading">
|
2019-02-21 22:50:37 +01:00
|
|
|
<div class="form-group d-flex" *ngFor="let d of custom; let i = index; trackBy: indexTrackBy">
|
2019-10-11 16:35:24 +02:00
|
|
|
<div class="flex-fill">
|
2019-10-11 17:22:21 +02:00
|
|
|
<label for="customDomain_{{ i }}" class="sr-only">{{
|
2018-06-26 17:50:23 +02:00
|
|
|
"customDomainX" | i18n: i + 1
|
|
|
|
}}</label>
|
|
|
|
<textarea
|
2018-07-18 05:15:15 +02:00
|
|
|
class="form-control"
|
2019-10-11 16:35:24 +02:00
|
|
|
name="CustomDomain[{{ i }}]"
|
2018-06-29 04:27:32 +02:00
|
|
|
id="customDomain_{{ i }}"
|
2019-10-11 16:35:24 +02:00
|
|
|
[(ngModel)]="custom[i]"
|
|
|
|
placeholder="{{ 'ex' | i18n }} google.com, gmail.com"
|
2018-07-06 21:45:35 +02:00
|
|
|
required
|
|
|
|
></textarea>
|
2018-06-26 17:50:23 +02:00
|
|
|
</div>
|
2019-02-21 22:50:37 +01:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="btn btn-link text-danger ml-2"
|
2018-06-26 17:50:23 +02:00
|
|
|
(click)="remove(i)"
|
|
|
|
appA11yTitle="{{ 'remove' | i18n }}"
|
|
|
|
>
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-minus-circle bwi-lg" aria-hidden="true"></i>
|
2018-06-26 17:50:23 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-07-18 05:15:15 +02:00
|
|
|
<button type="button" (click)="add()" class="btn btn-outline-secondary btn-sm mb-2">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i> {{ "newCustomDomain" | i18n }}
|
2018-06-26 17:50:23 +02:00
|
|
|
</button>
|
|
|
|
<small class="text-muted d-block mb-3">{{ "newCustomDomainDesc" | i18n }}</small>
|
|
|
|
</ng-container>
|
2018-07-18 05:15:15 +02:00
|
|
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
2018-06-26 17:50:23 +02:00
|
|
|
<span>{{ "save" | i18n }}</span>
|
|
|
|
</button>
|
2018-06-29 04:27:32 +02:00
|
|
|
<h2 class="spaced-header">{{ "globalEqDomains" | i18n }}</h2>
|
2018-06-26 17:50:23 +02:00
|
|
|
<p *ngIf="loading">
|
2021-12-17 15:57:11 +01:00
|
|
|
<i
|
2022-01-27 18:25:58 +01:00
|
|
|
class="bwi bwi-spinner bwi-spin text-muted"
|
2019-10-11 16:35:24 +02:00
|
|
|
title="{{ 'loading' | i18n }}"
|
2019-10-11 17:22:21 +02:00
|
|
|
aria-hidden="true"
|
2021-12-17 15:57:11 +01:00
|
|
|
></i>
|
2019-10-11 16:35:24 +02:00
|
|
|
<span class="sr-only">{{ "loading" | i18n }}</span>
|
2021-12-17 15:57:11 +01:00
|
|
|
</p>
|
2018-06-26 17:50:23 +02:00
|
|
|
<table class="table table-hover table-list" *ngIf="!loading && global.length > 0">
|
2021-12-17 15:57:11 +01:00
|
|
|
<tbody>
|
2018-06-26 17:50:23 +02:00
|
|
|
<tr *ngFor="let d of global">
|
2018-07-06 21:45:35 +02:00
|
|
|
<td [ngClass]="{ 'table-list-strike': d.excluded }">{{ d.domains }}</td>
|
2018-06-26 17:50:23 +02:00
|
|
|
<td class="table-list-options">
|
|
|
|
<div class="dropdown" appListDropdown>
|
2021-12-17 15:57:11 +01:00
|
|
|
<button
|
2019-02-21 22:50:37 +01:00
|
|
|
class="btn btn-outline-secondary dropdown-toggle"
|
2018-07-18 05:21:23 +02:00
|
|
|
type="button"
|
2019-02-21 22:50:37 +01:00
|
|
|
data-toggle="dropdown"
|
2019-10-11 17:22:21 +02:00
|
|
|
aria-haspopup="true"
|
|
|
|
aria-expanded="false"
|
|
|
|
appA11yTitle="{{ 'options' | i18n }}"
|
2021-12-17 15:57:11 +01:00
|
|
|
>
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-cog bwi-lg" aria-hidden="true"></i>
|
2018-06-26 17:50:23 +02:00
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
2021-12-17 15:57:11 +01:00
|
|
|
<a
|
2019-02-21 22:50:37 +01:00
|
|
|
class="dropdown-item"
|
2021-12-17 15:57:11 +01:00
|
|
|
href="#"
|
2019-02-21 22:50:37 +01:00
|
|
|
appStopClick
|
|
|
|
(click)="toggleExcluded(d)"
|
|
|
|
*ngIf="!d.excluded"
|
2021-12-17 15:57:11 +01:00
|
|
|
>
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
2018-06-26 17:50:23 +02:00
|
|
|
{{ "exclude" | i18n }}
|
2021-12-17 15:57:11 +01:00
|
|
|
</a>
|
|
|
|
<a
|
2019-02-21 22:50:37 +01:00
|
|
|
class="dropdown-item"
|
2021-12-17 15:57:11 +01:00
|
|
|
href="#"
|
2019-02-21 22:50:37 +01:00
|
|
|
appStopClick
|
|
|
|
(click)="toggleExcluded(d)"
|
|
|
|
*ngIf="d.excluded"
|
2021-12-17 15:57:11 +01:00
|
|
|
>
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-fw bwi-plus" aria-hidden="true"></i>
|
2018-06-26 17:50:23 +02:00
|
|
|
{{ "include" | i18n }}
|
2021-12-17 15:57:11 +01:00
|
|
|
</a>
|
2019-02-21 22:50:37 +01:00
|
|
|
<a class="dropdown-item" href="#" appStopClick (click)="customize(d)">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-fw bwi-cut" aria-hidden="true"></i>
|
2018-06-26 17:50:23 +02:00
|
|
|
{{ "customize" | i18n }}
|
2021-12-17 15:57:11 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-07-18 05:15:15 +02:00
|
|
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
2022-01-27 18:25:58 +01:00
|
|
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
2018-06-26 17:50:23 +02:00
|
|
|
<span>{{ "save" | i18n }}</span>
|
|
|
|
</button>
|
|
|
|
</form>
|