<section class="dialog">
    <form (submit)="save()" [formGroup]="form">
        <div [innerHTML]="'resize-annotation.dialog.header' | translate" class="dialog-header heading-l"></div>

        <div class="dialog-content redaction">
            <div class="iqser-input-group w-450">
                <label [translate]="'resize-annotation.dialog.content.original-text'" class="selected-text"></label>
                {{ redaction.value }}
            </div>

            <div class="iqser-input-group w-450">
                <label [translate]="'resize-annotation.dialog.content.resized-text'" class="selected-text"></label>
                {{ data.text }}
            </div>

            <div class="iqser-input-group w-450">
                <label [translate]="'resize-annotation.dialog.content.comment'"></label>
                <textarea formControlName="comment" iqserHasScrollbar name="comment" rows="4" type="text"></textarea>
            </div>
        </div>

        <div class="dialog-actions">
            <iqser-icon-button
                [label]="'resize-annotation.dialog.actions.save' | translate"
                [submit]="true"
                [type]="iconButtonTypes.primary"
            ></iqser-icon-button>

            <div [translate]="'resize-annotation.dialog.actions.cancel'" class="all-caps-label cancel" mat-dialog-close></div>
        </div>
    </form>

    <iqser-circle-button (action)="close()" class="dialog-close" icon="iqser:close"></iqser-circle-button>
</section>
