mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
3.2 KiB
65 lines
3.2 KiB
<form [formGroup]="editForm.form" (ngSubmit)="saveSchema()">
|
|
<sqx-modal-dialog (closed)="complete()" large="true">
|
|
<ng-container title>
|
|
Preview Urls
|
|
</ng-container>
|
|
|
|
<ng-container content>
|
|
<h3 class="title">Preview Urls define where the content is used</h3>
|
|
|
|
<div class="content">
|
|
<div class="form-group row no-gutters" *ngFor="let form of editForm.form.controls; let i = index">
|
|
<div class="col col-name pr-1">
|
|
<sqx-control-errors [for]="form.get('name')" fieldName="Name" [submitted]="editForm.submitted | async"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" maxlength="1000" [formControl]="form.get('name')" placeholder="Web or Mobile" />
|
|
</div>
|
|
|
|
<div class="col pr-1">
|
|
<sqx-control-errors [for]="form.get('url')" fieldName="Url" [submitted]="editForm.submitted | async"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" maxlength="1000" [formControl]="form.get('url')" placeholder="Url with placeholders like ${id} or ${data.slug}" />
|
|
</div>
|
|
|
|
<div class="col-auto col-options">
|
|
<button type="button" class="btn btn-text-danger"
|
|
(sqxConfirmClick)="editForm.remove(i)"
|
|
confirmTitle="Remove url"
|
|
confirmText="Do you really want to remove this url?">
|
|
<i class="icon-bin2"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row no-gutters" [formGroup]="addForm.form">
|
|
<div class="col col-name pr-1">
|
|
<sqx-control-errors for="name" [submitted]="addForm.submitted | async"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" maxlength="1000" formControlName="name" placeholder="Web or Mobile" />
|
|
</div>
|
|
|
|
<div class="col pr-1">
|
|
<sqx-control-errors for="url" [submitted]="addForm.submitted | async"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" maxlength="1000" formControlName="url" placeholder="Url with placeholders like ${id} or ${data.slug}" />
|
|
</div>
|
|
|
|
<div class="col-auto col-options">
|
|
<button type="button" class="btn btn-success" (click)="add()">
|
|
<i class="icon-add"></i>
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-text-secondary" (click)="cancelAdd()">
|
|
<i class="icon-close"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ng-container>
|
|
|
|
<ng-container footer>
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="complete()" [disabled]="editForm.submitted | async">Cancel</button>
|
|
<button type="submit" class="float-right btn btn-primary">Save</button>
|
|
</ng-container>
|
|
</sqx-modal-dialog>
|
|
</form>
|
|
|