mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
|
<div class="dialog">
|
||
|
<div class="dialog-header">
|
||
|
<h4>{{ isAdding ? "Add a new" : "Edit" }} custom bot</h4>
|
||
|
</div>
|
||
|
<div class="dialog-content">
|
||
|
<label class="label-block">
|
||
|
User ID
|
||
|
<span class="text-muted">The user ID that Dimension will invite to rooms.</span>
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="@yourbot:example.org"
|
||
|
[(ngModel)]="bot.userId" [disabled]="isSaving" (blur)="loadProfile()"/>
|
||
|
</label>
|
||
|
|
||
|
<label class="label-block">
|
||
|
Description
|
||
|
<span class="text-muted ">A few words here will help people understand what the bot does.</span>
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="Does awesome things"
|
||
|
[(ngModel)]="bot.description" [disabled]="isSaving"/>
|
||
|
</label>
|
||
|
|
||
|
<label class="label-block">
|
||
|
Display Name
|
||
|
<span class="text-muted ">This is the name Dimension will use to tell users which bot this is.</span>
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="Cool Bot"
|
||
|
[(ngModel)]="bot.name" [disabled]="isSaving"/>
|
||
|
</label>
|
||
|
|
||
|
<label class="label-block">
|
||
|
Avatar URL
|
||
|
<span class="text-muted ">This can either be an MXC URI or a plain URL.</span>
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="mxc://example.org/C00lAvat4r"
|
||
|
[(ngModel)]="bot.avatarUrl" [disabled]="isSaving"/>
|
||
|
</label>
|
||
|
|
||
|
<label class="label-block">
|
||
|
Access Token
|
||
|
<span class="text-muted ">This is used by Dimension to force the bot to leave the room when the user removes the bot. <a href="https://t2bot.io/docs/access_tokens/" target="_blank">Learn more about access tokens</a>.</span>
|
||
|
<input type="text" class="form-control"
|
||
|
placeholder="MDaX..."
|
||
|
[(ngModel)]="bot.accessToken" [disabled]="isSaving"/>
|
||
|
</label>
|
||
|
</div>
|
||
|
<div class="dialog-footer">
|
||
|
<button type="button" (click)="add()" title="close" class="btn btn-primary btn-sm">
|
||
|
<i class="far fa-save"></i> Save
|
||
|
</button>
|
||
|
<button type="button" (click)="dialog.close()" title="close" class="btn btn-secondary btn-sm">
|
||
|
<i class="far fa-times-circle"></i> Cancel
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|