Browse Source

Templates fixed.

pull/282/head
Sebastian Stehle 8 years ago
parent
commit
43b303f7df
  1. 2
      src/Squidex/app/features/rules/pages/rules/actions/slack-action.component.html
  2. 136
      src/Squidex/app/features/rules/pages/rules/triggers/content-changed-trigger.component.html

2
src/Squidex/app/features/rules/pages/rules/actions/slack-action.component.html

@ -1,6 +1,6 @@
<h3 class="wizard-title">Send custom text to an incoming webhook in Slack</h3>
<form [formGroup]="actionForm" class="form-horizontal" (ngSubmit)="save()">
<form [formGroup]="actionForm" class="form-horizontal">
<div class="form-group row">
<label class="col col-3 col-form-label" for="webhookUrl">Webhook Url</label>

136
src/Squidex/app/features/rules/pages/rules/triggers/content-changed-trigger.component.html

@ -1,76 +1,78 @@
<h3 class="wizard-title">Trigger rule when an events for a schemas happens</h3>
<table class="table table-middle table-sm table-fixed table-borderless" *ngIf="!handleAll">
<colgroup>
<col style="width: 100%" />
<col style="width: 40px" />
<col style="width: 40px" />
<col style="width: 40px" />
<col style="width: 40px" />
<col style="width: 40px" />
<col style="width: 40px" />
</colgroup>
<ng-container *ngIf="!!triggerForm.controls.handleAll.value">
<table class="table table-middle table-sm table-fixed table-borderless">
<colgroup>
<col style="width: 100%" />
<col style="width: 40px" />
<col style="width: 40px" />
<col style="width: 40px" />
<col style="width: 40px" />
<col style="width: 40px" />
<col style="width: 40px" />
</colgroup>
<tr>
<th>
Schema
</th>
<th class="text-center">
<div class="rotated-label">All</div>
</th>
<th class="text-center">
<div class="rotated-label">Created</div>
</th>
<th class="text-center">
<div class="rotated-label">Updated</div>
</th>
<th class="text-center">
<div class="rotated-label">Deleted</div>
</th>
<th class="text-center">
<div class="rotated-label">Published</div>
</th>
<th></th>
</tr>
<tr>
<th>
Schema
</th>
<th class="text-center">
<div class="rotated-label">All</div>
</th>
<th class="text-center">
<div class="rotated-label">Created</div>
</th>
<th class="text-center">
<div class="rotated-label">Updated</div>
</th>
<th class="text-center">
<div class="rotated-label">Deleted</div>
</th>
<th class="text-center">
<div class="rotated-label">Published</div>
</th>
<th></th>
</tr>
<tr *ngFor="let schema of triggerSchemas">
<td>
<span class="truncate">{{schema.schema.displayName}}</span>
</td>
<td class="text-center" title="Created">
<input type="checkbox" [ngModel]="schema.sendAll" (ngModelChange)="toggleAll(schema)" />
</td>
<td class="text-center" title="Created">
<input type="checkbox" [ngModel]="schema.sendCreate" (ngModelChange)="toggle(schema, 'sendCreate')" />
</td>
<td class="text-center" title="Updated">
<input type="checkbox" [ngModel]="schema.sendUpdate" (ngModelChange)="toggle(schema, 'sendUpdate')" />
</td>
<td class="text-center" title="Deleted">
<input type="checkbox" [ngModel]="schema.sendDelete" (ngModelChange)="toggle(schema, 'sendDelete')" />
</td>
<td class="text-center" title="Published">
<input type="checkbox" [ngModel]="schema.sendPublish" (ngModelChange)="toggle(schema, 'sendPublish')" />
</td>
<td class="text-center">
<button type="button" class="btn btn-link btn-secondary" (click)="removeSchema(schema)">
<i class="icon-close"></i>
</button>
</td>
</tr>
</table>
<tr *ngFor="let schema of triggerSchemas">
<td>
<span class="truncate">{{schema.schema.displayName}}</span>
</td>
<td class="text-center" title="Created">
<input type="checkbox" [ngModel]="schema.sendAll" (ngModelChange)="toggleAll(schema)" />
</td>
<td class="text-center" title="Created">
<input type="checkbox" [ngModel]="schema.sendCreate" (ngModelChange)="toggle(schema, 'sendCreate')" />
</td>
<td class="text-center" title="Updated">
<input type="checkbox" [ngModel]="schema.sendUpdate" (ngModelChange)="toggle(schema, 'sendUpdate')" />
</td>
<td class="text-center" title="Deleted">
<input type="checkbox" [ngModel]="schema.sendDelete" (ngModelChange)="toggle(schema, 'sendDelete')" />
</td>
<td class="text-center" title="Published">
<input type="checkbox" [ngModel]="schema.sendPublish" (ngModelChange)="toggle(schema, 'sendPublish')" />
</td>
<td class="text-center">
<button type="button" class="btn btn-link btn-secondary" (click)="removeSchema(schema)">
<i class="icon-close"></i>
</button>
</td>
</tr>
</table>
<div class="section" *ngIf="!triggerForm.controls.handleAll.value && schemasToAdd.length > 0">
<form class="form-inline" (ngSubmit)="addSchema()">
<div class="form-group mr-1">
<select class="form-control schemas-control" [(ngModel)]="schemaToAdd" name="schema">
<option *ngFor="let schema of schemasToAdd" [ngValue]="schema">{{schema.displayName}}</option>
</select>
</div>
<div class="section" *ngIf="schemasToAdd.length > 0">
<form class="form-inline" (ngSubmit)="addSchema()">
<div class="form-group mr-1">
<select class="form-control schemas-control" [(ngModel)]="schemaToAdd" name="schema">
<option *ngFor="let schema of schemasToAdd" [ngValue]="schema">{{schema.displayName}}</option>
</select>
</div>
<button type="submit" class="btn btn-success" [disabled]="!hasSchema">Add Schema</button>
</form>
</div>
<button type="submit" class="btn btn-success" [disabled]="!hasSchema">Add Schema</button>
</form>
</div>
</ng-container>
<div class="form-group" [formGroup]="triggerForm">
<div class="form-check">

Loading…
Cancel
Save