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.
46 lines
2.0 KiB
46 lines
2.0 KiB
<div class="table-items-row" [class.table-items-footer]="!pattern">
|
|
<form [formGroup]="editForm.form" (ngSubmit)="save()" class="row no-gutters">
|
|
<div class="col col-name">
|
|
<sqx-control-errors for="name"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" id="pattern-name" maxlength="100" formControlName="name" placeholder="{{ 'common.name' | sqxTranslate }}">
|
|
|
|
</div>
|
|
|
|
<div class="col pl-1 pr-1">
|
|
<sqx-control-errors for="pattern"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" id="pattern-pattern" maxlength="1000" formControlName="pattern" placeholder="{{ 'common.pattern' | sqxTranslate }}">
|
|
</div>
|
|
|
|
<div class="col col-message">
|
|
<sqx-control-errors for="message"></sqx-control-errors>
|
|
|
|
<input type="text" class="form-control" id="pattern-message" maxlength="1000" formControlName="message" placeholder="{{ 'common.message' | sqxTranslate }}">
|
|
</div>
|
|
|
|
<div class="col-auto pl-1 col-options" *ngIf="pattern">
|
|
<button type="submit" class="btn btn-primary mr-1" [disabled]="!editForm.form.dirty || !isEditable">
|
|
<i class="icon-checkmark"></i>
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-text-danger" [disabled]="!isDeletable"
|
|
(sqxConfirmClick)="delete()"
|
|
confirmTitle="i18n:patterns.deleteConfirmTitle"
|
|
confirmText="i18n:patterns.deleteConfirmText"
|
|
confirmRememberKey="deletePattern">
|
|
<i class="icon-bin2"></i>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="col-auto pl-1 col-options" *ngIf="!pattern">
|
|
<button type="submit" class="btn btn-success mr-1">
|
|
<i class="icon-add"></i>
|
|
</button>
|
|
|
|
<button type="reset" class="btn btn-text-secondary2" (click)="cancel()">
|
|
<i class="icon-close"></i>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|