mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
60 lines
3.2 KiB
HTML
60 lines
3.2 KiB
HTML
|
<div class="config-wrapper">
|
||
|
<img src="/img/close.svg" (click)="dialog.close()" class="close-icon">
|
||
|
<div class="config-header">
|
||
|
<img src="/img/avatars/jitsi.png">
|
||
|
<h4>Configure Jitsi Conferences</h4>
|
||
|
</div>
|
||
|
<div class="config-content" *ngIf="isLoading">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<p><i class="fa fa-circle-notch fa-spin"></i> Loading widgets...</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="config-content" *ngIf="!isLoading">
|
||
|
<form (submit)="validateAndAddWidget()" novalidate name="addForm">
|
||
|
<div class="row">
|
||
|
<div class="col-md-8" style="margin-bottom: 12px;">
|
||
|
<div class="input-group input-group-sm">
|
||
|
<span class="input-group-addon">https://{{ integration.jitsiDomain }}/</span>
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="MyConferenceName"
|
||
|
[(ngModel)]="newWidgetName" name="newWidgetName"
|
||
|
[disabled]="isUpdating">
|
||
|
<span class="input-group-btn">
|
||
|
<button type="submit" class="btn btn-success" [disabled]="isUpdating">
|
||
|
<i class="fa fa-plus-circle"></i> Add
|
||
|
</button>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-12 removable widget-item" *ngFor="let widget of widgets trackById">
|
||
|
{{ widget.data.dimOriginalConferenceUrl }} <span class="text-muted" *ngIf="widget.ownerId">(added by {{ widget.ownerId }})</span>
|
||
|
<button type="button" class="btn btn-outline-info btn-sm" (click)="editWidget(widget)"
|
||
|
style="margin-top: -5px;" [disabled]="isUpdating">
|
||
|
<i class="fa fa-pencil"></i> Edit
|
||
|
</button>
|
||
|
<button type="button" class="btn btn-sm btn-outline-danger" (click)="removeWidget(widget)"
|
||
|
style="margin-top: -5px;" [disabled]="isUpdating">
|
||
|
<i class="fa fa-times"></i> Remove
|
||
|
</button>
|
||
|
<div *ngIf="isWidgetToggled(widget)">
|
||
|
<label class="col-md-8" style="padding-left: 0; margin-left: 0;">
|
||
|
Conference URL
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="https://jitsi.riot.im/MyConference"
|
||
|
[(ngModel)]="widget.data.dimConferenceUrl" name="widget-url-{{widget.id}}"
|
||
|
[disabled]="isUpdating">
|
||
|
</label>
|
||
|
<button type="button" class="btn btn-primary btn-sm" (click)="validateAndSaveWidget(widget)">
|
||
|
Save
|
||
|
</button>
|
||
|
<button type="button" class="btn btn-outline btn-sm" (click)="toggleWidget(widget)">
|
||
|
Cancel
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|