aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/admin/friends/friend-add/friend-add.component.html
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-21 10:41:21 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-21 10:41:21 +0200
commite105c19c8ebe56b6828ba82948895ad0ca71d8c2 (patch)
tree75509eaf6df4b70fc8d58f6b8d451147edb3f790 /client/src/app/admin/friends/friend-add/friend-add.component.html
parentd57d6f2605f4ac4a81f9a8594433bb7b65f108b9 (diff)
downloadPeerTube-e105c19c8ebe56b6828ba82948895ad0ca71d8c2.tar.gz
PeerTube-e105c19c8ebe56b6828ba82948895ad0ca71d8c2.tar.zst
PeerTube-e105c19c8ebe56b6828ba82948895ad0ca71d8c2.zip
Client: support the new make friends method
Diffstat (limited to 'client/src/app/admin/friends/friend-add/friend-add.component.html')
-rw-r--r--client/src/app/admin/friends/friend-add/friend-add.component.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/client/src/app/admin/friends/friend-add/friend-add.component.html b/client/src/app/admin/friends/friend-add/friend-add.component.html
new file mode 100644
index 000000000..a52965e8f
--- /dev/null
+++ b/client/src/app/admin/friends/friend-add/friend-add.component.html
@@ -0,0 +1,18 @@
1<h3>Make friends</h3>
2
3<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
4
5<form role="form" (ngSubmit)="makeFriends()">
6 <div class="form-group" *ngFor="let url of urls; let id = index; trackBy:customTrackBy">
7 <label for="username">Url</label>
8 <div class="input-group">
9 <input type="text" class="form-control" name="url" id="url" placeholder="http://domain.com" [(ngModel)]="urls[id]" />
10 <span class="input-group-btn">
11 <button *ngIf="displayAddField(id)" (click)="addField()" class="btn btn-default" type="button">+</button>
12 <button *ngIf="displayRemoveField(id)" (click)="removeField(index)" class="btn btn-default" type="button">-</button>
13 </span>
14 </div>
15 </div>
16
17 <input type="submit" value="Make friends" class="btn btn-default">
18</form>